changeset 84:b2e3528115da

More useful message on broken addgroup chain
author mpm@selenic.com
date Tue, 17 May 2005 11:40:26 -0800
parents 9fd5b35cfc45
children 58a1a0425c9b
files mercurial/revlog.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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()