Mercurial > hg > gitweb
comparison hg @ 91:1c212bbb38d5
hack so that debugindex takes filenames
author | mpm@selenic.com |
---|---|
date | Wed, 18 May 2005 15:21:53 -0800 |
parents | 4cd9145d5b53 |
children | e6fc7ff52246 |
comparison
equal
deleted
inserted
replaced
90:ab9ebff09dcd | 91:1c212bbb38d5 |
---|---|
335 elif cmd == "debughash": | 335 elif cmd == "debughash": |
336 f = repo.file(args[0]) | 336 f = repo.file(args[0]) |
337 print f.encodepath(args[0]) | 337 print f.encodepath(args[0]) |
338 | 338 |
339 elif cmd == "debugindex": | 339 elif cmd == "debugindex": |
340 if ".hg" not in args[0]: | |
341 args[0] = ".hg/data/" + repo.file(args[0]).encodepath(args[0]) + "i" | |
342 | |
340 r = hg.revlog(open, args[0], "") | 343 r = hg.revlog(open, args[0], "") |
341 print " rev offset length base linkrev"+\ | 344 print " rev offset length base linkrev"+\ |
342 " p1 p2 nodeid" | 345 " p1 p2 nodeid" |
343 for i in range(r.count()): | 346 for i in range(r.count()): |
344 e = r.index[i] | 347 e = r.index[i] |