summaryrefslogtreecommitdiffstats
path: root/contrib/remote-helpers/git-remote-bzr
diff options
context:
space:
mode:
authorFelipe Contreras <felipe.contreras@gmail.com>2013-05-01 03:10:08 +0200
committerJunio C Hamano <gitster@pobox.com>2013-05-01 07:06:47 +0200
commit38cecbdf52a081b732726180ad5e182d15117914 (patch)
treeb182358d3903c1b71818288d6683442a4f54eb47 /contrib/remote-helpers/git-remote-bzr
parentremote-bzr: improve progress reporting (diff)
downloadgit-38cecbdf52a081b732726180ad5e182d15117914.tar.xz
git-38cecbdf52a081b732726180ad5e182d15117914.zip
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>
Diffstat (limited to '')
-rwxr-xr-xcontrib/remote-helpers/git-remote-bzr5
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/remote-helpers/git-remote-bzr b/contrib/remote-helpers/git-remote-bzr
index 2e210089bf..66e3861c21 100755
--- a/contrib/remote-helpers/git-remote-bzr
+++ b/contrib/remote-helpers/git-remote-bzr
@@ -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]