equal
deleted
inserted
replaced
130 |
130 |
131 def findcopies(repo, m1, m2, limit): |
131 def findcopies(repo, m1, m2, limit): |
132 """ |
132 """ |
133 Find moves and copies between m1 and m2 back to limit linkrev |
133 Find moves and copies between m1 and m2 back to limit linkrev |
134 """ |
134 """ |
|
135 |
|
136 # avoid silly behavior for update from empty dir |
|
137 if not m1: |
|
138 return {} |
135 |
139 |
136 dcopies = repo.dirstate.copies() |
140 dcopies = repo.dirstate.copies() |
137 copy = {} |
141 copy = {} |
138 match = {} |
142 match = {} |
139 u1 = nonoverlap(m1, m2) |
143 u1 = nonoverlap(m1, m2) |