comparison 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
comparison
equal deleted inserted replaced
11176:ed5d2a7c4b73 11177:6a64813276ed
546 errors += 1 546 errors += 1
547 547
548 if errors: 548 if errors:
549 ui.warn(_('(consider using --after)\n')) 549 ui.warn(_('(consider using --after)\n'))
550 550
551 return errors 551 return errors != 0
552 552
553 def service(opts, parentfn=None, initfn=None, runfn=None, logfile=None, 553 def service(opts, parentfn=None, initfn=None, runfn=None, logfile=None,
554 runargs=None, appendpid=False): 554 runargs=None, appendpid=False):
555 '''Run a command as a service.''' 555 '''Run a command as a service.'''
556 556