[PATCH 3 of 6] convert: for git's getchanges, always split entry line into components
Siddharth Agarwal
sid0 at fb.com
Fri Sep 12 14:48:34 CDT 2014
# HG changeset patch
# User Siddharth Agarwal <sid0 at fb.com>
# Date 1410503867 25200
# Thu Sep 11 23:37:47 2014 -0700
# Node ID fa001816475a584be4c0f6aff5ea769b68979b31
# Parent 0302b4d0355c43000cebb037c2857eb8305178da
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.
diff --git a/hgext/convert/git.py b/hgext/convert/git.py
--- a/hgext/convert/git.py
+++ b/hgext/convert/git.py
@@ -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")
More information about the Mercurial-devel
mailing list