Fix up the broken bits in findoutgoing
authorMatt Mackall <mpm@selenic.com>
Wed, 06 Jul 2005 22:21:23 -0800
changeset 637 31e090c34d3b
parent 636 ac0ec421e3a5
child 638 35f7adfefa69
Fix up the broken bits in findoutgoing
mercurial/hg.py
--- a/mercurial/hg.py	Wed Jul 06 22:20:56 2005 -0800
+++ b/mercurial/hg.py	Wed Jul 06 22:21:23 2005 -0800
@@ -977,17 +977,18 @@
 
     def findoutgoing(self, remote):
         base = {}
-        findincoming(self, remote, base)
+        self.findincoming(remote, base)
         remain = dict.fromkeys(self.changelog.nodemap)
 
         # prune everything remote has from the tree
+        del remain[nullid]
         remove = base.keys()
         while remove:
             n = remove.pop(0)
             if n in remain:
                 del remain[n]
                 for p in self.changelog.parents(n):
-                    remain.append(p)
+                    remove.append(p)
 
         # find every node whose parents have been pruned
         subset = []