mercurial/cmdutil.py
changeset 33731 2cb442bc1a76
parent 33730 52c5ff856b49
child 33736 86aca74a063b
equal deleted inserted replaced
33730:52c5ff856b49 33731:2cb442bc1a76
  1911     """utility function to display obsolescence marker in a readable way
  1911     """utility function to display obsolescence marker in a readable way
  1912 
  1912 
  1913     To be used by debug function."""
  1913     To be used by debug function."""
  1914     if index is not None:
  1914     if index is not None:
  1915         fm.write('index', '%i ', index)
  1915         fm.write('index', '%i ', index)
  1916     fm.write('precnode', '%s ', hex(marker.precnode()))
  1916     fm.write('precnode', '%s ', hex(marker.prednode()))
  1917     succs = marker.succnodes()
  1917     succs = marker.succnodes()
  1918     fm.condwrite(succs, 'succnodes', '%s ',
  1918     fm.condwrite(succs, 'succnodes', '%s ',
  1919                  fm.formatlist(map(hex, succs), name='node'))
  1919                  fm.formatlist(map(hex, succs), name='node'))
  1920     fm.write('flag', '%X ', marker.flags())
  1920     fm.write('flag', '%X ', marker.flags())
  1921     parents = marker.parentnodes()
  1921     parents = marker.parentnodes()