Comment 1 for bug 395556

Revision history for this message
Martitza (martitzam) wrote : Re: bzr mv (rename in place) causes commit to fail depending on specific filenames

The traceback follows. The file has zero length because I used 'touch' to craete the file but this is not relevant to the bug.

[15575] 2009-07-03 19:20:06.957 INFO: aborting commit write group: DuplicateFileId(File id {2-20090704021957-hr4tovbq40tdm0ia-1} already exists in inventory as InventoryFile('2-20090704021957-hr4tovbq40tdm0ia-1', '1', parent_id='TREE_ROOT', sha1='da39a3ee5e6b4b0d3255bfef95601890afd80709', len=0, <email address hidden>))
0.153 Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 729, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 924, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 560, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.6/dist-packages/bzrlib/builtins.py", line 2937, in run
    exclude=safe_relpath_files(tree, exclude))
  File "/usr/lib/python2.6/dist-packages/bzrlib/decorators.py", line 192, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/workingtree_4.py", line 226, in commit
    result = WorkingTree3.commit(self, message, revprops, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/decorators.py", line 192, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/mutabletree.py", line 228, in commit
    *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commit.py", line 371, in commit
    self.builder.finish_inventory()
  File "/usr/lib/python2.6/dist-packages/bzrlib/repository.py", line 212, in finish_inventory
    self.parents)
  File "/usr/lib/python2.6/dist-packages/bzrlib/repository.py", line 1063, in add_inventory_by_delta
    basis_inv.apply_delta(delta)
  File "/usr/lib/python2.6/dist-packages/bzrlib/inventory.py", line 1169, in apply_delta
    self.add(new_entry)
  File "/usr/lib/python2.6/dist-packages/bzrlib/inventory.py", line 1259, in add
    self._byid[entry.file_id])
DuplicateFileId: File id {2-20090704021957-hr4tovbq40tdm0ia-1} already exists in inventory as InventoryFile('2-20090704021957-hr4tovbq40tdm0ia-1', '1', parent_id='TREE_ROOT', sha1='da39a3ee5e6b4b0d3255bfef95601890afd80709', len=0, <email address hidden>)