# HG changeset patch # User Pierre-Yves David # Date 2012-07-04 14:37:00 # Node ID 217bfb10e6dbe630d4cd08ec6c9f8114adb3cdc2 # Parent d8c76c82d012f974450bd787cc9c2406e2d562b2 obsolete: fix error message at marker creation precursors content where printed for invalid successor. diff --git a/mercurial/obsolete.py b/mercurial/obsolete.py --- a/mercurial/obsolete.py +++ b/mercurial/obsolete.py @@ -182,7 +182,7 @@ class obsstore(object): 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)