##// END OF EJS Templates
localrepo: use list comprehension instead of generators...
Sune Foldager -
r14521:d27f669b default
parent child Browse files
Show More
@@ -1511,9 +1511,8 b' class localrepository(repo.repository):'
1511
1511
1512 # filter any nodes that claim to be part of the known set
1512 # filter any nodes that claim to be part of the known set
1513 def prune(revlog, missing):
1513 def prune(revlog, missing):
1514 for n in missing:
1514 return [n for n in missing
1515 if revlog.linkrev(revlog.rev(n)) not in commonrevs:
1515 if revlog.linkrev(revlog.rev(n)) not in commonrevs]
1516 yield n
1517
1516
1518 def lookup(revlog, x):
1517 def lookup(revlog, x):
1519 if revlog == cl:
1518 if revlog == cl:
@@ -1618,9 +1617,7 b' class localrepository(repo.repository):'
1618 revset = set([cl.rev(n) for n in nodes])
1617 revset = set([cl.rev(n) for n in nodes])
1619
1618
1620 def gennodelst(log):
1619 def gennodelst(log):
1621 for r in log:
1620 return [log.node(r) for r in log if log.linkrev(r) in revset]
1622 if log.linkrev(r) in revset:
1623 yield log.node(r)
1624
1621
1625 def lookup(revlog, x):
1622 def lookup(revlog, x):
1626 if revlog == cl:
1623 if revlog == cl:
General Comments 0
You need to be logged in to leave comments. Login now