crash when conflicting metadata-only change with deletion

Bug #4558 reported by Martin Pool
2
Affects Status Importance Assigned to Milestone
Bazaar
Fix Released
Medium
Unassigned

Bug Description

This just happened to me. I don't think it's too hard to handle properly.

hope% mkdir a
hope% bzr init a
hope% cd a
hope% ls
hope% date>foo
hope% bzr add
bzr added foo
hope% bzr commit -m 'add foo'
hope% bzr branch . ../b
hope% rm foo
hope% bzr commit -m 'remove foo'
hope% ../b
hope% ls
foo
hope% chmod +x foo
hope% bzr st
modified:
  foo*
hope% bzr diff
bzr === modified file 'foo' (properties changed)
zsh: exit 1 bzr diff
hope% bzr commit -m 'exec foo'
hope% cd ../a
hope% bzr merge ../b
bzr: ERROR: exceptions.KeyError: 'foo-20051116072309-59a682a7566ad693'
  at /home/mbp/lib/python/bzrlib/changeset.py line 1211
  in apply_changeset
**** entering debugger
> /home/mbp/lib/python/bzrlib/changeset.py(1211)apply_changeset()
-> path = os.path.join(dir, inventory[entry.id])
(Pdb) q
zsh: exit 3 bzr merge ../b

Revision history for this message
Aaron Bentley (abentley) wrote :

We are now using totally different code for this.

Changed in bzr:
status: Unconfirmed → Fix Committed
Revision history for this message
Martin Pool (mbp) wrote :

I think this is now in mainline for 0.8

Changed in bzr:
status: Fix Committed → Fix Released
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.