mercurial/upgrade_utils/engine.py
changeset 50523 2eb7f0b5a499
parent 50505 521fec115dad
child 50524 0935b9db21b6
equal deleted inserted replaced
50522:b4a9c8f18928 50523:2eb7f0b5a499
   203     for entry in alldatafiles:
   203     for entry in alldatafiles:
   204         if not (entry.is_revlog and entry.is_revlog_main):
   204         if not (entry.is_revlog and entry.is_revlog_main):
   205             continue
   205             continue
   206         unencoded = entry.unencoded_path
   206         unencoded = entry.unencoded_path
   207 
   207 
   208         # the store.walk function will wrongly pickup transaction backup and
       
   209         # get confused. As a quick fix for 5.9 release, we ignore those.
       
   210         # (this is not a module constants because it seems better to keep the
       
   211         # hack together)
       
   212         skip_undo = (
       
   213             b'undo.backup.00changelog.i',
       
   214             b'undo.backup.00manifest.i',
       
   215         )
       
   216         if unencoded in skip_undo:
       
   217             continue
       
   218 
       
   219         rl = _revlogfrompath(srcrepo, entry.revlog_type, unencoded)
   208         rl = _revlogfrompath(srcrepo, entry.revlog_type, unencoded)
   220 
   209 
   221         info = rl.storageinfo(
   210         info = rl.storageinfo(
   222             exclusivefiles=True,
   211             exclusivefiles=True,
   223             revisionscount=True,
   212             revisionscount=True,