##// END OF EJS Templates
revlog: use `iter(callable, sentinel)` instead of while True...
Augie Fackler -
r29732:0806fa2a default
parent child Browse files
Show More
@@ -1585,10 +1585,7 b' class revlog(object):'
1585 try:
1585 try:
1586 # loop through our set of deltas
1586 # loop through our set of deltas
1587 chain = None
1587 chain = None
1588 while True:
1588 for chunkdata in iter(lambda: cg.deltachunk(chain), {}):
1589 chunkdata = cg.deltachunk(chain)
1590 if not chunkdata:
1591 break
1592 node = chunkdata['node']
1589 node = chunkdata['node']
1593 p1 = chunkdata['p1']
1590 p1 = chunkdata['p1']
1594 p2 = chunkdata['p2']
1591 p2 = chunkdata['p2']
General Comments 0
You need to be logged in to leave comments. Login now