Mercurial > hg > mercurial-crew-with-dirclash
comparison hgext/convert/git.py @ 5336:24de027551c1
Merge with crew-stable
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Mon, 24 Sep 2007 19:14:18 -0300 |
parents | 20770c5d41e0 88e931f74e8b |
children | a5a7f7fd5554 |
comparison
equal
deleted
inserted
replaced
5328:8d00788ca578 | 5336:24de027551c1 |
---|---|
54 | 54 |
55 def getchanges(self, version): | 55 def getchanges(self, version): |
56 self.modecache = {} | 56 self.modecache = {} |
57 fh = self.gitcmd("git-diff-tree --root -m -r %s" % version) | 57 fh = self.gitcmd("git-diff-tree --root -m -r %s" % version) |
58 changes = [] | 58 changes = [] |
59 seen = {} | |
59 for l in fh: | 60 for l in fh: |
60 if "\t" not in l: continue | 61 if "\t" not in l: |
62 continue | |
61 m, f = l[:-1].split("\t") | 63 m, f = l[:-1].split("\t") |
64 if f in seen: | |
65 continue | |
66 seen[f] = 1 | |
62 m = m.split() | 67 m = m.split() |
63 h = m[3] | 68 h = m[3] |
64 p = (m[1] == "100755") | 69 p = (m[1] == "100755") |
65 s = (m[1] == "120000") | 70 s = (m[1] == "120000") |
66 self.modecache[(f, h)] = (p and "x") or (s and "l") or "" | 71 self.modecache[(f, h)] = (p and "x") or (s and "l") or "" |