How to uncommit a local commit ?
The problem is with uncommit after update (uncommit should be avoided on shared branch but it's not easy to educate some developers...)
Here is an example :
user-1$ bzr co branch checkout
<hack>
user-1$ bzr ci -m "my nice work"
user-2$ bzr co branch checkout
<hack>
user-2$ bzr ci -m "my bad work"
user-1$ bzr up
<hack>
user-2$ bzr uncommit
user-1$ bzr up
Your local commits will now show as pending merges with 'bzr status', and can be committed with 'bzr commit'.
At this point, user-1 have his work mixed with the uncommited work.
Is there a way to revert the uncommited revision without reverting current work ?
When using global revert, it revert everything.
When using revert with the revid of the uncommited revision, it just remove the pending merge but not the changes.
A solution would be to shelve current work before each update with extra revision from missing, but it can be painful and there is not always a check of missing before updating.
The problem is not there with lightweight checkouts : when updating after a uncommit, the uncommited changes are reverted but not the local changes (and you get conflicts if needed).
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Bazaar Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- John A Meinel
- Solved:
- Last query:
- Last reply: