comparison 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
comparison
equal deleted inserted replaced
20925:5174c48ed8d8 20926:7c1ed40e3325
1681 pass 1681 pass
1682 1682
1683 def push(self, remote, force=False, revs=None, newbranch=False): 1683 def push(self, remote, force=False, revs=None, newbranch=False):
1684 return exchange.push(self, remote, force, revs, newbranch) 1684 return exchange.push(self, remote, force, revs, newbranch)
1685 1685
1686 def changegroupinfo(self, nodes, source):
1687 if self.ui.verbose or source == 'bundle':
1688 self.ui.status(_("%d changesets found\n") % len(nodes))
1689 if self.ui.debugflag:
1690 self.ui.debug("list of changesets:\n")
1691 for node in nodes:
1692 self.ui.debug("%s\n" % hex(node))
1693
1694 def changegroupsubset(self, roots, heads, source): 1686 def changegroupsubset(self, roots, heads, source):
1695 """Compute a changegroup consisting of all the nodes that are 1687 """Compute a changegroup consisting of all the nodes that are
1696 descendants of any of the roots and ancestors of any of the heads. 1688 descendants of any of the roots and ancestors of any of the heads.
1697 Return a chunkbuffer object whose read() method will return 1689 Return a chunkbuffer object whose read() method will return
1698 successive changegroup chunks. 1690 successive changegroup chunks.