Mercurial > hg
diff mercurial/debugcommands.py @ 37841:d618558e4e8b stable
debugbundle: also display if a part is mandatory or advisory
Most parts are mandatory but when introducing new parts, they should be
advisory if included by default or old clients won't be able to process it.
Differential Revision: https://phab.mercurial-scm.org/D3480
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Tue, 08 May 2018 11:39:38 +0200 |
parents | 0e9ddab2bac2 |
children | ead71b15efd5 |
line wrap: on
line diff
--- a/mercurial/debugcommands.py Sat May 05 18:03:01 2018 -0500 +++ b/mercurial/debugcommands.py Tue May 08 11:39:38 2018 +0200 @@ -352,7 +352,8 @@ for part in gen.iterparts(): if parttypes and part.type not in parttypes: continue - ui.write('%s -- %s\n' % (part.type, _quasirepr(part.params))) + msg = '%s -- %s (mandatory: %r)\n' + ui.write((msg % (part.type, _quasirepr(part.params), part.mandatory))) if part.type == 'changegroup': version = part.params.get('version', '01') cg = changegroup.getunbundler(version, part, 'UN')