[PATCH] Fix qpush fail on windows at drive root

Alexis S. L. Carvalho alexis at cecm.usp.br
Tue Feb 13 05:39:14 CST 2007


Thus spake Andrei Vermel:
> Fix qpush fail on windows at drive root
> 
> diff -r ed92180fe422 -r 52ce1b23fefa mercurial/patch.py
> --- a/mercurial/patch.py  Tue Feb 13 12:47:22 2007 +0300
> +++ b/mercurial/patch.py  Tue Feb 13 12:47:23 2007 +0300
> @@ -282,7 +282,7 @@ def patch(patchname, ui, strip=1, cwd=No
>                                     'patch')
>         args = []
>         if cwd:
> -            args.append('-d %s' % util.shellquote(cwd))
> +            args.append('-d %s' % util.shellquote(cwd.replace('\\', '/')))

This is a bit weird.  Do you know what exactly is going on for it to
fail with a path that uses "\\" instead of "/"?  Just replacing
backslashes would break things for people on Unix with really weird
directory names...

Alexis


More information about the Mercurial-devel mailing list