diff mercurial/commands.py @ 931:32e8f64b25b0

Fix incoming for empty set
author mpm@selenic.com
date Tue, 16 Aug 2005 22:47:49 -0800
parents 6f2c3bcbfaaf
children 54b2a42e501e f15901d053e1
line wrap: on
line diff
--- 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: