ValueError: WorkingTree.set_root_id with fileid=None when merging into empty branch
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
High
|
Jonathan Riddell |
Bug Description
At the moment it's not possible to merge a repository into an empty branch. See bug 82555 for that.
This bug is not about changing this, but just about showing an error message instead of failing when that condition happens.
Reproduce it:
rm -rf bzr05 bzr06 ;
mkdir bzr05; cd bzr05; bzr init; echo pat>ata; bzr add ata; bzr commit -m "simple"; cd ..;
mkdir bzr06; cd bzr06; bzr init; bzr merge ../bzr05; bzr update; cd ..
Output (with bzr from today):
added ata
Committing to: /n/bzr05/
added ata
Committed revision 1.
+N ata
All changes applied successfully.
-D ata
All changes applied successfully.
bzr: ERROR: Reserved revision-id {null:}
Instead of „ERROR: Reserved revision-id {null:}“, I expected something like „ERROR: merging into empty branch. Try "pull" instead.“ or something helpful to the user.
Changed in bzr: | |
importance: | Undecided → Wishlist |
status: | New → Confirmed |
Changed in bzr: | |
assignee: | nobody → Jonathan Riddell (jr) |
Changed in bzr: | |
status: | Confirmed → In Progress |
Changed in bzr: | |
status: | In Progress → Fix Committed |
Changed in bzr: | |
status: | Fix Committed → Fix Released |
Changed in bzr: | |
milestone: | none → 2.4b3 |
summary: |
- Better error message when merging into empty branch + ValueError: WorkingTree.set_root_id with fileid=None when merging into + empty branch |
I'm nudging up the importance; this bit someone on the IRC channel.