[Bug 826962] Re: bzr crashed with ValueError in version_file()
Martin Pool
mbp at canonical.com
Thu Oct 6 07:40:53 UTC 2011
It looks like bzr's trying to re-reversion a file with a file_id of
None.
** Description changed:
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.
- ProblemType: Crash
- DistroRelease: Ubuntu 11.04
- Package: bzr 2.3.4-0ubuntu1
- ProcVersionSignature: Ubuntu 2.6.39-3.10-generic 2.6.39
- Uname: Linux 2.6.39-3-generic x86_64
- Architecture: amd64
- BzrDebugFlags: set()
- BzrLogTail:
-
- BzrVersion: 2.3.4
- CommandLine: ['/usr/bin/bzr', 'revert', 'N.py']
- CrashDb: bzr
- Date: Mon Aug 15 22:45:22 2011
- ExecutablePath: /usr/bin/bzr
- FileSystemEncoding: UTF-8
- InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Beta amd64 (20100318)
- InterpreterPath: /usr/bin/python2.7
- Locale: it_CH.UTF-8
- PackageArchitecture: all
- Platform: Linux-2.6.39-3-generic-x86_64-with-Ubuntu-11.04-natty
- ProcCmdline: /usr/bin/python /usr/bin/bzr revert N.py
- ProcEnviron:
- SHELL=/bin/bash
- PATH=(custom, user)
- LANG=it_CH.UTF-8
- LANGUAGE=it_CH:en
- PythonVersion: 2.7.1
- SourcePackage: bzr
- Title: bzr crashed with ValueError in version_file()
- UpgradeStatus: Upgraded to natty on 2011-06-03 (73 days ago)
- UserEncoding: UTF-8
- UserGroups: adm admin cdrom dialout kvm libvirtd lpadmin plugdev sambashare
+ 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
** Summary changed:
- bzr crashed with ValueError in version_file()
+ bzr crashed with ValueError in version_file() during revert
** Tags removed: amd64 apport-crash natty
** Tags added: revert treetransform
** Changed in: bzr
Status: New => Confirmed
** Changed in: bzr
Importance: Undecided => Medium
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to bzr in Ubuntu.
https://bugs.launchpad.net/bugs/826962
Title:
bzr crashed with ValueError in version_file() during revert
Status in Bazaar Version Control System:
Confirmed
Status in “bzr” package in Ubuntu:
New
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
To manage notifications about this bug go to:
https://bugs.launchpad.net/bzr/+bug/826962/+subscriptions
More information about the foundations-bugs
mailing list