##// END OF EJS Templates
copies: move check for experimental.copytrace==<falsy> earlier...
Martin von Zweigbergk -
r42411:d8ca7b99 default
parent child Browse files
Show More
@@ -410,7 +410,10 b' def mergecopies(repo, c1, c2, base):'
410 410 return _dirstatecopies(repo, narrowmatch), {}, {}, {}, {}
411 411
412 412 copytracing = repo.ui.config('experimental', 'copytrace')
413 boolctrace = stringutil.parsebool(copytracing)
413 if stringutil.parsebool(copytracing) is False:
414 # stringutil.parsebool() returns None when it is unable to parse the
415 # value, so we should rely on making sure copytracing is on such cases
416 return {}, {}, {}, {}, {}
414 417
415 418 # Copy trace disabling is explicitly below the node == p1 logic above
416 419 # because the logic above is required for a simple copy to be kept across a
@@ -422,10 +425,6 b' def mergecopies(repo, c1, c2, base):'
422 425 if _isfullcopytraceable(repo, c1, base):
423 426 return _fullcopytracing(repo, c1, c2, base)
424 427 return _heuristicscopytracing(repo, c1, c2, base)
425 elif boolctrace is False:
426 # stringutil.parsebool() returns None when it is unable to parse the
427 # value, so we should rely on making sure copytracing is on such cases
428 return {}, {}, {}, {}, {}
429 428 else:
430 429 return _fullcopytracing(repo, c1, c2, base)
431 430
General Comments 0
You need to be logged in to leave comments. Login now