[BUG REPORT] ReadOnlyError on KnitPackRepository

Vincent Vertigo vincent.vertigo at gmail.com
Thu Nov 22 14:05:39 GMT 2007


Hello,

Using bzr 0.92, I created a shared repository (with the new knitpack
format).
I init'ed a brand new 'trunk' branch and started working on a 'feature'
branch:
$ bzr branch trunk feature

After some commits and work in that new branch, I ran the 'status' command
against the main branch:
$ bzr status -rbranch:../trunk

Doing so ended up in the error message below (see end of my mail), asking me
to report it on the mailing list.
As I know knitpack format introduces bugs with some commands (on lockin,
etc), I am not sure whether to report a bug in LP or not.
I am currently unable to get the latest bzr.dev from office; any information
about that bug (or recommendations about what i can do about it) would be
appreciated.

Note that this new repository was built for Bazaar evaluation purposes only
and is not really a show-stopper. Read: I'll wait a bit before introducing
Bazaar to my manager, while still using it for personal purposes. However, I
consider going back to default (knit) format for the moment. Any reason I
should stick to the non-default 'knitpack' format?

Thanks for your feedback,
Vincent.

Complete error trace is:

bzr: ERROR: bzrlib.errors.ReadOnlyError: A write attempt was made in a read
only transaction on
KnitPackRepository('file:///home/vincent/dev/.bzr/repository/')

Traceback (most recent call last):
  File "/home/vincent/bzr-0.92/bzrlib/commands.py", line 802, in
run_bzr_catch_errors
    return run_bzr(argv)
  File "/home/vincent/bzr-0.92/bzrlib/commands.py", line 758, in run_bzr
    ret = run(*run_argv)
  File "/home/vincent/bzr-0.92/bzrlib/commands.py", line 492, in
run_argv_aliases
    return self.run(**all_cmd_args)
  File "/home/vincent/bzr-0.92/bzrlib/commands.py", line 768, in ignore_pipe
    result = func(*args, **kwargs)
  File "/home/vincent/bzr-0.92/bzrlib/builtins.py", line 189, in run
    to_file=self.outf, short=short, versioned=versioned)
  File "/home/vincent/bzr-0.92/bzrlib/status.py", line 87, in
show_tree_status
    rev_id = revision[0].in_history(wt.branch).rev_id
  File "/home/vincent/bzr-0.92/bzrlib/revisionspec.py", line 225, in
in_history
    return self._match_on_and_check(branch, revs)
  File "/home/vincent/bzr-0.92/bzrlib/revisionspec.py", line 207, in
_match_on_and_check
    info = self._match_on(branch, revs)
  File "/home/vincent/bzr-0.92/bzrlib/revisionspec.py", line 683, in
_match_on
    branch.fetch(other_branch, revision_b)
  File "/home/vincent/bzr-0.92/bzrlib/decorators.py", line 163, in
write_locked
    self.lock_write()
  File "/home/vincent/bzr-0.92/bzrlib/branch.py", line 1317, in lock_write
    repo_token = self.repository.lock_write()
  File "/home/vincent/bzr-0.92/bzrlib/repofmt/pack_repo.py", line 1497, in
lock_write
    raise errors.ReadOnlyError(self)
ReadOnlyError: A write attempt was made in a read only transaction on
KnitPackRepository('file:///home/vincent/dev/.bzr/repository/')

bzr 0.92.0 on python 2.5.0.final.0 (sunos5)
arguments: ['/home/vincent/bzr-0.92/bzr', 'st', '-rbranch:../trunk']
encoding: '646', fsenc: '646', lang: None
plugins:
  launchpad            /home/vincent/bzr-0.92/bzrlib/plugins/launchpad
[unknown]
  multiparent          /home/vincent/bzr-0.92/bzrlib/plugins/multiparent.pyc
[unknown]

** Please send this report to bazaar at lists.ubuntu.com
   with a description of what you were doing when the
   error occurred.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/bazaar/attachments/20071122/f6ccc5a7/attachment.htm 


More information about the bazaar mailing list