mercurial/debugcommands.py
changeset 36951 c92d1d3c58ee
parent 36843 31581528f242
child 36952 b24cde12061b
--- a/mercurial/debugcommands.py	Wed Mar 14 15:44:53 2018 -0400
+++ b/mercurial/debugcommands.py	Wed Feb 21 17:16:56 2018 +0100
@@ -345,11 +345,14 @@
         if part.type == 'changegroup':
             version = part.params.get('version', '01')
             cg = changegroup.getunbundler(version, part, 'UN')
-            _debugchangegroup(ui, cg, all=all, indent=4, **opts)
+            if not ui.quiet:
+                _debugchangegroup(ui, cg, all=all, indent=4, **opts)
         if part.type == 'obsmarkers':
-            _debugobsmarkers(ui, part, indent=4, **opts)
+            if not ui.quiet:
+                _debugobsmarkers(ui, part, indent=4, **opts)
         if part.type == 'phase-heads':
-            _debugphaseheads(ui, part, indent=4)
+            if not ui.quiet:
+                _debugphaseheads(ui, part, indent=4)
 
 @command('debugbundle',
         [('a', 'all', None, _('show all details')),