mercurial/revlogutils/nodemap.py
branchstable
changeset 44745 b4537125eb3c
parent 44697 0792ad55e533
child 44788 6493f0a567c2
--- a/mercurial/revlogutils/nodemap.py	Thu Apr 16 22:56:03 2020 +0200
+++ b/mercurial/revlogutils/nodemap.py	Mon Apr 13 18:04:55 2020 +0200
@@ -112,6 +112,11 @@
     To be used for updating the nodemap on disk outside of a normal transaction
     setup (eg, `debugupdatecache`).
     """
+    if revlog._inline:
+        return  # inlined revlog are too small for this to be relevant
+    if revlog.nodemap_file is None:
+        return  # we do not use persistent_nodemap on this revlog
+
     notr = _NoTransaction()
     _persist_nodemap(notr, revlog)
     for k in sorted(notr._postclose):