[bug] merge metadata change vs deletion

Martin Pool mbp at sourcefrog.net
Wed Nov 16 07:25:44 GMT 2005


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

(I just added a feature to pop into pdb on error if $BZR_PDB is set.)

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


-- 
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20051116/239b4dfb/attachment.pgp 


More information about the bazaar mailing list