mercurial/copies.py
changeset 43146 0171483b082f
parent 43117 8ff1ecfadcd1
child 43147 54e943b28101
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