comparison mercurial/debugcommands.py @ 36957:c92d1d3c58ee

debugbundle: do not display detailed part data in --quiet mode This changeset makes `hg debugbundle` respect --quiet and only display data about part headers.
author Boris Feld <boris.feld@octobus.net>
date Wed, 21 Feb 2018 17:16:56 +0100
parents 31581528f242
children b24cde12061b
comparison
equal deleted inserted replaced
36956:c18ae7a07019 36957:c92d1d3c58ee
343 continue 343 continue
344 ui.write('%s -- %s\n' % (part.type, _quasirepr(part.params))) 344 ui.write('%s -- %s\n' % (part.type, _quasirepr(part.params)))
345 if part.type == 'changegroup': 345 if part.type == 'changegroup':
346 version = part.params.get('version', '01') 346 version = part.params.get('version', '01')
347 cg = changegroup.getunbundler(version, part, 'UN') 347 cg = changegroup.getunbundler(version, part, 'UN')
348 _debugchangegroup(ui, cg, all=all, indent=4, **opts) 348 if not ui.quiet:
349 _debugchangegroup(ui, cg, all=all, indent=4, **opts)
349 if part.type == 'obsmarkers': 350 if part.type == 'obsmarkers':
350 _debugobsmarkers(ui, part, indent=4, **opts) 351 if not ui.quiet:
352 _debugobsmarkers(ui, part, indent=4, **opts)
351 if part.type == 'phase-heads': 353 if part.type == 'phase-heads':
352 _debugphaseheads(ui, part, indent=4) 354 if not ui.quiet:
355 _debugphaseheads(ui, part, indent=4)
353 356
354 @command('debugbundle', 357 @command('debugbundle',
355 [('a', 'all', None, _('show all details')), 358 [('a', 'all', None, _('show all details')),
356 ('', 'part-type', [], _('show only the named part type')), 359 ('', 'part-type', [], _('show only the named part type')),
357 ('', 'spec', None, _('print the bundlespec of the bundle'))], 360 ('', 'spec', None, _('print the bundlespec of the bundle'))],