Show More
@@ -314,7 +314,10 def _debugbundle2(ui, gen, all=None, **o | |||
|
314 | 314 | if not isinstance(gen, bundle2.unbundle20): |
|
315 | 315 | raise error.Abort(_('not a bundle2 file')) |
|
316 | 316 | ui.write(('Stream params: %s\n' % repr(gen.params))) |
|
317 | parttypes = opts.get('part_type', []) | |
|
317 | 318 | for part in gen.iterparts(): |
|
319 | if parttypes and part.type not in parttypes: | |
|
320 | continue | |
|
318 | 321 | ui.write('%s -- %r\n' % (part.type, repr(part.params))) |
|
319 | 322 | if part.type == 'changegroup': |
|
320 | 323 | version = part.params.get('version', '01') |
@@ -325,6 +328,7 def _debugbundle2(ui, gen, all=None, **o | |||
|
325 | 328 | |
|
326 | 329 | @command('debugbundle', |
|
327 | 330 | [('a', 'all', None, _('show all details')), |
|
331 | ('', 'part-type', [], _('show only the named part type')), | |
|
328 | 332 | ('', 'spec', None, _('print the bundlespec of the bundle'))], |
|
329 | 333 | _('FILE'), |
|
330 | 334 | norepo=True) |
@@ -247,7 +247,7 Show all commands + options | |||
|
247 | 247 | debugancestor: |
|
248 | 248 | debugapplystreamclonebundle: |
|
249 | 249 | debugbuilddag: mergeable-file, overwritten-file, new-file |
|
250 | debugbundle: all, spec | |
|
250 | debugbundle: all, part-type, spec | |
|
251 | 251 | debugcheckstate: |
|
252 | 252 | debugcolor: style |
|
253 | 253 | debugcommands: |
@@ -67,7 +67,7 obsmarkers. It also check the obsmarkers | |||
|
67 | 67 | > cat "${markersfile}" |
|
68 | 68 | > printf "# bundling: " |
|
69 | 69 | > hg bundle --hidden --base "parents(roots(${revs}))" --rev "${revs}" "${bundlefile}" |
|
70 |
> hg debugbundle "${bundlefile}" | |
|
|
70 | > hg debugbundle --part-type obsmarkers "${bundlefile}" | sed 1,3d > "${contentfile}" | |
|
71 | 71 | > echo '### Bundled markers ###' |
|
72 | 72 | > cat "${contentfile}" |
|
73 | 73 | > echo '### diff <relevant> <bundled> ###' |
@@ -86,7 +86,7 obsmarkers. It also check the obsmarkers | |||
|
86 | 86 | > hg debugobsolete --hidden | sort | sed 's/^/ /' > "${prestripfile}" |
|
87 | 87 | > hg strip --hidden --rev "${revs}" |
|
88 | 88 | > hg debugobsolete --hidden | sort | sed 's/^/ /' > "${poststripfile}" |
|
89 |
> hg debugbundle .hg/strip-backup/* | |
|
|
89 | > hg debugbundle --part-type obsmarkers .hg/strip-backup/* | sed 1,3d > "${stripcontentfile}" | |
|
90 | 90 | > echo '### Backup markers ###' |
|
91 | 91 | > cat "${stripcontentfile}" |
|
92 | 92 | > echo '### diff <relevant> <backed-up> ###' |
General Comments 0
You need to be logged in to leave comments.
Login now