mercurial/upgrade_utils/engine.py
changeset 46794 e2f7b2695ba1
parent 46780 6266d19556ad
parent 46695 8da44c36fc74
child 46895 6085b7f1536d
equal deleted inserted replaced
46782:6b52cffd8d0a 46794:e2f7b2695ba1
   579         if upgrade_op.backup_store:
   579         if upgrade_op.backup_store:
   580             # The lock file from the old store won't be removed because nothing has a
   580             # The lock file from the old store won't be removed because nothing has a
   581             # reference to its new location. So clean it up manually. Alternatively, we
   581             # reference to its new location. So clean it up manually. Alternatively, we
   582             # could update srcrepo.svfs and other variables to point to the new
   582             # could update srcrepo.svfs and other variables to point to the new
   583             # location. This is simpler.
   583             # location. This is simpler.
       
   584             assert backupvfs is not None  # help pytype
   584             backupvfs.unlink(b'store/lock')
   585             backupvfs.unlink(b'store/lock')
   585 
   586 
   586     return backuppath
   587     return backuppath