Is it possible to disable autopack?

Vincent Ladeuil v.ladeuil+lp at free.fr
Fri Nov 28 18:30:16 GMT 2008


>>>>> "Christian" == Christian Tschabuschnig <tschaboo at gmx.at> writes:

    Christian> I'm doing file-based remote backups of a bazaar repository. The
    Christian> revisions often have several megabytes. I want to disable autopacking
    Christian> because the consolidation every 10 commits costs a lot of bandwith. Is
    Christian> there a option to disable autopacking for a single repository?

Well, doing "file-based remote backups of a bazaar repository"
indeed "costs a lot of bandwidth".

Because you use the wrong approach. The packs files are not
supposed to be manipulated outside bzr. Their whole design was
aimed at providing better performance from a *bzr* point of view
than rsync for example.

If you try to pull the branches from one repo to the other (or
push the branches from the other to one, take your pick depending
on bzr availability), you'd get better results.

    Christian> I guess i could disable autopack for all
    Christian> repositories by adding a "return False" in
    Christian> autopack in pack_repo.py?

Doing so will certainly degrade the repo performances severely as
times passes.

What is your aim exactly ? And what is your configuration ? Do
you have several branches in that repository ? Is bzr available
on both sides ? Which server provides which protocol (ftp, shh,
sftp, http) ?

There are many ways to provides repository mirrors, but copying
them file by file is not an option (lots of caveats).

     Vincent



More information about the bazaar mailing list