# HG changeset patch # User Matt Mackall # Date 1166540336 21600 # Node ID f2cbcf1e98b28b2be12d5bb9332379cdf5e8d74d # Parent 01d98d68d6972df84e490f4bf7f39174c6d39860 incoming/outgoing: return failure if no changes found diff -r 01d98d68d697 -r f2cbcf1e98b2 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()