bzr crashed with ValueError in version_file() during revert

Bug #826962 reported by Riccardo Murri
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Incomplete
Undecided
Unassigned
bzr (Ubuntu)
New
Medium
Unassigned

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
    report_changes=True)
  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
    report_changes)
  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()
ValueError

Revision history for this message
Riccardo Murri (rmurri) wrote :
tags: removed: need-duplicate-check
Jelmer Vernooij (jelmer)
visibility: private → public
Revision history for this message
Martin Pool (mbp) wrote :

It looks like bzr's trying to re-reversion a file with a file_id of None.

description: updated
summary: - bzr crashed with ValueError in version_file()
+ bzr crashed with ValueError in version_file() during revert
tags: added: revert treetransform
removed: amd64 apport-crash natty
Changed in bzr:
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Martin Pool (mbp) wrote :

If you can work out instructions to reproduce the error that would help.

Mathew Hodson (mhodson)
Changed in bzr (Ubuntu):
importance: Undecided → Medium
Vincent Ladeuil (vila)
Changed in bzr:
importance: Medium → Undecided
status: Confirmed → Incomplete
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.