equal
deleted
inserted
replaced
59 |
59 |
60 def getchanges(self, version): |
60 def getchanges(self, version): |
61 self.modecache = {} |
61 self.modecache = {} |
62 fh = self.gitcmd("git-diff-tree --root -m -r %s" % version) |
62 fh = self.gitcmd("git-diff-tree --root -m -r %s" % version) |
63 changes = [] |
63 changes = [] |
|
64 seen = {} |
64 for l in fh: |
65 for l in fh: |
65 if "\t" not in l: continue |
66 if "\t" not in l: |
|
67 continue |
66 m, f = l[:-1].split("\t") |
68 m, f = l[:-1].split("\t") |
|
69 if f in seen: |
|
70 continue |
|
71 seen[f] = 1 |
67 m = m.split() |
72 m = m.split() |
68 h = m[3] |
73 h = m[3] |
69 p = (m[1] == "100755") |
74 p = (m[1] == "100755") |
70 s = (m[1] == "120000") |
75 s = (m[1] == "120000") |
71 self.modecache[(f, h)] = (p and "x") or (s and "l") or "" |
76 self.modecache[(f, h)] = (p and "x") or (s and "l") or "" |