comparison 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
comparison
equal deleted inserted replaced
43145:4296cc3c4ae1 43146:0171483b082f
186 return mb.filesnotin(ma, match=match) 186 return mb.filesnotin(ma, match=match)
187 187
188 188
189 def usechangesetcentricalgo(repo): 189 def usechangesetcentricalgo(repo):
190 """Checks if we should use changeset-centric copy algorithms""" 190 """Checks if we should use changeset-centric copy algorithms"""
191 if repo.filecopiesmode == b'changeset-sidedata':
192 return True
191 readfrom = repo.ui.config(b'experimental', b'copies.read-from') 193 readfrom = repo.ui.config(b'experimental', b'copies.read-from')
192 changesetsource = (b'changeset-only', b'compatibility') 194 changesetsource = (b'changeset-only', b'compatibility')
193 return readfrom in changesetsource 195 return readfrom in changesetsource
194 196
195 197