Search code examples
version-controldvcsbazaarlaunchpad

Bzr completely delete revisions (with files)


I've unintentionally committed some confidential files to a bzr branch. What's even more sticky is that I also pushed them to launchpad.

I made a bzr revert but, if I go to that dirty revision, I can still see those files. Is it possible to completely return to a previous revision, so that those files completely disappear?

Or as an alternative, if I delete the trunk branch of a launchpad project, will I be able to create a new trunk?


Solution

  • So according to TridenT's and jelmer's recommendations the solution is:

    1.) `bzr uncommit -r X` Where X is the revision I want to return to
    2.) `bzr commit` This created the local revision X+1
    3.) `bzr push --overwrite -r X+1` This pushed the stuff to launchpad,
    

    and all those sticky files are gone.

    Thank you guys.