changeset 931:32e8f64b25b0

Fix incoming for empty set
author mpm@selenic.com
date Tue, 16 Aug 2005 22:47:49 -0800
parents 0c4a6ad6efc1
children fdf3b7f3b3b4
files mercurial/commands.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/commands.py	Tue Aug 16 21:33:50 2005 -0800
+++ b/mercurial/commands.py	Tue Aug 16 22:47:49 2005 -0800
@@ -791,6 +791,8 @@
                 + " repositories yet, sorry!\n")
         return 1
     o = repo.findincoming(other)
+    if not o:
+        return
     o = other.newer(o)
     o.reverse()
     for n in o: