Show More
@@ -13,7 +13,7 b' import hg, util, revlog, bundlerepo, ext' | |||||
13 | import patch, help, mdiff, url, encoding, templatekw |
|
13 | import patch, help, mdiff, url, encoding, templatekw | |
14 | import archival, changegroup, cmdutil, sshserver, hbisect, hgweb, hgweb.server |
|
14 | import archival, changegroup, cmdutil, sshserver, hbisect, hgweb, hgweb.server | |
15 | import merge as mergemod |
|
15 | import merge as mergemod | |
16 | import minirst |
|
16 | import minirst, revset | |
17 |
|
17 | |||
18 | # Commands start here, listed alphabetically |
|
18 | # Commands start here, listed alphabetically | |
19 |
|
19 | |||
@@ -936,6 +936,15 b' def showconfig(ui, repo, *values, **opts' | |||||
936 | ui.configsource(section, name, untrusted)) |
|
936 | ui.configsource(section, name, untrusted)) | |
937 | ui.write('%s=%s\n' % (sectname, value)) |
|
937 | ui.write('%s=%s\n' % (sectname, value)) | |
938 |
|
938 | |||
|
939 | def debugrevspec(ui, repo, expr): | |||
|
940 | '''parse and apply a revision specification''' | |||
|
941 | if ui.verbose: | |||
|
942 | tree = revset.parse(expr) | |||
|
943 | ui.note(tree, "\n") | |||
|
944 | func = revset.match(expr) | |||
|
945 | for c in func(repo, range(len(repo))): | |||
|
946 | ui.write("%s\n" % c) | |||
|
947 | ||||
939 | def debugsetparents(ui, repo, rev1, rev2=None): |
|
948 | def debugsetparents(ui, repo, rev1, rev2=None): | |
940 | """manually set the parents of the current working directory |
|
949 | """manually set the parents of the current working directory | |
941 |
|
950 | |||
@@ -3782,6 +3791,8 b' table = {' | |||||
3782 | (debugrename, |
|
3791 | (debugrename, | |
3783 | [('r', 'rev', '', _('revision to debug'))], |
|
3792 | [('r', 'rev', '', _('revision to debug'))], | |
3784 | _('[-r REV] FILE')), |
|
3793 | _('[-r REV] FILE')), | |
|
3794 | "debugrevspec": | |||
|
3795 | (debugrevspec, [], ('REVSPEC')), | |||
3785 | "debugsetparents": |
|
3796 | "debugsetparents": | |
3786 | (debugsetparents, [], _('REV1 [REV2]')), |
|
3797 | (debugsetparents, [], _('REV1 [REV2]')), | |
3787 | "debugstate": |
|
3798 | "debugstate": |
@@ -73,6 +73,7 b' debugindexdot' | |||||
73 | debuginstall |
|
73 | debuginstall | |
74 | debugrebuildstate |
|
74 | debugrebuildstate | |
75 | debugrename |
|
75 | debugrename | |
|
76 | debugrevspec | |||
76 | debugsetparents |
|
77 | debugsetparents | |
77 | debugstate |
|
78 | debugstate | |
78 | debugsub |
|
79 | debugsub | |
@@ -201,6 +202,7 b' debugindexdot:' | |||||
201 | debuginstall: |
|
202 | debuginstall: | |
202 | debugrebuildstate: rev |
|
203 | debugrebuildstate: rev | |
203 | debugrename: rev |
|
204 | debugrename: rev | |
|
205 | debugrevspec: | |||
204 | debugsetparents: |
|
206 | debugsetparents: | |
205 | debugstate: nodates |
|
207 | debugstate: nodates | |
206 | debugsub: rev |
|
208 | debugsub: rev |
General Comments 0
You need to be logged in to leave comments.
Login now