Mercurial > public > mercurial-scm > hg-stable
diff mercurial/scmutil.py @ 42115:27475ae67676
copies: extract function for deciding whether to use changeset-centric algos
We'll eventually have a "experimental.copies.read-from=changeset-only"
option too and I don't want to spread the logic for determining if we
should use changeset-centric of filelog-centric algorithms.
Differential Revision: https://phab.mercurial-scm.org/D6163
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Wed, 20 Mar 2019 11:42:02 -0700 |
parents | aa84bc48c2f7 |
children | 88ba0ff94605 |
line wrap: on
line diff
--- a/mercurial/scmutil.py Fri Jan 18 13:13:48 2019 -0800 +++ b/mercurial/scmutil.py Wed Mar 20 11:42:02 2019 -0700 @@ -1205,7 +1205,7 @@ wctx.copy(old, new) def getrenamedfn(repo, endrev=None): - if repo.ui.config('experimental', 'copies.read-from') == 'compatibility': + if copiesmod.usechangesetcentricalgo(repo): def getrenamed(fn, rev): ctx = repo[rev] p1copies = ctx.p1copies()