incoming/outgoing: return failure if no changes found
authorMatt Mackall <mpm@selenic.com>
Tue, 19 Dec 2006 08:58:56 -0600
changeset 3931 f2cbcf1e98b2
parent 3930 01d98d68d697
child 3932 e0793314360e
incoming/outgoing: return failure if no changes found
mercurial/commands.py
--- a/mercurial/commands.py	Mon Dec 18 12:22:43 2006 -0800
+++ b/mercurial/commands.py	Tue Dec 19 08:58:56 2006 -0600
@@ -1532,7 +1532,7 @@
     incoming = repo.findincoming(other, force=opts["force"])
     if not incoming:
         ui.status(_("no changes found\n"))
-        return
+        return 1
 
     cleanup = None
     try:
@@ -1812,7 +1812,7 @@
     o = repo.findoutgoing(other, force=opts['force'])
     if not o:
         ui.status(_("no changes found\n"))
-        return
+        return 1
     o = repo.changelog.nodesbetween(o, revs)[0]
     if opts['newest_first']:
         o.reverse()