hg
changeset 70 ce080e8eccd7
parent 69 ab03c7a52cf2
child 74 401e18c95ad3
child 103 33500fe7d56c
equal deleted inserted replaced
69:ab03c7a52cf2 70:ce080e8eccd7
   288     f = repo.file(args[0])
   288     f = repo.file(args[0])
   289     print f.encodepath(args[0])
   289     print f.encodepath(args[0])
   290 
   290 
   291 elif cmd == "debugindex":
   291 elif cmd == "debugindex":
   292     r = hg.revlog(open, args[0], "")
   292     r = hg.revlog(open, args[0], "")
   293     print "   rev    offset  length  base linkrev"+\
   293     print "   rev    offset  length   base linkrev"+\
   294           " p1           p2           nodeid"
   294           " p1           p2           nodeid"
   295     for i in range(r.count()):
   295     for i in range(r.count()):
   296         e = r.index[i]
   296         e = r.index[i]
   297         print "% 6d % 9d % 7d % 5d % 7d %s.. %s.. %s.." % (
   297         print "% 6d % 9d % 7d % 6d % 7d %s.. %s.. %s.." % (
   298             i, e[0], e[1], e[2], e[3],
   298             i, e[0], e[1], e[2], e[3],
   299             hg.hex(e[4][:5]), hg.hex(e[5][:5]), hg.hex(e[6][:5]))
   299             hg.hex(e[4][:5]), hg.hex(e[5][:5]), hg.hex(e[6][:5]))
   300 
   300 
   301 elif cmd == "merge":
   301 elif cmd == "merge":
   302     if args:
   302     if args: