phase: alway return a value stable
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Sun, 22 Jan 2012 21:30:09 +0100
branchstable
changeset 15968 bf87b6b95ce5
parent 15967 295f8aeab363
child 15969 80f3ae36f908
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.
mercurial/commands.py
--- 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: