mirror of
https://github.com/git/git.git
synced 2024-11-01 23:07:55 +01:00
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 <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
a397699950
commit
38cecbdf52
1 changed files with 3 additions and 2 deletions
|
@ -286,9 +286,10 @@ def export_branch(repo, name):
|
|||
last_revno, _ = branch.last_revision_info()
|
||||
total = last_revno - tip_revno
|
||||
|
||||
revs = [revid, seq for revid, _, seq, _ in revs if not marks.is_marked(revid)]
|
||||
for revid, _, seq, _ in revs:
|
||||
|
||||
for revid, seq in revs:
|
||||
if marks.is_marked(revid):
|
||||
continue
|
||||
|
||||
rev = repo.get_revision(revid)
|
||||
revno = seq[0]
|
||||
|
|
Loading…
Reference in a new issue