[PATCH] alternative patch for issue 1364

Benoit Boissinot bboissin at gmail.com
Sat Nov 1 10:54:24 CDT 2008


On Sat, Nov 1, 2008 at 4:33 PM, Petr Kodl <petrkodl at gmail.com> wrote:
>
> diff -r c4461ea8b4c8 -r 0fd651da4aa5 mercurial/util.py
> --- a/mercurial/util.py Sun Oct 26 17:26:28 2008 +0100
> +++ b/mercurial/util.py Sat Nov 01 11:32:58 2008 -0400
> @@ -874,7 +874,7 @@
>             cache = dircache.setdefault(dir, dmap)
>         yield cache.get(base, None)
>
> -if sys.platform == 'win32':
> +if sys.platform == 'win32' and sys.version_info[:2] > (2, 4):

I don't think we want to make that stuff leak here.
Wouldn't adding a way to test for native vs python be cleaner (then
test for osutil.native).

regards,

Benoit


More information about the Mercurial-devel mailing list