Show More
@@ -129,15 +129,15 def findcopies(repo, m1, m2, ma, limit): | |||||
129 | '''check possible copies for filectx c''' |
|
129 | '''check possible copies for filectx c''' | |
130 | for of in findold(c): |
|
130 | for of in findold(c): | |
131 | if of not in man: |
|
131 | if of not in man: | |
132 |
|
|
132 | continue | |
133 | c2 = ctx(of, man[of]) |
|
133 | c2 = ctx(of, man[of]) | |
134 | ca = c.ancestor(c2) |
|
134 | ca = c.ancestor(c2) | |
135 | if not ca: # unrelated |
|
135 | if not ca: # unrelated | |
136 |
|
|
136 | continue | |
137 | if ca.path() == c.path() or ca.path() == c2.path(): |
|
137 | if ca.path() == c.path() or ca.path() == c2.path(): | |
138 | fullcopy[c.path()] = of |
|
138 | fullcopy[c.path()] = of | |
139 |
if c == ca |
|
139 | if c == ca and c2 == ca: # no merge needed, ignore copy | |
140 |
|
|
140 | continue | |
141 | copy[c.path()] = of |
|
141 | copy[c.path()] = of | |
142 |
|
142 | |||
143 | def dirs(files): |
|
143 | def dirs(files): |
General Comments 0
You need to be logged in to leave comments.
Login now