changeset 22468:5910184f1f7b

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.
author Siddharth Agarwal <sid0@fb.com>
date Thu, 11 Sep 2014 23:37:47 -0700
parents 333d654783ad
children 15bc0431476b
files hgext/convert/git.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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")