comparison 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
comparison
equal deleted inserted replaced
334:fb83210bce32 335:c27a465daef2
854 * encode metadata 854 * encode metadata
855 """ 855 """
856 if metadata is None: 856 if metadata is None:
857 metadata = {} 857 metadata = {}
858 if len(prec) != 20: 858 if len(prec) != 20:
859 raise ValueError(prec) 859 raise ValueError(repr(prec))
860 for succ in succs: 860 for succ in succs:
861 if len(succ) != 20: 861 if len(succ) != 20:
862 raise ValueError(prec) 862 raise ValueError((succs))
863 marker = (str(prec), tuple(succs), int(flag), encodemeta(metadata)) 863 marker = (str(prec), tuple(succs), int(flag), encodemeta(metadata))
864 self.add(marker) 864 self.add(marker)
865 865
866 def add(self, marker): 866 def add(self, marker):
867 """Add a new marker to the store 867 """Add a new marker to the store