diff -r 5184089f5d30 -r 50b6a04f817f mercurial/hg.py --- a/mercurial/hg.py Mon Dec 14 23:13:25 2015 +0000 +++ b/mercurial/hg.py Mon Dec 14 22:08:14 2015 +0000 @@ -663,12 +663,12 @@ # naming conflict in clone() _update = update -def clean(repo, node, show_stats=True): +def clean(repo, node, show_stats=True, quietempty=False): """forcibly switch the working directory to node, clobbering changes""" stats = updaterepo(repo, node, True) util.unlinkpath(repo.join('graftstate'), ignoremissing=True) if show_stats: - _showstats(repo, stats) + _showstats(repo, stats, quietempty) return stats[3] > 0 def merge(repo, node, force=None, remind=True):