'bzr pack' should sync and delete obsolete-packs/*

Robert Collins robertc at robertcollins.net
Fri Jan 18 22:19:37 GMT 2008


On Fri, 2008-01-18 at 16:29 -0200, Martin Albisetti wrote:
> On Jan 18, 2008 3:56 PM, John Arbash Meinel <john at arbash-meinel.com> wrote:
> > I think it would be reasonable for the last steps of 'bzr pack' to be a
> > 'sync' call to flush everything to disk, and then delete everything in
> > .bzr/repository/obsolete-packs
> >
> > Does that seem reasonable?
> 
> This would help quite a lot when you have to upgrade 25 >3GB branches
> (as I'm doing right now).
> 
> I know disk space is cheap, but in this case, it stops being that cheap  :p

'upgrade' is different. If you have 25 > 3GB branches in separate
repositories the 'pack' code path is not being executed. You instead are
seeing .bzr.backup as the problem :). And that we could conceivably do a
bzr check after the upgrade and remove, though I am wary of removing the
backup automatically; in the event of a silent failure it will be
extremely useful, and check is quite slow.

> Of course, as Jam pointed out in IRC, I can delete the directory
> manually, but I'd like to avoid touching anything under .bzr/

You shouldn't have to. 

-Rob

-- 
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20080119/7e9bb0ab/attachment.pgp 


More information about the bazaar mailing list