why `bzr pull bundle` so slow?

John Arbash Meinel john at arbash-meinel.com
Thu May 3 17:18:57 BST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

John Arbash Meinel wrote:

> So I *think* what we can do is:

Short answer... this is wrong. But I'm working on it. :)

> 
> === modified file 'bzrlib/bundle/apply_bundle.py'
> --- bzrlib/bundle/apply_bundle.py       2007-02-09 15:56:49 +0000
> +++ bzrlib/bundle/apply_bundle.py       2007-05-03 16:10:47 +0000
> @@ -29,13 +29,9 @@
>      repository.lock_write()
>      try:
>          real_revisions = bundle_reader.real_revisions
> -        for i, revision in enumerate(reversed(real_revisions)):
> -            pb.update("Install revisions",i, len(real_revisions))
> -            if repository.has_revision(revision.revision_id):
> -                continue
> -            cset_tree = bundle_reader.revision_tree(repository,
> -
> revision.revision_id)
> -            install_revision(repository, revision, cset_tree)
> +        last_revision = real_revisions[-1]
> +        cset_tree = bundle_reader.revision_tree(repository,
> +                                                last_revision.revision_id)
>      finally:
>          repository.unlock()
>          pb.finished()

John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGOgtxJdeBCYSNAAMRAjgIAJ9FaGoRG1qJyH/Bkm6fcU2kPxv74wCgpbtf
5VGpos+rhAVhn19pQNk0EMM=
=faM7
-----END PGP SIGNATURE-----



More information about the bazaar mailing list