diff options
author | Felipe Contreras <felipe.contreras@gmail.com> | 2013-04-30 20:10:08 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-04-30 22:06:47 -0700 |
commit | 38cecbdf52a081b732726180ad5e182d15117914 (patch) | |
tree | b182358d3903c1b71818288d6683442a4f54eb47 /contrib/remote-helpers | |
parent | remote-bzr: improve progress reporting (diff) | |
download | tgif-38cecbdf52a081b732726180ad5e182d15117914.tar.xz |
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 'contrib/remote-helpers')
-rwxr-xr-x | contrib/remote-helpers/git-remote-bzr | 5 |
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] |