Mercurial > public > mercurial-scm > hg
diff mercurial/repair.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 | 24a443948627 |
children | 37cdf1fca1b2 |
line wrap: on
line diff
--- a/mercurial/repair.py Tue Apr 01 15:21:56 2014 -0700 +++ b/mercurial/repair.py Tue Apr 01 15:27:53 2014 -0700 @@ -148,7 +148,8 @@ if not repo.ui.verbose: # silence internal shuffling chatter repo.ui.pushbuffer() - repo.addchangegroup(gen, 'strip', 'bundle:' + chgrpfile, True) + changegroup.addchangegroup(repo, gen, 'strip', + 'bundle:' + chgrpfile, True) if not repo.ui.verbose: repo.ui.popbuffer() f.close()