diff mercurial/exchange.py @ 20933:d3775db748a0

localrepo: move the addchangegroup method in changegroup module This is a gratuitous code move aimed at reducing the localrepo bloatness. The method had few callers, not enough to be kept in local repo.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Tue, 01 Apr 2014 15:27:53 -0700
parents 91b47139d0cb
children dba91f8060eb
line wrap: on
line diff
--- 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):