Mercurial > evolve
diff hgext/obsolete.py @ 335:c27a465daef2 stable
obsolete: fix obsolete marker creation error message
author | Pierre-Yves David <pierre-yves.david@logilab.fr> |
---|---|
date | Wed, 04 Jul 2012 16:27:08 +0200 |
parents | fb83210bce32 |
children | 7db8107eef30 |
line wrap: on
line diff
--- a/hgext/obsolete.py Tue Jul 03 12:58:55 2012 +0200 +++ b/hgext/obsolete.py Wed Jul 04 16:27:08 2012 +0200 @@ -856,10 +856,10 @@ if metadata is None: metadata = {} if len(prec) != 20: - raise ValueError(prec) + raise ValueError(repr(prec)) for succ in succs: if len(succ) != 20: - raise ValueError(prec) + raise ValueError((succs)) marker = (str(prec), tuple(succs), int(flag), encodemeta(metadata)) self.add(marker)