diff -r a8bd7280330f -r 4df475e22248 mercurial/localrepo.py --- a/mercurial/localrepo.py Sun Dec 17 18:45:46 2006 -0800 +++ b/mercurial/localrepo.py Sun Dec 17 21:48:22 2006 -0600 @@ -1284,7 +1284,7 @@ newheads = list(heads) for r in remote_heads: if r in self.changelog.nodemap: - desc = self.changelog.heads(r) + desc = self.changelog.heads(r, heads) l = [h for h in heads if h in desc] if not l: newheads.append(r)