equal
deleted
inserted
replaced
1595 buffered) |
1595 buffered) |
1596 except SyntaxError as inst: |
1596 except SyntaxError as inst: |
1597 raise error.Abort(inst.args[0]) |
1597 raise error.Abort(inst.args[0]) |
1598 return t |
1598 return t |
1599 |
1599 |
1600 def showmarker(ui, marker): |
1600 def showmarker(ui, marker, index=None): |
1601 """utility function to display obsolescence marker in a readable way |
1601 """utility function to display obsolescence marker in a readable way |
1602 |
1602 |
1603 To be used by debug function.""" |
1603 To be used by debug function.""" |
|
1604 if index is not None: |
|
1605 ui.write("%i " % index) |
1604 ui.write(hex(marker.precnode())) |
1606 ui.write(hex(marker.precnode())) |
1605 for repl in marker.succnodes(): |
1607 for repl in marker.succnodes(): |
1606 ui.write(' ') |
1608 ui.write(' ') |
1607 ui.write(hex(repl)) |
1609 ui.write(hex(repl)) |
1608 ui.write(' %X ' % marker.flags()) |
1610 ui.write(' %X ' % marker.flags()) |