confusing conflicts when adding files to roots with different ids
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Confirmed
|
Low
|
Unassigned |
Bug Description
The following steps result in
+N 2.txt
Conflict adding files to 2.txt. Moved to root.
1 conflicts encountered.
Please let me know if you need more info.
----STEPS:
bzr init-repo pqm.repo
bzr init pqm.repo/trunk
bzr branch pqm.repo/trunk/ pqm.repo/branch2
bzr checkout pqm.repo/branch2 branch2
bzr checkout pqm.repo/trunk/ trunk
cd branch2/
echo 1 > 1.txt
bzr add
bzr commit -m "1.txt"
cd ../trunk
bzr merge ../pqm.repo/branch2
bzr commit -m "1.txt from branch2"
cd ../branch2/
echo 2 > 2.txt
bzr add
bzr commit -m "2.txt"
cd ../trunk
bzr merge ../pqm.repo/branch2
----STEPS END
----FULL output
user@server:~$ rm -r branch2 pqm.repo/ trunk/
user@server:~$ bzr init-repo pqm.repo
Shared repository with trees (format: 2a)
Location:
shared repository: pqm.repo
user@server:~$ bzr init pqm.repo/trunk
Created a repository tree (format: 2a)
Using shared repository: /home/pqm/pqm.repo/
user@server:~$ bzr branch pqm.repo/trunk/ pqm.repo/branch2
Branched 0 revision(s).
user@server:~$ bzr checkout pqm.repo/branch2 branch2
user@server:~$ bzr checkout pqm.repo/trunk/ trunk
user@server:~$ cd branch2/
user@server:
user@server:
adding 1.txt
user@server:
Committing to: /home/pqm/
added 1.txt
Committed revision 1.
user@server:
user@server:
+N 1.txt
All changes applied successfully.
user@server:
Committing to: /home/pqm/
deleted
modified 1.txt
Committed revision 1.
user@server:
user@server:
user@server:
adding 2.txt
user@server:
user@server:
Committing to: /home/pqm/
added 2.txt
Committed revision 2.
user@server:
user@server:
+N 2.txt
Conflict adding files to 2.txt. Moved to root.
1 conflicts encountered.
----FULL Output END
I guess the end result is somehow connected with:
user@server:
+N 1.txt
All changes applied successfully.
user@server:
Committing to: /home/pqm/
-------
deleted
modified 1.txt
-------
VERSION:
pqm@networkserv
Bazaar (bzr) 2.0.0
Python interpreter: /usr/bin/python 2.5.2
Python standard library: /usr/lib/python2.5
Platform: Linux-2.
bzrlib: /usr/lib/
Bazaar configuration: /home/pqm/.bazaar
Bazaar log file: /home/pqm/.bzr.log
summary: |
- Adding a file+Merging resutls in "Conflict adding files to - FILE_NAME_HERE. Moved to root." + Provide a better message for "Conflict adding files to FILE_NAME_HERE. + Moved to root." |
tags: | added: conflicts merge |
summary: |
- Provide a better message for "Conflict adding files to FILE_NAME_HERE. - Moved to root." + confusing conflicts when adding files to roots with different ids |
tags: | added: check-for-breezy |
If I only modify files ~/branch2$ echo 2 > 2.txt ~/branch2$ bzr add ~/branch2$ echo 2 > 1.txt
so change
user@server:
user@server:
to
user@server:
the final merge is successful.
In case of adding 2.txt merge from trunk you have to merge from trunk first ~/branch2$ bzr commit -m "2.txt" ~/branch2$ bzr merge ~/branch2$ bzr commit -m "Merged from trunk"
...
user@server:
user@server:
user@server: