removing directories from repository
roehnsch at informatik.hu-berlin.de
roehnsch at informatik.hu-berlin.de
Wed Dec 17 09:20:05 GMT 2008
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
> Hi,
> Is it possible to permanently remove a directory from the history of a
> branch? ie.I have some tree external/mydir, I want to do a command such
> that
> it is removed as though it was never in the repository.
>
> If it is not possible, how hard would it be to implement?
>
> The most obvious application of this is someone adds a big file by mistake
> to the repo (or a library), and then you are stuck with all those files
> for
> eternity.
>
>
> Cheers,
> Andrew
>
More information about the bazaar
mailing list