Remove quotes from patch command.
authorVolker Kleinfeld <Volker.Kleinfeld@gmx.de>
Thu, 18 May 2006 22:35:41 -0700
changeset 2314 e9b5749e4de3
parent 2313 a600d9997521
child 2315 c4a2d8502cc0
child 2316 3d58376a7103
Remove quotes from patch command. When the gpatch fix for solaris was introduced in 67a0a3852024 the patch command was "". For some strange reason windows 2000 is not happy with those quotes when given in os.popen.
mercurial/util.py
--- a/mercurial/util.py	Fri May 19 06:10:59 2006 +0200
+++ b/mercurial/util.py	Thu May 18 22:35:41 2006 -0700
@@ -94,7 +94,7 @@
     """apply the patch <patchname> to the working directory.
     a list of patched files is returned"""
     patcher = find_in_path('gpatch', os.environ.get('PATH', ''), 'patch')
-    fp = os.popen('"%s" -p%d < "%s"' % (patcher, strip, patchname))
+    fp = os.popen('%s -p%d < "%s"' % (patcher, strip, patchname))
     files = {}
     for line in fp:
         line = line.rstrip()