changeset 46695: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 d6601547f22b
children ed0899e01628
files mercurial/upgrade_utils/engine.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/upgrade_utils/engine.py	Thu Mar 11 19:21:58 2021 -0500
+++ b/mercurial/upgrade_utils/engine.py	Thu Mar 11 19:50:14 2021 -0500
@@ -516,6 +516,7 @@
     # reference to its new location. So clean it up manually. Alternatively, we
     # could update srcrepo.svfs and other variables to point to the new
     # location. This is simpler.
+    assert backupvfs is not None  # help pytype
     backupvfs.unlink(b'store/lock')
 
     return backuppath