equal
deleted
inserted
replaced
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 "" |