comparison mercurial/upgrade_utils/engine.py @ 46402:8da44c36fc74 stable

typing: add an assertion to the upgrade engine to help pytype Differential Revision: https://phab.mercurial-scm.org/D10180
author Matt Harbison <matt_harbison@yahoo.com>
date Thu, 11 Mar 2021 19:50:14 -0500
parents 8023991dc811
children e2f7b2695ba1
comparison
equal deleted inserted replaced
46401:d6601547f22b 46402:8da44c36fc74
514 514
515 # The lock file from the old store won't be removed because nothing has a 515 # The lock file from the old store won't be removed because nothing has a
516 # reference to its new location. So clean it up manually. Alternatively, we 516 # reference to its new location. So clean it up manually. Alternatively, we
517 # could update srcrepo.svfs and other variables to point to the new 517 # could update srcrepo.svfs and other variables to point to the new
518 # location. This is simpler. 518 # location. This is simpler.
519 assert backupvfs is not None # help pytype
519 backupvfs.unlink(b'store/lock') 520 backupvfs.unlink(b'store/lock')
520 521
521 return backuppath 522 return backuppath