1

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?

Attila Fulop
  • 6,861
  • 2
  • 44
  • 50
  • This question is essentially a duplicate of http://stackoverflow.com/questions/2262203/delete-file-history-with-bazaar – Adam Glauser Feb 13 '12 at 18:16

3 Answers3

4

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.

Attila Fulop
  • 6,861
  • 2
  • 44
  • 50
3

If you delete the trunk branch of a launchpad you will be able to create a new trunk.

You can also completely go back to the previous revision by using "bzr push --overwrite -rREVNO" where REVNO is the revision you want to go back to.

jelmer
  • 2,405
  • 14
  • 27
3

You can do a uncommit. For the user, this will remove it from the branch. In the bzr repo, it will in fact unlink the revision from the main line.

TridenT
  • 4,879
  • 1
  • 32
  • 56