changeset 17117:217bfb10e6db

obsolete: fix error message at marker creation precursors content where printed for invalid successor.
author Pierre-Yves David <pierre-yves.david@logilab.fr>
date Wed, 04 Jul 2012 16:37:00 +0200
parents d8c76c82d012
children b3c20b0f5f5a
files mercurial/obsolete.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)