bazaar bug with bzr+ssh:// and pack-0.92 format
David Ingamells
david.ingamells at mapscape.eu
Thu Jul 24 07:59:22 BST 2008
I have a repository that I haven just upgraded to pack-0.92 format. When
I run the following command
bzr cat bzr+ssh://mscvs01/data/id/CmsRoot/repos/MScms/1.0/.cmsmanager.ini
I get the error log below. (bzr versions 1.2 and 1.5 both do it). If I
upgrade back to dirstate-tags it works again.
The access method file:// works with both formats ( but obviously only
on the local machine ;-) )
Has this been fixed already in 1.6?
How thorough is the (regression) testing of the different URL prefixes?
If people are going to be telling us that we should upgrade to the newer
format then they should be sure that support for the format is robust
across the board.
Conclusion: I am forced to keep the format at dirstate-tags and am now
very concerned about the performance problems with bzr branch using
version 1.6beta2 and this format that I reported in this forum on 11/7
in "Re: Some timings using bzr" (these are in seconds):
file://NFS bzr://
dirstate-tags 220 / 198 552 / 39
pack-0.92 48 / 47 59 / 37
bzr: ERROR: bzrlib.errors.ObjectNotLocked:
KnitPackRepository('bzr+ssh://mscvs01/data/id/CmsRoot/repos/MScms/.bzr/repository/')
is not locked
Traceback (most recent call last):
File "/data/id/release/bzr/bzr_1.5/lib/python/bzrlib/commands.py",
line 846, in run_bzr_catch_errors
return run_bzr(argv)
File "/data/id/release/bzr/bzr_1.5/lib/python/bzrlib/commands.py",
line 797, in run_bzr
ret = run(*run_argv)
File "/data/id/release/bzr/bzr_1.5/lib/python/bzrlib/commands.py",
line 499, in run_argv_aliases
return self.run(**all_cmd_args)
File "/data/id/release/bzr/bzr_1.5/lib/python/bzrlib/commands.py",
line 807, in ignore_pipe
result = func(*args, **kwargs)
File "/data/id/release/bzr/bzr_1.5/lib/python/bzrlib/builtins.py",
line 2165, in run
name_from_revision)
File "/data/id/release/bzr/bzr_1.5/lib/python/bzrlib/builtins.py",
line 2188, in _run
rev_tree.print_file(cur_file_id)
File "/data/id/release/bzr/bzr_1.5/lib/python/bzrlib/tree.py", line
438, in print_file
sys.stdout.write(self.get_file_text(file_id))
File "/data/id/release/bzr/bzr_1.5/lib/python/bzrlib/revisiontree.py",
line 75, in get_file_text
return ''.join(self.get_file_lines(file_id))
File "/data/id/release/bzr/bzr_1.5/lib/python/bzrlib/revisiontree.py",
line 71, in get_file_lines
weave = self._get_weave(file_id)
File "/data/id/release/bzr/bzr_1.5/lib/python/bzrlib/revisiontree.py",
line 67, in _get_weave
self._repository.get_transaction())
File
"/data/id/release/bzr/bzr_1.5/lib/python/bzrlib/repofmt/pack_repo.py",
line 1773, in get_weave_or_empty
self.repo._pack_collection.ensure_loaded()
File
"/data/id/release/bzr/bzr_1.5/lib/python/bzrlib/repofmt/pack_repo.py",
line 1341, in ensure_loaded
raise errors.ObjectNotLocked(self.repo)
ObjectNotLocked:
KnitPackRepository('bzr+ssh://mscvs01/data/id/CmsRoot/repos/MScms/.bzr/repository/')
is not locked
bzr 1.5 on python 2.5.1 (linux2)
arguments: ['/data/id/release/bzr/current/bin/bzr', 'cat',
'bzr+ssh://mscvs01/data/id/CmsRoot/repos/MScms/1.0/.cmsmanager.ini',
'--verbose']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_GB.UTF-8'
plugins:
bzrtools
/data/id/release/bzr/current/lib/python/bzrlib/plugins/bzrtools [1.5.0]
gtk
/data/id/release/bzr/current/lib/python/bzrlib/plugins/gtk [0.94.0]
launchpad
/data/id/release/bzr/current/lib/python/bzrlib/plugins/launchpad [unknown]
*
More information about the bazaar
mailing list