diff --git a/mercurial/changegroup.py b/mercurial/changegroup.py --- a/mercurial/changegroup.py +++ b/mercurial/changegroup.py @@ -293,7 +293,7 @@ class cg1unpacker(object): # will not see an inconsistent view cl = repo.changelog cl.delayupdate(tr) - oldheads = cl.heads() + oldheads = set(cl.heads()) trp = weakref.proxy(tr) # pull off the changeset group