mercurial/revlog.py
changeset 84 b2e3528115da
parent 83 9fd5b35cfc45
child 86 1b945e8ba67b
--- a/mercurial/revlog.py
+++ b/mercurial/revlog.py
@@ -411,6 +411,8 @@ class revlog:
 
         # retrieve the parent revision of the delta chain
         chain = data[24:44]
+        if not chain in self.nodemap:
+            raise "unknown base %s" % short(chain[:4])
 
         # track the base of the current delta log
         r = self.count()