diff mercurial/util.py @ 2314:e9b5749e4de3

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.
author Volker Kleinfeld <Volker.Kleinfeld@gmx.de>
date Thu, 18 May 2006 22:35:41 -0700
parents cb520d961d6a
children b77a2ef61b81
line wrap: on
line diff
--- a/mercurial/util.py
+++ b/mercurial/util.py
@@ -94,7 +94,7 @@ def patch(strip, patchname, ui):
     """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()