[10:56] Hello [11:00] hi [11:00] I committed some major changes to my personal branch (and pushed changes to my Launchpad branch). But when I showed the code to other developers, they found out that these changes have some serious disadvantages. [11:01] And, I agree with them now that these changes are not needed in the code. [11:01] So, how do I revert/undo pushes to Launchpad? I can think of 2 possibilities: [11:02] 1. Repeatedly do 'bzr uncommit' and 'bzr push --overwrite' until all changes are uncommited (locally) and pushedTo/deletedFrom launchpad branch [11:03] if you do (1) then anybody following your branch will have to "bzr pull --overwrite" to actually get the new tip [11:04] 2. Keep the unwanted revisions (say revision from x to y) in the the launchpad repo (no need to undo/delete them from launchpad). Simply delete/edit the files that were modified (in rev x to y) and commit/push next revision (rev y+1)...so that rev y+1 is exactly same as rev x [11:04] AmberJ: you can use 'bzr revert' to do (2) for you [11:06] Oh, I didn't knew that others will have to do "bzr pull --overwrite" to get the new tip if I do (1)... [11:06] * AmberJ reads 'bzr help revert' [11:47] jelmer, If I use 'bzr push --overwrite' to undo/revert some pushes. Then I make other change/push to my code. And, now if this code is merged with project's main developement branch, will the users of main dev branch have to do 'bzr pull --overwrite' as well? [11:51] I'm more inclined towards using 'bzr push --overwrite' since I'll prefer NOT to keep changes in version controlled history. [11:51] AmberJ: yes, they'll have to 'bzr pull --overwrite' as well in that case [11:51] AmberJ: without --overwrite they'll get an error saying the branches have diverged [11:51] ok [11:52] What do you recommend to users if they pushed some sensitive information (e.g. passwords) to Launchpad repo (and now they want to remove those revisions)? [11:55] AmberJ: then you really want to use --overwrite [11:55] AmberJ: that said, please note that the data is still actually there even with --overwrite [11:55] AmberJ: it's just not referenced by the branch [11:55] AmberJ: so you want to clean the repository if you've ever pushed sensitive data there [11:56] Ah right, the sensitive informaton does not applies in my case (I asked just out of curiosity). I guess 'bzr revert' is better suited for my job. [11:56] Thanks jelmer :)