Clean up tree of a project using bzr

James Westby jw+debian at jameswestby.net
Wed Jul 25 17:19:39 BST 2007


On (25/07/07 09:50), matiyam wrote:
> Hi!
> 
> I have a project where i use bzr for version control.
> 
> When i started it, i added a directory which contains lots of big files that
> now i have realised i don't need them to be versioned.
> 
> I know i can do a "bzr rm directory", but then i guess they would be wasting
> space in the .bzr directory.
> 
> Id there a way of (maybe branching, i don't know) cleaning / creating a new
> branch without this directory, but preserving the history of changes in the
> rest of the tree?
> 

You are right to suspect that there is wasted space in .bzr after doing
bzr rm.

There is currently no way to remove this wasted space, branching will
just pull it across, as it is referenced in older versions.

The only way to do this is recreate the history without those additions,
which is probably quite a lot of work.

Thanks,

James

-- 
  James Westby   --    GPG Key ID: B577FE13    --     http://jameswestby.net/
  seccure key - (3+)k7|M*edCX/.A:n*N!>|&7U.L#9E)Tu)T0>AM - secp256r1/nistp256



More information about the bazaar mailing list