##// END OF EJS Templates
localrepo: make it clear that changegroupsubset doesn't take bases but roots...
Mads Kiilerich -
r20406:9e331f1f default
parent child Browse files
Show More
@@ -1761,9 +1761,9 b' class localrepository(object):'
1761 for node in nodes:
1761 for node in nodes:
1762 self.ui.debug("%s\n" % hex(node))
1762 self.ui.debug("%s\n" % hex(node))
1763
1763
1764 def changegroupsubset(self, bases, heads, source):
1764 def changegroupsubset(self, roots, heads, source):
1765 """Compute a changegroup consisting of all the nodes that are
1765 """Compute a changegroup consisting of all the nodes that are
1766 descendants of any of the bases and ancestors of any of the heads.
1766 descendants of any of the roots and ancestors of any of the heads.
1767 Return a chunkbuffer object whose read() method will return
1767 Return a chunkbuffer object whose read() method will return
1768 successive changegroup chunks.
1768 successive changegroup chunks.
1769
1769
@@ -1775,12 +1775,12 b' class localrepository(object):'
1775 the changegroup a particular filenode or manifestnode belongs to.
1775 the changegroup a particular filenode or manifestnode belongs to.
1776 """
1776 """
1777 cl = self.changelog
1777 cl = self.changelog
1778 if not bases:
1778 if not roots:
1779 bases = [nullid]
1779 roots = [nullid]
1780 # TODO: remove call to nodesbetween.
1780 # TODO: remove call to nodesbetween.
1781 csets, bases, heads = cl.nodesbetween(bases, heads)
1781 csets, roots, heads = cl.nodesbetween(roots, heads)
1782 discbases = []
1782 discbases = []
1783 for n in bases:
1783 for n in roots:
1784 discbases.extend([p for p in cl.parents(n) if p != nullid])
1784 discbases.extend([p for p in cl.parents(n) if p != nullid])
1785 outgoing = discovery.outgoing(cl, discbases, heads)
1785 outgoing = discovery.outgoing(cl, discbases, heads)
1786 bundler = changegroup.bundle10(self)
1786 bundler = changegroup.bundle10(self)
General Comments 0
You need to be logged in to leave comments. Login now