Mercurial > public > mercurial-scm > hg
diff mercurial/commands.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 | 4a987060d97e |
children | 6ae0c41e4b52 |
line wrap: on
line diff
--- a/mercurial/commands.py Tue Apr 01 15:21:56 2014 -0700 +++ b/mercurial/commands.py Tue Apr 01 15:27:53 2014 -0700 @@ -5780,7 +5780,8 @@ for fname in fnames: f = hg.openpath(ui, fname) gen = changegroup.readbundle(f, fname) - modheads = repo.addchangegroup(gen, 'unbundle', 'bundle:' + fname) + modheads = changegroup.addchangegroup(repo, gen, 'unbundle', + 'bundle:' + fname) finally: lock.release() bookmarks.updatecurrentbookmark(repo, wc.node(), wc.branch())