obsolete: fix error message at marker creation
authorPierre-Yves David <pierre-yves.david@logilab.fr>
Wed, 04 Jul 2012 16:37:00 +0200
changeset 17117 217bfb10e6db
parent 17116 d8c76c82d012
child 17118 b3c20b0f5f5a
obsolete: fix error message at marker creation precursors content where printed for invalid successor.
mercurial/obsolete.py
--- a/mercurial/obsolete.py	Mon Jul 02 00:31:22 2012 +0200
+++ b/mercurial/obsolete.py	Wed Jul 04 16:37:00 2012 +0200
@@ -182,7 +182,7 @@
             raise ValueError(prec)
         for succ in succs:
             if len(succ) != 20:
-                raise ValueError(prec)
+                raise ValueError(succ)
         marker = (str(prec), tuple(succs), int(flag), encodemeta(metadata))
         self.add(marker)