D6269: copies: ignore heuristics copytracing when using changeset-centric algos
This revision was automatically updated to reflect the committed changes. Closed by commit rHGa6be3af3a397: copies: ignore heuristics copytracing when using changeset-centric algos (authored by martinvonz, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D6269?vs=14968=14980 REVISION DETAIL https://phab.mercurial-scm.org/D6269 AFFECTED FILES mercurial/copies.py CHANGE DETAILS diff --git a/mercurial/copies.py b/mercurial/copies.py --- a/mercurial/copies.py +++ b/mercurial/copies.py @@ -415,6 +415,10 @@ # value, so we should rely on making sure copytracing is on such cases return {}, {}, {}, {}, {} +if usechangesetcentricalgo(repo): +# The heuristics don't make sense when we need changeset-centric algos +return _fullcopytracing(repo, c1, c2, base) + # Copy trace disabling is explicitly below the node == p1 logic above # because the logic above is required for a simple copy to be kept across a # rebase. To: martinvonz, #hg-reviewers Cc: mercurial-devel ___ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel
D6269: copies: ignore heuristics copytracing when using changeset-centric algos
martinvonz updated this revision to Diff 14968. REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D6269?vs=14947=14968 REVISION DETAIL https://phab.mercurial-scm.org/D6269 AFFECTED FILES mercurial/copies.py CHANGE DETAILS diff --git a/mercurial/copies.py b/mercurial/copies.py --- a/mercurial/copies.py +++ b/mercurial/copies.py @@ -415,6 +415,10 @@ # value, so we should rely on making sure copytracing is on such cases return {}, {}, {}, {}, {} +if usechangesetcentricalgo(repo): +# The heuristics don't make sense when we need changeset-centric algos +return _fullcopytracing(repo, c1, c2, base) + # Copy trace disabling is explicitly below the node == p1 logic above # because the logic above is required for a simple copy to be kept across a # rebase. To: martinvonz, #hg-reviewers Cc: mercurial-devel ___ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel
D6269: copies: ignore heuristics copytracing when using changeset-centric algos
martinvonz updated this revision to Diff 14947. REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D6269?vs=14813=14947 REVISION DETAIL https://phab.mercurial-scm.org/D6269 AFFECTED FILES mercurial/copies.py CHANGE DETAILS diff --git a/mercurial/copies.py b/mercurial/copies.py --- a/mercurial/copies.py +++ b/mercurial/copies.py @@ -415,6 +415,10 @@ # value, so we should rely on making sure copytracing is on such cases return {}, {}, {}, {}, {} +if usechangesetcentricalgo(repo): +# The heuristics don't make sense when we need changeset-centric algos +return _fullcopytracing(repo, c1, c2, base) + # Copy trace disabling is explicitly below the node == p1 logic above # because the logic above is required for a simple copy to be kept across a # rebase. To: martinvonz, #hg-reviewers Cc: mercurial-devel ___ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel
D6269: copies: ignore heuristics copytracing when using changeset-centric algos
martinvonz created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D6269 AFFECTED FILES mercurial/copies.py CHANGE DETAILS diff --git a/mercurial/copies.py b/mercurial/copies.py --- a/mercurial/copies.py +++ b/mercurial/copies.py @@ -415,6 +415,10 @@ # value, so we should rely on making sure copytracing is on such cases return {}, {}, {}, {}, {} +if usechangesetcentricalgo(repo): +# The heuristics don't make sense when we need changeset-centric algos +return _fullcopytracing(repo, c1, c2, base) + # Copy trace disabling is explicitly below the node == p1 logic above # because the logic above is required for a simple copy to be kept across a # rebase. To: martinvonz, #hg-reviewers Cc: mercurial-devel ___ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel