Skip to content

Commit 38cecbd

Browse files
felipecgitster
authored andcommitted
remote-bzr: iterate revisions properly
This way we don't need to store the list of all the revisions, which doesn't seem to be very memory efficient with bazaar's design, for whatever reason. Signed-off-by: Felipe Contreras <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent a397699 commit 38cecbd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

contrib/remote-helpers/git-remote-bzr

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,9 +286,10 @@ def export_branch(repo, name):
286286
last_revno, _ = branch.last_revision_info()
287287
total = last_revno - tip_revno
288288

289-
revs = [revid, seq for revid, _, seq, _ in revs if not marks.is_marked(revid)]
289+
for revid, _, seq, _ in revs:
290290

291-
for revid, seq in revs:
291+
if marks.is_marked(revid):
292+
continue
292293

293294
rev = repo.get_revision(revid)
294295
revno = seq[0]

0 commit comments

Comments
 (0)