# HG changeset patch # User mpm@selenic.com # Date 2005-08-17 06:47:49 # Node ID 32e8f64b25b0d7c0ee5821cdad3b66634c52f244 # Parent 0c4a6ad6efc158eca1a98f8b2c0a8a87a3d5a56d Fix incoming for empty set diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -791,6 +791,8 @@ def incoming(ui, repo, source="default") + " repositories yet, sorry!\n") return 1 o = repo.findincoming(other) + if not o: + return o = other.newer(o) o.reverse() for n in o: