Is there a command to undo a update

Asked by Craig Hewetson

Is there a way to undo an bzr update, without having to know the revision of my checkout before the update is done?

Eg: If my checkout is at revno 10 and an update causes it to bump up to revno 15.
I would have to do a bzr uncommit -r10 --local, to undo the update. But this would require me to remember the revno before updating (revno 10) or look in the log for the last revno that I contributed. This is kindof cumbersome and hence the above question.

Question information

Language:
English Edit question
Status:
Solved
For:
Bazaar Edit question
Assignee:
No assignee Edit question
Solved by:
Martin Pool
Solved:
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Craig Hewetson (craighewetson-deactivatedaccount) said :
#2

Stopping janitor from expiring this question...

Revision history for this message
Best Martin Pool (mbp) said :
#3

Sorry, there's no direct way to just undo the update. We'd like to provide a 'bzr undo' that will handle this as part of post-2.0 ui work later this year.

Revision history for this message
Craig Hewetson (craighewetson-deactivatedaccount) said :
#4

Thanks Martin Pool, that solved my question.