Show More
@@ -360,6 +360,16 b' def debugbundle(ui, bundlepath, all=None' | |||
|
360 | 360 | return _debugbundle2(ui, gen, all=all, **opts) |
|
361 | 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 | 373 | @command('debugcheckstate', [], '') |
|
364 | 374 | def debugcheckstate(ui, repo): |
|
365 | 375 | """validate the correctness of the current dirstate""" |
@@ -72,6 +72,7 b' Show debug commands if there are no othe' | |||
|
72 | 72 | debugapplystreamclonebundle |
|
73 | 73 | debugbuilddag |
|
74 | 74 | debugbundle |
|
75 | debugcapabilities | |
|
75 | 76 | debugcheckstate |
|
76 | 77 | debugcolor |
|
77 | 78 | debugcommands |
@@ -249,6 +250,7 b' Show all commands + options' | |||
|
249 | 250 | debugapplystreamclonebundle: |
|
250 | 251 | debugbuilddag: mergeable-file, overwritten-file, new-file |
|
251 | 252 | debugbundle: all, part-type, spec |
|
253 | debugcapabilities: | |
|
252 | 254 | debugcheckstate: |
|
253 | 255 | debugcolor: style |
|
254 | 256 | debugcommands: |
@@ -156,3 +156,15 b' Test internal debugstacktrace command' | |||
|
156 | 156 | from h hidden in g at: |
|
157 | 157 | debugstacktrace.py:6 in f |
|
158 | 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 | 895 | builds a repo with a given DAG from scratch in the current |
|
896 | 896 | empty repo |
|
897 | 897 | debugbundle lists the contents of a bundle |
|
898 | debugcapabilities | |
|
899 | lists the capabilities of a remote peer | |
|
898 | 900 | debugcheckstate |
|
899 | 901 | validate the correctness of the current dirstate |
|
900 | 902 | debugcolor show available color, effects or style |
General Comments 0
You need to be logged in to leave comments.
Login now