Mercurial > public > mercurial-scm > hg-stable
diff mercurial/wireproto.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 | d771641b7051 |
children | 4a987060d97e |
line wrap: on
line diff
--- a/mercurial/wireproto.py Tue Apr 01 14:13:34 2014 -0700 +++ b/mercurial/wireproto.py Tue Apr 01 14:25:03 2014 -0700 @@ -585,7 +585,7 @@ def changegroupsubset(repo, proto, bases, heads): bases = decodelist(bases) heads = decodelist(heads) - cg = repo.changegroupsubset(bases, heads, 'serve') + cg = changegroupmod.changegroupsubset(repo, bases, heads, 'serve') return streamres(proto.groupchunks(cg)) @wireprotocommand('debugwireargs', 'one two *')