changeset 15968:bf87b6b95ce5 stable

phase: alway return a value With the previous code, the phase command was returning None when displaying phase and 0 or 1 when moving them. This seemed an bit odd and displaying phase return 0 too now.
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Sun, 22 Jan 2012 21:30:09 +0100
parents 295f8aeab363
children 80f3ae36f908
files mercurial/commands.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/commands.py	Mon Jan 23 13:24:32 2012 +0100
+++ b/mercurial/commands.py	Sun Jan 22 21:30:09 2012 +0100
@@ -4249,7 +4249,7 @@
             else:
                 ui.warn(_('no phases changed\n'))
                 ret = 1
-        return ret
+    return ret
 
 def postincoming(ui, repo, modheads, optupdate, checkout):
     if modheads == 0: