diff -r 2b8c8b8d1a06 -r ead71b15efd5 mercurial/debugcommands.py --- a/mercurial/debugcommands.py Sat May 26 03:01:14 2018 +0530 +++ b/mercurial/debugcommands.py Wed Jun 06 13:31:24 2018 -0400 @@ -351,7 +351,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')