##// END OF EJS Templates
copies: avoid reusing the same variable for two different copy dicts...
Martin von Zweigbergk -
r42714:e7c55e24 default
parent child Browse files
Show More
@@ -312,15 +312,15 b' def _changesetforwardcopies(a, b, match)'
312 312 if match(dst)}
313 313 # Copy the dict only if later iterations will also need it
314 314 if i != len(children[r]) - 1:
315 copies = copies.copy()
316 if childcopies:
317 childcopies = _chain(copies, childcopies)
315 newcopies = copies.copy()
318 316 else:
319 childcopies = copies
317 newcopies = copies
318 if childcopies:
319 newcopies = _chain(newcopies, childcopies)
320 320 for f in childctx.filesremoved():
321 if f in childcopies:
322 del childcopies[f]
323 heapq.heappush(work, (c, parent, childcopies))
321 if f in newcopies:
322 del newcopies[f]
323 heapq.heappush(work, (c, parent, newcopies))
324 324 assert False
325 325
326 326 def _forwardcopies(a, b, match=None):
General Comments 0
You need to be logged in to leave comments. Login now