Submitter | Augie Fackler |
---|---|
Date | Aug. 5, 2016, 5:23 p.m. |
Message ID | <8f8a9c204d704878faab.1470417823@arthedain.pit.corp.google.com> |
Download | mbox | patch |
Permalink | /patch/16124/ |
State | Superseded |
Headers | show |
Comments
Patch
diff --git a/mercurial/bundlerepo.py b/mercurial/bundlerepo.py --- a/mercurial/bundlerepo.py +++ b/mercurial/bundlerepo.py @@ -56,10 +56,7 @@ class bundlerevlog(revlog.revlog): self.repotiprev = n - 1 chain = None self.bundlerevs = set() # used by 'bundle()' revset expression - while True: - chunkdata = bundle.deltachunk(chain) - if not chunkdata: - break + for chunkdata in iter(lambda: bundle.deltachunk(chain), {}): node = chunkdata['node'] p1 = chunkdata['p1'] p2 = chunkdata['p2']