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.
--- 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: