Comment 1 for bug 736001

Revision history for this message
John A Meinel (jameinel) wrote : Re: [Bug 736001] [NEW] Re-packing happens at inconvenient times and blocks further operations

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

On 3/16/2011 10:21 AM, Julian Edwards wrote:
> Public bug reported:
>
> I am just pulling a branch of Launchpad and getting the dreaded
> "repacking" message. This usually takes a very long time, depending on
> disk speed I've had it take 20 minutes.
>
> Rob C suggested that it doesn't need to block writes and could be
> backgrounded. Another idea of mine would be to have bzr prompt/nag me
> if it thinks a repack is necessary, for example:
>
> $ bzr pull
> Repository needs repacking, do it now [Y/N], or run in the [B]ackground?
> [Y/N/B] :
>

In general, bzr doesn't want to be interactive so that it can be
scripted, etc. I could certainly see adding some sort of hook to make it
easy to configure this for a given user, though.

In the very immediate term, you can try this:

 bzr branch lp:~jameinel/+junk/bzr-prompt-repack \
     ~/.bazaar/plugins/prompt_repack

It traps in the _do_autopack function, and prompts you to see if you
really want to autopack right now.

Note that I haven't tested the '[b]ackground' functionality. But I did
test [N]ow and [p]ostpone.

background should work, though it will probably do naughty things to
your terminal.

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

iEYEARECAAYFAk2AqnIACgkQJdeBCYSNAAO9RwCgwye6AGozTjU7l9GHA8H7VlJD
h/8AnAgQiNAsnFH1AOrcoJm093c4iAIF
=fABT
-----END PGP SIGNATURE-----