author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
Sun, 06 Aug 2006 16:42:36 +0200 | |
changeset 2788 | 1e8b8107a2c9 |
parent 2787 | 8ec1b1f0a5f7 |
child 2789 | 86c54b7cd331 |
mercurial/util.py | file | annotate | diff | comparison | revisions |
--- a/mercurial/util.py +++ b/mercurial/util.py @@ -99,9 +99,9 @@ def patch(strip, patchname, ui, cwd=None patcher = find_in_path('gpatch', os.environ.get('PATH', ''), 'patch') args = [] if cwd: - args.append('-d "%s"' % cwd) - fp = os.popen('%s %s -p%d < "%s"' % (patcher, ' '.join(args), strip, - patchname)) + args.append('-d %s' % shellquote(cwd)) + fp = os.popen('%s %s -p%d < %s' % (patcher, ' '.join(args), strip, + shellquote(patchname))) files = {} for line in fp: line = line.rstrip()