Re-packing happens at inconvenient times and blocks further operations
Bug #736001 reported by
Julian Edwards
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Confirmed
|
Medium
|
Unassigned |
Bug Description
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] :
description: | updated |
Changed in bzr: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
tags: | added: feature packs performance |
tags: | added: check-for-breezy |
To post a comment you must log in.
-----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 enigmail. mozdev. org/
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://
iEYEARECAAYFAk2 AqnIACgkQJdeBCY SNAAO9RwCgwye6A GozTjU7l9GHA8H7 VlJD 1AOrcoJm093c4iA IF
h/8AnAgQiNAsnFH
=fABT
-----END PGP SIGNATURE-----