[PATCH] Fix qpush fail on windows at drive root

Andrei Vermel avermel at mail.ru
Tue Feb 13 09:51:13 UTC 2007


# HG changeset patch
# User Andrei Vermel <avermel at mail.ru>
# Date 1171360043 -10800
# Node ID 52ce1b23fefa904e07055e49620a9633d5342b30
# Parent  ed92180fe422b25be0ea736bfc1265de665fd8d5
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('\\', '/')))
         fp = os.popen('%s %s -p%d < %s' % (patcher, ' '.join(args), strip,
                                            util.shellquote(patchname)))
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: qpush_patch
Type: application/octet-stream
Size: 825 bytes
Desc: not available
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-devel/attachments/20070213/77d1722c/attachment.obj>


More information about the Mercurial-devel mailing list