show message if no changes found on outgoing
authorThomas Arendsen Hein <thomas@intevation.de>
Fri, 24 Mar 2006 08:51:08 +0100
changeset 1994 78ef83c9e9e1
parent 1993 fb6ca9801d04
child 1995 2da2d46862fb
show message if no changes found on outgoing Now the messages for pull/push/incoming/outgoing should be consistent.
mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -2015,6 +2015,9 @@ def outgoing(ui, repo, dest="default-pus
 
     other = hg.repository(ui, dest)
     o = repo.findoutgoing(other, force=opts['force'])
+    if not o:
+        ui.status(_("no changes found\n"))
+        return
     o = repo.changelog.nodesbetween(o)[0]
     if opts['newest_first']:
         o.reverse()