mercurial/commands.py
changeset 7737 26bdb7109170
parent 7695 deec6628e62b
child 7739 edcb56991afe
equal deleted inserted replaced
7736:fb0776fe3e38 7737:26bdb7109170
   833         ui.write("match: %s\n" % m(d[0]))
   833         ui.write("match: %s\n" % m(d[0]))
   834 
   834 
   835 def debugindex(ui, file_):
   835 def debugindex(ui, file_):
   836     """dump the contents of an index file"""
   836     """dump the contents of an index file"""
   837     r = revlog.revlog(util.opener(os.getcwd(), audit=False), file_)
   837     r = revlog.revlog(util.opener(os.getcwd(), audit=False), file_)
   838     ui.write("   rev    offset  length   base linkrev" +
   838     ui.write("   rev    offset  length   base linkrev"
   839              " nodeid       p1           p2\n")
   839              " nodeid       p1           p2\n")
   840     for i in r:
   840     for i in r:
   841         node = r.node(i)
   841         node = r.node(i)
   842         try:
   842         try:
   843             pp = r.parents(node)
   843             pp = r.parents(node)