removing directories from repository

John Arbash Meinel john at arbash-meinel.com
Wed Dec 17 15:00:40 GMT 2008


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

roehnsch at informatik.hu-berlin.de wrote:
> I think revisions are atomic in a sense that you can't remove an element
> of a change set/revision and leave the rest of the set as is. E.g.
> revision 10 changes foo and bar, it will always stay that way.
> 
> So maybe you should remove the respective revision itself.
> Maybe it works this way (but backup your repository beforehand):
> 
> - make a branch of your main branch
> - use 'bzr uncommit -r 15' on your main branch to uncommit all revisions
> back to rev. 15, or whichever revision came before the one with the big
> file
> - use 'bzr merge -r 17..-1 BRANCH' on your main branch to take over all
> revisions after the big file. BRANCH is the previously branched branch.
> 
> Greetings
> Alexander
> 
> 

That will work, though you will lose the individual commit messages for
17 onward.

If you really need this, then you can use the "bzr-rebase" plugin, to
"replay" the revisions 17 onward. At least I think:

bzr branch existing cleaned-up -r 15
cd cleaned-up
bzr replay -r 17..-1 ../existing

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

iEYEARECAAYFAklJFBcACgkQJdeBCYSNAAP3QACeIMjrwJJch75PC2N2aOAB4KGc
gv0AnimdJsQ248FJL/MlDCwzt3RQ4s6/
=qCBS
-----END PGP SIGNATURE-----



More information about the bazaar mailing list