Mercurial > public > mercurial-scm > hg
diff hgext/shelve.py @ 20927:24a443948627
localrepo: move the changegroupsubset 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.
The peer API remains unchanged.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Tue, 01 Apr 2014 14:25:03 -0700 |
parents | 0ac94c0a3a38 |
children | d3775db748a0 |
line wrap: on
line diff
--- a/hgext/shelve.py Tue Apr 01 14:13:34 2014 -0700 +++ b/hgext/shelve.py Tue Apr 01 14:25:03 2014 -0700 @@ -25,7 +25,7 @@ from mercurial.node import nullid, nullrev, bin, hex from mercurial import changegroup, cmdutil, scmutil, phases, commands from mercurial import error, hg, mdiff, merge, patch, repair, util -from mercurial import templatefilters +from mercurial import templatefilters, changegroup from mercurial import lock as lockmod from hgext import rebase import errno @@ -227,7 +227,7 @@ fp.write('\0'.join(shelvedfiles)) bases = list(publicancestors(repo[node])) - cg = repo.changegroupsubset(bases, [node], 'shelve') + cg = changegroup.changegroupsubset(repo, bases, [node], 'shelve') changegroup.writebundle(cg, shelvedfile(repo, name, 'hg').filename(), 'HG10UN') cmdutil.export(repo, [node],