Commits

Pierre-Yves David committed c27a465

obsolete: fix obsolete marker creation error message

  • Participants
  • Parent commits fb83210
  • Branches stable

Comments (0)

Files changed (1)

hgext/obsolete.py

         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)