##// END OF EJS Templates
Add debughash and debugindex commands
mpm@selenic.com -
r24:57a1eef7 default
parent child Browse files
Show More
@@ -211,6 +211,20 b' elif cmd == "dumpmanifest":'
211 for f in files:
211 for f in files:
212 print hg.hex(m[f]), f
212 print hg.hex(m[f]), f
213
213
214 elif cmd == "debughash":
215 f = repo.file(args[0])
216 print f.encodepath(args[0])
217
218 elif cmd == "debugindex":
219 r = hg.revlog(open, args[0], "")
220 print " rev offset length base linkrev"+\
221 " p1 p2 nodeid"
222 for i in range(r.count()):
223 e = r.index[i]
224 print "% 6d % 9d % 7d % 5d % 7d %s.. %s.. %s.." % (
225 i, e[0], e[1], e[2], e[3],
226 hg.hex(e[4][:5]), hg.hex(e[5][:5]), hg.hex(e[6][:5]))
227
214 elif cmd == "merge":
228 elif cmd == "merge":
215 if args:
229 if args:
216 other = hg.repository(ui, args[0])
230 other = hg.repository(ui, args[0])
General Comments 0
You need to be logged in to leave comments. Login now