Show More
@@ -360,6 +360,16 b' def debugbundle(ui, bundlepath, all=None' | |||||
360 | return _debugbundle2(ui, gen, all=all, **opts) |
|
360 | return _debugbundle2(ui, gen, all=all, **opts) | |
361 | _debugchangegroup(ui, gen, all=all, **opts) |
|
361 | _debugchangegroup(ui, gen, all=all, **opts) | |
362 |
|
362 | |||
|
363 | @command('debugcapabilities', | |||
|
364 | [], _('PATH'), | |||
|
365 | norepo=True) | |||
|
366 | def debugcapabilities(ui, path, **opts): | |||
|
367 | """lists the capabilities of a remote peer""" | |||
|
368 | peer = hg.peer(ui, opts, path) | |||
|
369 | caps = peer.capabilities() | |||
|
370 | ui.write(('Main capabilities:\n')) | |||
|
371 | for c in sorted(caps): | |||
|
372 | ui.write((' %s\n') % c) | |||
363 | @command('debugcheckstate', [], '') |
|
373 | @command('debugcheckstate', [], '') | |
364 | def debugcheckstate(ui, repo): |
|
374 | def debugcheckstate(ui, repo): | |
365 | """validate the correctness of the current dirstate""" |
|
375 | """validate the correctness of the current dirstate""" |
@@ -72,6 +72,7 b' Show debug commands if there are no othe' | |||||
72 | debugapplystreamclonebundle |
|
72 | debugapplystreamclonebundle | |
73 | debugbuilddag |
|
73 | debugbuilddag | |
74 | debugbundle |
|
74 | debugbundle | |
|
75 | debugcapabilities | |||
75 | debugcheckstate |
|
76 | debugcheckstate | |
76 | debugcolor |
|
77 | debugcolor | |
77 | debugcommands |
|
78 | debugcommands | |
@@ -249,6 +250,7 b' Show all commands + options' | |||||
249 | debugapplystreamclonebundle: |
|
250 | debugapplystreamclonebundle: | |
250 | debugbuilddag: mergeable-file, overwritten-file, new-file |
|
251 | debugbuilddag: mergeable-file, overwritten-file, new-file | |
251 | debugbundle: all, part-type, spec |
|
252 | debugbundle: all, part-type, spec | |
|
253 | debugcapabilities: | |||
252 | debugcheckstate: |
|
254 | debugcheckstate: | |
253 | debugcolor: style |
|
255 | debugcolor: style | |
254 | debugcommands: |
|
256 | debugcommands: |
@@ -156,3 +156,15 b' Test internal debugstacktrace command' | |||||
156 | from h hidden in g at: |
|
156 | from h hidden in g at: | |
157 | debugstacktrace.py:6 in f |
|
157 | debugstacktrace.py:6 in f | |
158 | debugstacktrace.py:9 in g |
|
158 | debugstacktrace.py:9 in g | |
|
159 | ||||
|
160 | Test debugcapabilities command: | |||
|
161 | ||||
|
162 | $ hg debugcapabilities ./debugrevlog/ | |||
|
163 | Main capabilities: | |||
|
164 | branchmap | |||
|
165 | bundle2=HG20%0Achangegroup%3D01%2C02%0Adigests%3Dmd5%2Csha1%2Csha512%0Aerror%3Dabort%2Cunsupportedcontent%2Cpushraced%2Cpushkey%0Ahgtagsfnodes%0Alistkeys%0Aphases%3Dheads%0Apushkey%0Aremote-changegroup%3Dhttp%2Chttps | |||
|
166 | getbundle | |||
|
167 | known | |||
|
168 | lookup | |||
|
169 | pushkey | |||
|
170 | unbundle |
@@ -895,6 +895,8 b' Test list of internal help commands' | |||||
895 | builds a repo with a given DAG from scratch in the current |
|
895 | builds a repo with a given DAG from scratch in the current | |
896 | empty repo |
|
896 | empty repo | |
897 | debugbundle lists the contents of a bundle |
|
897 | debugbundle lists the contents of a bundle | |
|
898 | debugcapabilities | |||
|
899 | lists the capabilities of a remote peer | |||
898 | debugcheckstate |
|
900 | debugcheckstate | |
899 | validate the correctness of the current dirstate |
|
901 | validate the correctness of the current dirstate | |
900 | debugcolor show available color, effects or style |
|
902 | debugcolor show available color, effects or style |
General Comments 0
You need to be logged in to leave comments.
Login now