diff mercurial/cmdutil.py @ 11177:6a64813276ed

commands: initial audit of exit codes bisect: clarify None return bundle: return 1 on no changes clone: return result code copy: limit errors to 0/1 commit: return 1 on no changes forget: return 1 on errors grep: return 1 if no match found remove: return 1 on errors resolve: return 1 if something fails to resolve rollback: return 1 if no rollback data
author Matt Mackall <mpm@selenic.com>
date Sat, 15 May 2010 17:48:49 -0500
parents e8d10d085f47
children 0d09f2244805
line wrap: on
line diff
--- a/mercurial/cmdutil.py	Fri May 14 12:57:24 2010 -0500
+++ b/mercurial/cmdutil.py	Sat May 15 17:48:49 2010 -0500
@@ -548,7 +548,7 @@
     if errors:
         ui.warn(_('(consider using --after)\n'))
 
-    return errors
+    return errors != 0
 
 def service(opts, parentfn=None, initfn=None, runfn=None, logfile=None,
     runargs=None, appendpid=False):