convert: quote "^" to avoid windows using it as an escape char.
authorPatrick Mezard <pmezard@gmail.com>
Sat, 06 Oct 2007 21:19:06 +0200
changeset 5404 67d3daa8ac42
parent 5403 477136fa6571
child 5405 8feb33c2d153
convert: quote "^" to avoid windows using it as an escape char.
hgext/convert/git.py
--- a/hgext/convert/git.py	Sat Oct 06 15:30:15 2007 -0300
+++ b/hgext/convert/git.py	Sat Oct 06 21:19:06 2007 +0200
@@ -134,7 +134,7 @@
                 changes.append(f)
             fh.close()
         else:
-            fh = self.gitcmd("git-diff-tree --name-only --root -r %s %s^%s --"
+            fh = self.gitcmd('git-diff-tree --name-only --root -r %s "%s^%s" --'
                              % (version, version, i+1))
             changes = [f.rstrip('\n') for f in fh]
             fh.close()