changeset 27402:5184089f5d30

hg: add quietempty flag to _showstats if called with quietempty=True, suppress: 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
author timeless <timeless@mozdev.org>
date Mon, 14 Dec 2015 23:13:25 +0000
parents 186f2afe9919
children 50b6a04f817f
files mercurial/hg.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/hg.py	Thu Dec 17 11:00:06 2015 -0800
+++ b/mercurial/hg.py	Mon Dec 14 23:13:25 2015 +0000
@@ -637,7 +637,9 @@
             srcpeer.close()
     return srcpeer, destpeer
 
-def _showstats(repo, stats):
+def _showstats(repo, stats, quietempty=False):
+    if quietempty and not any(stats):
+        return
     repo.ui.status(_("%d files updated, %d files merged, "
                      "%d files removed, %d files unresolved\n") % stats)