Submitter | Augie Fackler |
---|---|
Date | Aug. 6, 2016, 3:02 p.m. |
Message ID | <8020b63576c0d90c9c1d.1470495759@imladris.local> |
Download | mbox | patch |
Permalink | /patch/16163/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/mercurial/revlog.py b/mercurial/revlog.py --- a/mercurial/revlog.py +++ b/mercurial/revlog.py @@ -1585,10 +1585,7 @@ class revlog(object): try: # loop through our set of deltas chain = None - while True: - chunkdata = cg.deltachunk(chain) - if not chunkdata: - break + for chunkdata in iter(lambda: cg.deltachunk(chain), {}): node = chunkdata['node'] p1 = chunkdata['p1'] p2 = chunkdata['p2']