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