changeset 1994:78ef83c9e9e1

show message if no changes found on outgoing Now the messages for pull/push/incoming/outgoing should be consistent.
author Thomas Arendsen Hein <thomas@intevation.de>
date Fri, 24 Mar 2006 08:51:08 +0100
parents fb6ca9801d04
children 2da2d46862fb
files mercurial/commands.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/commands.py	Fri Mar 24 08:34:56 2006 +0100
+++ b/mercurial/commands.py	Fri Mar 24 08:51:08 2006 +0100
@@ -2015,6 +2015,9 @@
 
     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()