bzr commit fails to commit merges that change file kind

Bug #90111 reported by Marius Gedminas
4
Affects Status Importance Assigned to Milestone
Bazaar
Fix Released
High
John A Meinel

Bug Description

bzr 0.15.0dev0 fails to commit a merge that includes file type changes (e.g. file to directory). See this mailing list thread for more context: https://lists.ubuntu.com/archives/bazaar/2007q1/022866.html

Steps to reproduce:
  mkdir branch1
  bzr init branch1
  touch branch1/file1
  bzr add branch1/file1
  bzr ci branch1 -m "add a file"
  bzr branch branch1 branch2
  rm branch1/file1
  mkdir branch1/file1
  bzr ci branch1 -m "replace file with directory"
  cd branch2
  bzr merge ../branch1
  bzr ci <-- fails with AssertionError:

  File "/home/mg/src/bzr.dev/bzrlib/inventory.py", line 212, in find_previous_heads
    assert candidates[ie.revision] == ie

James Westby created a failing unit test for this situation: https://lists.ubuntu.com/archives/bazaar/2007q1/022880.html

Related branches

Revision history for this message
Wouter van Heyst (larstiq) wrote :

Still present in bzr.dev

Changed in bzr:
importance: Undecided → High
status: Unconfirmed → Confirmed
Revision history for this message
Martin Pool (mbp) wrote :

Submitted for 0.15rc3

Revision history for this message
John A Meinel (jameinel) wrote :

This was actually fixed in bzr-0.15. But the Milestone drop-down only shows me 0.16... :(

Is it only showing "active" milestones now?

Changed in bzr:
status: Confirmed → Fix Released
assignee: nobody → jameinel
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.