comparison hgext/convert/git.py @ 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
comparison
equal deleted inserted replaced
22467:333d654783ad 22468:5910184f1f7b
197 l = difftree[i] 197 l = difftree[i]
198 i += 1 198 i += 1
199 if not entry: 199 if not entry:
200 if not l.startswith(':'): 200 if not l.startswith(':'):
201 continue 201 continue
202 entry = l 202 entry = l.split()
203 continue 203 continue
204 f = l 204 f = l
205 if f not in seen: 205 if f not in seen:
206 seen.add(f) 206 seen.add(f)
207 entry = entry.split()
208 h = entry[3] 207 h = entry[3]
209 p = (entry[1] == "100755") 208 p = (entry[1] == "100755")
210 s = (entry[1] == "120000") 209 s = (entry[1] == "120000")
211 210
212 if f == '.gitmodules': 211 if f == '.gitmodules':