##// END OF EJS Templates
discovery: prefer loop to double-for list comprehension in changegroupsubset...
Kevin Bullock -
r20216:01bdccfe default
parent child Browse files
Show More
@@ -1993,8 +1993,10 b' class localrepository(object):'
1993 1993 bases = [nullid]
1994 1994 # TODO: remove call to nodesbetween.
1995 1995 csets, bases, heads = cl.nodesbetween(bases, heads)
1996 bases = [p for n in bases for p in cl.parents(n) if p != nullid]
1997 outgoing = discovery.outgoing(cl, bases, heads)
1996 discbases = []
1997 for n in bases:
1998 discbases.extend([p for p in cl.parents(n) if p != nullid])
1999 outgoing = discovery.outgoing(cl, discbases, heads)
1998 2000 bundler = changegroup.bundle10(self)
1999 2001 return self._changegroupsubset(outgoing, bundler, source)
2000 2002
General Comments 0
You need to be logged in to leave comments. Login now