convert: for git's getchanges, always split entry line into components
authorSiddharth Agarwal <sid0@fb.com>
Thu, 11 Sep 2014 23:37:47 -0700
changeset 22468 5910184f1f7b
parent 22467 333d654783ad
child 22469 15bc0431476b
convert: for git's getchanges, always split entry line into components We always need to know whether the entry is a rename or copy, so split it up unconditionally.
hgext/convert/git.py
--- a/hgext/convert/git.py	Thu Sep 11 23:35:19 2014 -0700
+++ b/hgext/convert/git.py	Thu Sep 11 23:37:47 2014 -0700
@@ -199,12 +199,11 @@
             if not entry:
                 if not l.startswith(':'):
                     continue
-                entry = l
+                entry = l.split()
                 continue
             f = l
             if f not in seen:
                 seen.add(f)
-                entry = entry.split()
                 h = entry[3]
                 p = (entry[1] == "100755")
                 s = (entry[1] == "120000")