Mercurial > public > mercurial-scm > hg-stable
diff mercurial/localrepo.py @ 20926:7c1ed40e3325
localrepo: move the changegroupinfo method in changegroup module
This is a gratuitous code move aimed at reducing the localrepo bloatness.
The method had a single caller... already in this changegroup module.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Tue, 01 Apr 2014 14:13:34 -0700 |
parents | 5174c48ed8d8 |
children | 24a443948627 |
line wrap: on
line diff
--- a/mercurial/localrepo.py Tue Apr 01 13:59:55 2014 -0700 +++ b/mercurial/localrepo.py Tue Apr 01 14:13:34 2014 -0700 @@ -1683,14 +1683,6 @@ def push(self, remote, force=False, revs=None, newbranch=False): return exchange.push(self, remote, force, revs, newbranch) - def changegroupinfo(self, nodes, source): - if self.ui.verbose or source == 'bundle': - self.ui.status(_("%d changesets found\n") % len(nodes)) - if self.ui.debugflag: - self.ui.debug("list of changesets:\n") - for node in nodes: - self.ui.debug("%s\n" % hex(node)) - def changegroupsubset(self, roots, heads, source): """Compute a changegroup consisting of all the nodes that are descendants of any of the roots and ancestors of any of the heads.