mercurial/bookmarks.py
changeset 44370 edaae3616ba3
parent 43601 a80d5ddecc2d
child 44371 0275000564c4
--- a/mercurial/bookmarks.py	Sat Feb 15 15:06:41 2020 -0500
+++ b/mercurial/bookmarks.py	Sat Feb 15 14:51:33 2020 -0500
@@ -173,6 +173,8 @@
             nrefs.sort()
 
     def _del(self, mark):
+        if mark not in self._refmap:
+            return
         self._clean = False
         node = self._refmap.pop(mark)
         nrefs = self._nodemap[node]