hgext/extdiff.py
changeset 2903 ce967d96a1c1
parent 2902 2fe4d99ae726
child 2906 453097750fbf
--- a/hgext/extdiff.py	Mon Aug 14 11:07:15 2006 -0700
+++ b/hgext/extdiff.py	Mon Aug 14 11:10:21 2006 -0700
@@ -92,8 +92,9 @@
             dir2 = snapshot_node(modified + added, node2)
         else:
             dir2 = snapshot_wdir(modified + added)
-        util.system('%s %s "%s" "%s"' %
-                    (diffcmd, ' '.join(opts['option']), dir1, dir2),
+        util.system('%s %s %s %s' %
+                    (util.shellquote(diffcmd), ' '.join(opts['option']),
+                     util.shellquote(dir1), util.shellquote(dir2)),
                     cwd=tmproot)
         return 1
     finally: