ReadOnlyError for log from other branch
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Confirmed
|
Medium
|
Unassigned |
Bug Description
From the user point of view, this feels like a variation of bug #496590, while the internal cause is probably the same as in bug #144421.
Steps to reproduce:
$ bzr init-repo repo
$ cd repo
$ bzr init trunk
$ cd trunk
$ echo foo > foo
$ bzr add foo
$ bzr ci -m foo
$ cd ..
$ bzr co --lightweight trunk work
$ cd work
$ bzr --no-plugins log -r branch:../trunk
bzr: ERROR: bzrlib.
Traceback (most recent call last):
File ".../bzr.
return the_callable(*args, **kwargs)
File ".../bzr.
ret = run(*run_argv)
File ".../bzr.
return self.run(
File ".../bzr.
result = func(*args, **kwargs)
File ".../bzr.
rev1, rev2 = _get_revision_
File ".../bzr.
rev1 = rev2 = revisionspec_
File ".../bzr.
return self._match_
File ".../bzr.
info = self._match_
File ".../bzr.
branch.
File ".../bzr.
self.
File ".../bzr.
return self.control_
File ".../bzr.
raise errors.
ReadOnlyError: A write attempt was made in a read only transaction on LockableFiles(lock, file://
bzr 2.1.0dev4 on python 2.6.4 (Linux-
arguments: ['.../bzr.dev/bzr', '--no-plugins', 'log', '-r', 'branch:../trunk']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'de_DE.utf8'
plugins:
*** Bazaar has encountered an internal error. This probably indicates a
bug in Bazaar. You can help us fix it by filing a bug report at
https:/
including this traceback and a description of the problem.
You probably want to write a bunch of test cases, ensuring that branch: revspecs work for all commands.
Related branches
- John A Meinel: Approve
- Martin Pool: Approve
-
Diff: 56 lines (+27/-2)2 files modifiedbzrlib/revisionspec.py (+14/-2)
bzrlib/tests/blackbox/test_log.py (+13/-0)
Changed in bzr: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Martin von Gagern wrote:
> Public bug reported:
>
>>From the user point of view, this feels like a variation of bug #496590,
> while the internal cause is probably the same as in bug #144421.
>
>
> You probably want to write a bunch of test cases, ensuring that branch:
> revspecs work for all commands.
>
> ** Affects: bzr
> Importance: Undecided
> Status: New
>
A workaround is "bzr log -r -1:../trunk".
Though that only works if the trunk revision is already present in the
local repository.
John enigmail. mozdev. org/
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://
iEYEARECAAYFAks qQYIACgkQJdeBCY SNAAOGwwCgq4JHD aVMLsA/ 2yB0UImSEJbx 5q0s71WtjyWg898 R5ND
pTMAnRuig28H+
=ho5N
-----END PGP SIGNATURE-----