bzr errors on attempted update with missing file id

Bug #1830803 reported by Tom Browder
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
New
Undecided
Unassigned

Bug Description

tbrowde@dedi2:/usr/local/tbrowde-home-bzr$ bzr update
bzr: ERROR: The file id "001literals.t-20190527134711-hjxwne0apjassl1x-4177" is not present in the tree <bzrlib.inventory.CHKInventory object at 0x7f0d2c2b7310>.
tbrowde@dedi2:/usr/local/tbrowde-home-bzr$ bzr -Derror update
bzr: ERROR: bzrlib.errors.NoSuchId: The file id "001literals.t-20190527134711-hjxwne0apjassl1x-4177" is not present in the tree <bzrlib.inventory.CHKInventory object at 0x7fa01ec63310>.

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 930, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 1121, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 673, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 697, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 136, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 166, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/builtins.py", line 1791, in run
    show_base=show_base)
  File "/usr/lib/python2.7/dist-packages/bzrlib/workingtree.py", line 1473, in update
    return self._update_tree(old_tip, change_reporter, revision, show_base)
  File "/usr/lib/python2.7/dist-packages/bzrlib/mutabletree.py", line 52, in tree_write_locked
    return unbound(self, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/workingtree.py", line 1543, in _update_tree
    show_base=show_base)
  File "/usr/lib/python2.7/dist-packages/bzrlib/merge.py", line 1956, in merge_inner
    return merger.do_merge()
  File "/usr/lib/python2.7/dist-packages/bzrlib/merge.py", line 686, in do_merge
    merge = operation.run_simple()
  File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 136, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 166, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/merge.py", line 654, in _do_merge_to
    merge.do_merge()
  File "/usr/lib/python2.7/dist-packages/bzrlib/merge.py", line 802, in do_merge
    operation.run()
  File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 132, in run
    self.cleanups, self.func, self, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 166, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/merge.py", line 807, in _do_merge
    self._compute_transform()
  File "/usr/lib/python2.7/dist-packages/bzrlib/merge.py", line 830, in _compute_transform
    entries = self._entries3()
  File "/usr/lib/python2.7/dist-packages/bzrlib/merge.py", line 895, in _entries3
    executable) in iterator:
  File "/usr/lib/python2.7/dist-packages/bzrlib/revisiontree.py", line 295, in iter_changes
    self.source.root_inventory):
  File "/usr/lib/python2.7/dist-packages/bzrlib/inventory.py", line 2009, in iter_changes
    path_in_source = basis.id2path(file_id)
  File "/usr/lib/python2.7/dist-packages/bzrlib/inventory.py", line 653, in id2path
    self._iter_file_id_parents(file_id)][:-1]))
  File "/usr/lib/python2.7/dist-packages/bzrlib/inventory.py", line 1914, in _iter_file_id_parents
    ie = self[file_id]
  File "/usr/lib/python2.7/dist-packages/bzrlib/inventory.py", line 1877, in __getitem__
    raise errors.NoSuchId(self, file_id)
NoSuchId: The file id "001literals.t-20190527134711-hjxwne0apjassl1x-4177" is not present in the tree <bzrlib.inventory.CHKInventory object at 0x7fa01ec63310>.
 @tbrowder

tbrowde@dedi2:/usr/local/tbrowde-home-bzr$ bzr --version
Bazaar (bzr) 2.8.0dev1
  Python interpreter: /usr/bin/python 2.7.13
  Python standard library: /usr/lib/python2.7
  Platform: Linux-4.9.0-9-amd64-x86_64-with-debian-9.9
  bzrlib: /usr/lib/python2.7/dist-packages/bzrlib
  Bazaar configuration: /home/tbrowde/.bazaar
  Bazaar log file: /home/tbrowde/.bzr.log

@jelmer on IRC #bzr suggested I submit this bug report and he was very helpful to me.

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.