Bzr completely delete revisions (with files)
-
29-04-2021 - |
Pregunta
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
?
Solución
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.
Otros consejos
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.
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.