Print less scary warning when invalidating the branch cache.
authorThomas Arendsen Hein <thomas@intevation.de>
Sat, 09 Feb 2008 18:58:31 +0100
changeset 6056 0ad2ffbf6b38
parent 6055 a3d8b1f8721d
child 6057 218d5b9aa466
Print less scary warning when invalidating the branch cache.
mercurial/localrepo.py
tests/test-newbranch.out
--- a/mercurial/localrepo.py	Sat Feb 09 17:36:42 2008 +0100
+++ b/mercurial/localrepo.py	Sat Feb 09 18:58:31 2008 +0100
@@ -369,7 +369,7 @@
             if not (lrev < self.changelog.count() and
                     self.changelog.node(lrev) == last): # sanity check
                 # invalidate the cache
-                raise ValueError('Invalid branch cache: unknown tip')
+                raise ValueError('invalidating branch cache (tip differs)')
             for l in lines:
                 if not l: continue
                 node, label = l.split(" ", 1)
--- a/tests/test-newbranch.out	Sat Feb 09 17:36:42 2008 +0100
+++ b/tests/test-newbranch.out	Sat Feb 09 18:58:31 2008 +0100
@@ -63,7 +63,7 @@
 date:        Mon Jan 12 13:46:40 1970 +0000
 summary:     modify a branch
 
-Invalid branch cache: unknown tip
+invalidating branch cache (tip differs)
 changeset:   4:4909a3732169c0c20011c4f4b8fdff4e3d89b23f
 branch:      foo
 tag:         tip