Show More
@@ -788,6 +788,12 b' def debugdata(ui, file_, rev):' | |||||
788 | except KeyError: |
|
788 | except KeyError: | |
789 | raise util.Abort(_('invalid revision identifier %s') % rev) |
|
789 | raise util.Abort(_('invalid revision identifier %s') % rev) | |
790 |
|
790 | |||
|
791 | def debugdate(ui, date): | |||
|
792 | """parse and display a date""" | |||
|
793 | d = util.parsedate(date) | |||
|
794 | ui.write("internal: %s %s\n" % d) | |||
|
795 | ui.write("standard: %s\n" % util.datestr(d)) | |||
|
796 | ||||
791 | def debugindex(ui, file_): |
|
797 | def debugindex(ui, file_): | |
792 | """dump the contents of an index file""" |
|
798 | """dump the contents of an index file""" | |
793 | r = revlog.revlog(util.opener(os.getcwd(), audit=False), file_, "", 0) |
|
799 | r = revlog.revlog(util.opener(os.getcwd(), audit=False), file_, "", 0) | |
@@ -2477,6 +2483,7 b' table = {' | |||||
2477 | "debugcheckstate": (debugcheckstate, [], _('debugcheckstate')), |
|
2483 | "debugcheckstate": (debugcheckstate, [], _('debugcheckstate')), | |
2478 | "debugsetparents": (debugsetparents, [], _('debugsetparents REV1 [REV2]')), |
|
2484 | "debugsetparents": (debugsetparents, [], _('debugsetparents REV1 [REV2]')), | |
2479 | "debugstate": (debugstate, [], _('debugstate')), |
|
2485 | "debugstate": (debugstate, [], _('debugstate')), | |
|
2486 | "debugdate": (debugdate, [], _('debugdata DATE')), | |||
2480 | "debugdata": (debugdata, [], _('debugdata FILE REV')), |
|
2487 | "debugdata": (debugdata, [], _('debugdata FILE REV')), | |
2481 | "debugindex": (debugindex, [], _('debugindex FILE')), |
|
2488 | "debugindex": (debugindex, [], _('debugindex FILE')), | |
2482 | "debugindexdot": (debugindexdot, [], _('debugindexdot FILE')), |
|
2489 | "debugindexdot": (debugindexdot, [], _('debugindexdot FILE')), | |
@@ -2727,7 +2734,7 b' table = {' | |||||
2727 | } |
|
2734 | } | |
2728 |
|
2735 | |||
2729 | norepo = ("clone init version help debugancestor debugcomplete debugdata" |
|
2736 | norepo = ("clone init version help debugancestor debugcomplete debugdata" | |
2730 | " debugindex debugindexdot") |
|
2737 | " debugindex debugindexdot debugdate") | |
2731 | optionalrepo = ("paths serve showconfig") |
|
2738 | optionalrepo = ("paths serve showconfig") | |
2732 |
|
2739 | |||
2733 | def findpossible(ui, cmd): |
|
2740 | def findpossible(ui, cmd): |
General Comments 0
You need to be logged in to leave comments.
Login now