changeset 28613 | 6433da9c96a9 |
parent 28608 | 62e73d42bd14 |
child 28617 | 1a1e4350b560 |
--- a/mercurial/cmdutil.py Tue Mar 15 09:51:42 2016 +0000 +++ b/mercurial/cmdutil.py Wed Mar 23 10:50:24 2016 -0700 @@ -1597,10 +1597,12 @@ raise error.Abort(inst.args[0]) return t -def showmarker(ui, marker): +def showmarker(ui, marker, index=None): """utility function to display obsolescence marker in a readable way To be used by debug function.""" + if index is not None: + ui.write("%i " % index) ui.write(hex(marker.precnode())) for repl in marker.succnodes(): ui.write(' ')