[PATCH 1 of 1] fix issue 1625: incorrect path separator and ui.slash setting handling on Windows

Alejandro Santos alejolp at alejolp.com
Wed Apr 29 15:46:41 CDT 2009


On Wed, Apr 29, 2009 at 12:01 PM, Stefan Rusek <stefan at rusek.org> wrote:
> On Wed, Apr 29, 2009 at 16:34, Steve Borho <steve at borho.org> wrote:
[snip]
>>
>> I think util.pconvert() was made for this purpose.
>>
>
> Ale,
>
> I would suggest replacing
>
> cfgslash = ui.configbool('ui', 'slash') and '/' or os.sep
>
> with
>
> fnfixslash = ui.configbool('ui', 'slash') and util.pconvert or util.localpath
>
> Then passing the path to fnfixslash before ui.write()ing it.
>
> --Stefan
>

Thank you both four your comments! They were very helpful, and calling
to pconvert or localpath fixed this issue.

Ale.


More information about the Mercurial-devel mailing list