bzr update produces strange conflicts in a bound branch with local commits
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Confirmed
|
Low
|
Unassigned |
Bug Description
Steps to reproduce:
$ bzr init proj1
$ cd proj1
create a file my1.txt, with any text
$ bzr add
$ bzr commit -m "initial commit"
$ cd ..
$ bzr checkout proj1 proj2
$ cd proj2
create a file my2.txt, with several lines of text
$ bzr add
$ bzr commit --local -m "a work is under way"
rewrite my2.txt completely, no line should be same
$ bzr commit -m "finished the work"
After this you will see strange conflicts for my2.txt. It could be avoided if I commited my changes locally before doing an update, but now it seems too late.
Additionally, if I run
$ bzr remerge --weave
It seems to do the job (though I'm not sure), however it throws an exception:
Exception exceptions.
bzr: ERROR: The file id "my2.txt-
Perhaps the resolution could be to disallow bzr update when you have uncommited changes to the files you have changed in local commits?