hglib issues under windows

Matt Mackall mpm at selenic.com
Fri Sep 23 17:15:28 CDT 2005

On Fri, Sep 23, 2005 at 06:00:24PM -0400, Daniel Santa Cruz wrote:
> Background:
> Under Windows there is an issue with using os.path.join with strings
> that tailor keeps.  The end result is paths with a combination of /
> and \.
> Lele suggested (in http://artiemestieri.tn.it/tailor/ticket/4) a
> solution to this, which works great if using hg.py.
> Problem:
> The previous solution only works if one is using the 'hg' target and
> not the 'hglib' target.  When using 'hglib', things are passed to
> mercurial at a lower level, which does not "sanitize" paths.  At that
> level, hg is expecting to see linux's pathsep (/).
> If one removes the before-commit hook, then one ends up with / \ in
> the same path.

This is a tailor bug. It should be canonicalizing paths before handing
them to the Mercurial core.

Mathematics is the supreme nostalgia of our time.

More information about the Mercurial mailing list