diff -r 0ac83e4e4f7c -r d3775db748a0 mercurial/exchange.py --- a/mercurial/exchange.py Tue Apr 01 15:21:56 2014 -0700 +++ b/mercurial/exchange.py Tue Apr 01 15:27:53 2014 -0700 @@ -508,7 +508,7 @@ "changegroupsubset.")) else: cg = pullop.remote.changegroupsubset(pullop.fetch, pullop.heads, 'pull') - pullop.cgresult = pullop.repo.addchangegroup(cg, 'pull', + pullop.cgresult = changegroup.addchangegroup(pullop.repo, cg, 'pull', pullop.remote.url()) def _pullphase(pullop):