##// END OF EJS Templates
copies: move short-circuiting of dirstate copies out of _forwardcopies()...
Martin von Zweigbergk -
r42794:bcb4b5c5 default
parent child Browse files
Show More
@@ -324,10 +324,6 b' def _forwardcopies(a, b, match=None):'
324 324 match = a.repo().narrowmatch(match)
325 325 # check for working copy
326 326 if b.rev() is None:
327 if a == b.p1():
328 # short-circuit to avoid issues with merge states
329 return _dirstatecopies(b._repo, match)
330
331 327 cm = _committedforwardcopies(a, b.p1(), match)
332 328 # combine copies from dirstate if necessary
333 329 return _chainandfilter(a, b, cm, _dirstatecopies(b._repo, match))
@@ -367,6 +363,9 b' def pathcopies(x, y, match=None):'
367 363 if a == x:
368 364 if debug:
369 365 repo.ui.debug('debug.copies: search mode: forward\n')
366 if y.rev() is None and x == y.p1():
367 # short-circuit to avoid issues with merge states
368 return _dirstatecopies(repo, match)
370 369 return _forwardcopies(x, y, match=match)
371 370 if a == y:
372 371 if debug:
General Comments 0
You need to be logged in to leave comments. Login now