[Bug 826962] Re: bzr crashed with ValueError in version_file() during revert

Mathew Hodson mathew.hodson at gmail.com
Tue May 3 16:25:38 UTC 2016

** Changed in: bzr (Ubuntu)
   Importance: Undecided => Medium

You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to bzr in Ubuntu.

  bzr crashed with ValueError in  version_file() during revert

Status in Bazaar:
Status in bzr package in Ubuntu:

Bug description:
  This happened while doing a one-file revert in a changed repository.

  The repository history might have had some impact:

  1) it was a subdirectory in a larger repository, from which it has been split using "bzr split"
  2) there are several uncommitted changes and I'm trying to revert one of them.

  Traceback (most recent call last):
    File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 924, in exception_to_return_code
      return the_callable(*args, **kwargs)
    File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 1124, in run_bzr
      ret = run(*run_argv)
    File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 689, in run_argv_aliases
      return self.run(**all_cmd_args)
    File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 711, in run
      return self._operation.run_simple(*args, **kwargs)
    File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 135, in run_simple
      self.cleanups, self.func, *args, **kwargs)
    File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 165, in _do_with_cleanups
      result = func(*args, **kwargs)
    File "/usr/lib/python2.7/dist-packages/bzrlib/builtins.py", line 4301, in run
      self._revert_tree_to_revision(tree, revision, file_list, no_backup)
    File "/usr/lib/python2.7/dist-packages/bzrlib/builtins.py", line 4307, in _revert_tree_to_revision
    File "/usr/lib/python2.7/dist-packages/bzrlib/mutabletree.py", line 49, in tree_write_locked
      return unbound(self, *args, **kwargs)
    File "/usr/lib/python2.7/dist-packages/bzrlib/workingtree.py", line 2153, in revert
    File "/usr/lib/python2.7/dist-packages/bzrlib/transform.py", line 2759, in revert
      working_tree, target_tree, tt, filenames, backups, pp)
    File "/usr/lib/python2.7/dist-packages/bzrlib/transform.py", line 2785, in _prepare_revert_transform
      merge_modified, basis_tree)
    File "/usr/lib/python2.7/dist-packages/bzrlib/transform.py", line 2886, in _alter_files
      tt.adjust_root_path(name[1], parent_trans)
    File "/usr/lib/python2.7/dist-packages/bzrlib/transform.py", line 195, in adjust_root_path
      self.version_file(file_id, child_id)
    File "/usr/lib/python2.7/dist-packages/bzrlib/transform.py", line 353, in version_file
      raise ValueError()

To manage notifications about this bug go to:

More information about the foundations-bugs mailing list