suggested update when bound branch is out of date does confusing things
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
I found a local branch that I hadn't bound to its mirror on Launchpad as I'd intended, so I used 'bzr bind' on it, and then went to commit my local changes:
<cjwatson@sarantium ~/src/ubuntu/
bzr commit -m '* Add Vcs-Bzr for Ubuntu.'
bzr: ERROR: Bound branch BzrBranch5(
To commit to master branch, run update and then commit.
You can also pass --local to commit to continue working disconnected.
debcommit: commit failed
Hmm, OK, fair enough. Normally I'd use 'bzr push' in this situation, which of course works fine, but in this case I decide that I'll do as it says and see what happens.
<cjwatson@sarantium ~/src/ubuntu/
M auto-lvm_tools.sh
M debian/changelog
M debian/control
M debian/po/eu.po
Text conflict in debian/changelog
1 conflicts encountered.
M auto-lvm_tools.sh
M debian/changelog
M debian/control
M debian/po/eu.po
Text conflict in debian/changelog
Conflict adding file debian/
Conflict adding file debian/
Conflict adding file debian/
4 conflicts encountered.
Updated to revision 193.
Your local commits will now show as pending merges with 'bzr status', and can be committed with 'bzr commit'.
<cjwatson@sarantium ~/src/ubuntu/
modified:
auto-lvm_tools.sh
debian/changelog
debian/control
debian/po/eu.po
unknown:
debian/
debian/
debian/
debian/
debian/
debian/
conflicts:
Text conflict in debian/changelog
Conflict adding file debian/
Conflict adding file debian/
Conflict adding file debian/
pending merges:
Colin Watson 2007-05-10 releasing version 23ubuntu1
Colin Watson 2007-05-10 merge from Debian 23
fjp 2007-04-26 releasing version 23
bubulle 2007-04-13 [l10n] [SILENT_COMMIT] Synchronising with translation files from packages/po
alphix-guest 2007-03-18 Pass the device as an explicit argument to wipe_disk
Whoa. Those are the changes that I had in my local branch. Given that the local branch was a direct linear descendant of the remote branch, why didn't it just DWIM and push these changes rather than doing this confusing thing? I don't want these to show up as a merge in my history, and, given that I already released this version to archive.ubuntu.com, I don't want to go trying to resolve the conflicts that bzr has sprayed over my tree at this point either.
I recovered by fishing the correct revision id out of .bzr/repository
<cjwatson@sarantium ~/src/ubuntu/
<cjwatson@sarantium ~/src/ubuntu/
<cjwatson@sarantium ~/src/ubuntu/
Branched 195 revision(s).
<cjwatson@sarantium ~/src/ubuntu/
<cjwatson@sarantium ~/src/ubuntu/
Pushed up to revision 195.
<cjwatson@sarantium ~/src/ubuntu/
... but this is not exactly obvious or intuitive. I suggest that either (a) update be made to do something more intelligent in this situation or (b) the documentation be corrected to suggest that push might also be a useful thing to do. I'd prefer option (a).
I think this is just a symptom of bug #113809. Should this be marked as a duplicate?