More useful message on broken addgroup chain
authormpm@selenic.com
Tue, 17 May 2005 11:40:26 -0800
changeset 84 b2e3528115da
parent 83 9fd5b35cfc45
child 85 58a1a0425c9b
More useful message on broken addgroup chain
mercurial/revlog.py
--- a/mercurial/revlog.py	Tue May 17 11:06:59 2005 -0800
+++ b/mercurial/revlog.py	Tue May 17 11:40:26 2005 -0800
@@ -411,6 +411,8 @@
 
         # 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()