Skip to content
Snippets Groups Projects
Commit 8c69c52c authored by Gábor Stefanik's avatar Gábor Stefanik
Browse files

copies: compute a suitable TCA if base turns out to be unsuitable

This will be used later in an update to _checkcopies.

(Pierre-Yves David was involved in the cleanup of this patch.)
parent 368e27eb
No related branches found
No related tags found
No related merge requests found
......@@ -338,6 +338,10 @@
dirtyc1 = not (base == _c1 or base.descendant(_c1))
dirtyc2 = not (base== _c2 or base.descendant(_c2))
graft = dirtyc1 or dirtyc2
tca = base
if graft:
tca = _c1.ancestor(_c2)
limit = _findlimit(repo, c1.rev(), c2.rev())
if limit is None:
# no common ancestor, no copies
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment