comparison mercurial/upgrade.py @ 45980:fe7d7917ceb5

upgrade: rename UPGRADE_FILELOG to UPGRADE_FILELOGS They are multiple filelog to upgrade, so this seems more accurate. Differential Revision: https://phab.mercurial-scm.org/D9466
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Mon, 30 Nov 2020 12:24:36 +0100
parents edf4fa06df94
children 53bde3ad0270
comparison
equal deleted inserted replaced
45979:744ea3c4f41b 45980:fe7d7917ceb5
714 destrepo.svfs.fncache.add(unencodedname[:-2] + b'.d') 714 destrepo.svfs.fncache.add(unencodedname[:-2] + b'.d')
715 715
716 716
717 UPGRADE_CHANGELOG = object() 717 UPGRADE_CHANGELOG = object()
718 UPGRADE_MANIFEST = object() 718 UPGRADE_MANIFEST = object()
719 UPGRADE_FILELOG = object() 719 UPGRADE_FILELOGS = object()
720 720
721 UPGRADE_ALL_REVLOGS = frozenset( 721 UPGRADE_ALL_REVLOGS = frozenset(
722 [UPGRADE_CHANGELOG, UPGRADE_MANIFEST, UPGRADE_FILELOG] 722 [UPGRADE_CHANGELOG, UPGRADE_MANIFEST, UPGRADE_FILELOGS]
723 ) 723 )
724 724
725 725
726 def getsidedatacompanion(srcrepo, dstrepo): 726 def getsidedatacompanion(srcrepo, dstrepo):
727 sidedatacompanion = None 727 sidedatacompanion = None
751 The store entry is checked against the passed filter""" 751 The store entry is checked against the passed filter"""
752 if entry.endswith(b'00changelog.i'): 752 if entry.endswith(b'00changelog.i'):
753 return UPGRADE_CHANGELOG in revlogfilter 753 return UPGRADE_CHANGELOG in revlogfilter
754 elif entry.endswith(b'00manifest.i'): 754 elif entry.endswith(b'00manifest.i'):
755 return UPGRADE_MANIFEST in revlogfilter 755 return UPGRADE_MANIFEST in revlogfilter
756 return UPGRADE_FILELOG in revlogfilter 756 return UPGRADE_FILELOGS in revlogfilter
757 757
758 758
759 def _clonerevlogs( 759 def _clonerevlogs(
760 ui, 760 ui,
761 srcrepo, 761 srcrepo,