mercurial/manifest.py
changeset 43778 888bd39ed555
parent 43523 c21aca51b392
child 44247 c443b9ba6f63
child 44257 dbbae122f5e4
--- a/mercurial/manifest.py	Fri Nov 22 11:08:59 2019 -0800
+++ b/mercurial/manifest.py	Tue Nov 19 18:38:17 2019 -0800
@@ -1572,7 +1572,11 @@
         reporef = weakref.ref(repo)
         manifestrevlogref = weakref.ref(self)
 
-        def persistmanifestcache():
+        def persistmanifestcache(success):
+            # Repo is in an unknown state, do not persist.
+            if not success:
+                return
+
             repo = reporef()
             self = manifestrevlogref()
             if repo is None or self is None: