Patchwork D10156: hg: make `clean` return consistent with the `update` function

login
register
mail settings
Submitter phabricator
Date March 11, 2021, 4:52 p.m.
Message ID <differential-rev-PHID-DREV-ermpohsp4szafstlh3yw-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/48471/
State Superseded
Headers show

Comments

phabricator - March 11, 2021, 4:52 p.m.
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  The function return a boolean and is used as such. Lets be explicit about it.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D10156

AFFECTED FILES
  mercurial/hg.py

CHANGE DETAILS




To: marmoute, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/mercurial/hg.py b/mercurial/hg.py
--- a/mercurial/hg.py
+++ b/mercurial/hg.py
@@ -1121,6 +1121,7 @@ 
     assert stats.unresolvedcount == 0
     if show_stats:
         _showstats(repo, stats, quietempty)
+    return False
 
 
 # naming conflict in updatetotally()