mercurial/commands.py
changeset 3931 f2cbcf1e98b2
parent 3930 01d98d68d697
child 3933 7997c0e01bfc
--- 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()