hack so that debugindex takes filenames
authormpm@selenic.com
Wed, 18 May 2005 15:21:53 -0800
changeset 91 1c212bbb38d5
parent 90 ab9ebff09dcd
child 92 e6fc7ff52246
hack so that debugindex takes filenames
hg
--- a/hg	Tue May 17 13:38:21 2005 -0800
+++ b/hg	Wed May 18 15:21:53 2005 -0800
@@ -337,6 +337,9 @@
     print f.encodepath(args[0])
 
 elif cmd == "debugindex":
+    if ".hg" not in args[0]:
+        args[0] = ".hg/data/" + repo.file(args[0]).encodepath(args[0]) + "i"
+    
     r = hg.revlog(open, args[0], "")
     print "   rev    offset  length   base linkrev"+\
           " p1           p2           nodeid"