Mercurial > public > mercurial-scm > hg-stable
diff mercurial/obsolete.py @ 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 | 75f4180509a4 |
children | f1b7683f3f95 |
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)