changeset 3931:f2cbcf1e98b2

incoming/outgoing: return failure if no changes found
author Matt Mackall <mpm@selenic.com>
date Tue, 19 Dec 2006 08:58:56 -0600
parents 01d98d68d697
children e0793314360e
files mercurial/commands.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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()