Show More
@@ -612,6 +612,11 def debugstate(ui, repo): | |||||
612 | time.strftime("%x %X", |
|
612 | time.strftime("%x %X", | |
613 | time.localtime(dc[file_][3])), file_)) |
|
613 | time.localtime(dc[file_][3])), file_)) | |
614 |
|
614 | |||
|
615 | def debugdata(ui, file_, rev): | |||
|
616 | """dump the contents of an data file revision""" | |||
|
617 | r = hg.revlog(hg.opener(""), file_[:-2] + ".i", file_) | |||
|
618 | ui.write(r.revision(r.lookup(rev))) | |||
|
619 | ||||
615 | def debugindex(ui, file_): |
|
620 | def debugindex(ui, file_): | |
616 | """dump the contents of an index file""" |
|
621 | """dump the contents of an index file""" | |
617 | r = hg.revlog(hg.opener(""), file_, "") |
|
622 | r = hg.revlog(hg.opener(""), file_, "") | |
@@ -1377,6 +1382,7 table = { | |||||
1377 | "debugcheckstate": (debugcheckstate, [], 'debugcheckstate'), |
|
1382 | "debugcheckstate": (debugcheckstate, [], 'debugcheckstate'), | |
1378 | "debugconfig": (debugconfig, [], 'debugconfig'), |
|
1383 | "debugconfig": (debugconfig, [], 'debugconfig'), | |
1379 | "debugstate": (debugstate, [], 'debugstate'), |
|
1384 | "debugstate": (debugstate, [], 'debugstate'), | |
|
1385 | "debugdata": (debugdata, [], 'debugdata FILE REV'), | |||
1380 | "debugindex": (debugindex, [], 'debugindex FILE'), |
|
1386 | "debugindex": (debugindex, [], 'debugindex FILE'), | |
1381 | "debugindexdot": (debugindexdot, [], 'debugindexdot FILE'), |
|
1387 | "debugindexdot": (debugindexdot, [], 'debugindexdot FILE'), | |
1382 | "debugwalk": |
|
1388 | "debugwalk": | |
@@ -1518,7 +1524,8 globalopts = [('v', 'verbose', None, 've | |||||
1518 | ('', 'time', None, 'time how long the command takes'), |
|
1524 | ('', 'time', None, 'time how long the command takes'), | |
1519 | ] |
|
1525 | ] | |
1520 |
|
1526 | |||
1521 |
norepo = "clone init version help debugconfig debug |
|
1527 | norepo = "clone init version help debugconfig debugdata" + \ | |
|
1528 | " debugindex debugindexdot paths" | |||
1522 |
|
1529 | |||
1523 | def find(cmd): |
|
1530 | def find(cmd): | |
1524 | for e in table.keys(): |
|
1531 | for e in table.keys(): |
General Comments 0
You need to be logged in to leave comments.
Login now