Mercurial > public > mercurial-scm > hg
diff mercurial/copies.py @ 43146:0171483b082f
sidedatacopies: read rename information from sidedata
Repository using the new format now use changeset centric algorithm and read the
copies information from the changelog sidedata.
Differential Revision: https://phab.mercurial-scm.org/D6953
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 09 Oct 2019 22:59:38 +0200 |
parents | 8ff1ecfadcd1 |
children | 54e943b28101 |
line wrap: on
line diff
--- a/mercurial/copies.py Thu Oct 10 00:06:41 2019 +0200 +++ b/mercurial/copies.py Wed Oct 09 22:59:38 2019 +0200 @@ -188,6 +188,8 @@ def usechangesetcentricalgo(repo): """Checks if we should use changeset-centric copy algorithms""" + if repo.filecopiesmode == b'changeset-sidedata': + return True readfrom = repo.ui.config(b'experimental', b'copies.read-from') changesetsource = (b'changeset-only', b'compatibility') return readfrom in changesetsource