Using branch: revspec in stat blows up
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
Undecided
|
Lukáš Lalinský |
Bug Description
Using a 'branch:' revspec in a stat command will blow itself up with a
ReadOnlyError: A write attempt was made in a read only transaction on LockableFiles(lock, file://
(where the path refers to the 'local' branch)
Reproduce:
#!/bin/sh -x
bzr="/usr/
# Create initial branch
${bzr} init A
(
cd A ;
touch a ;
${bzr} add ;
${bzr} ci -m 'add A'
)
# Branch it and make a change
${bzr} branch A B
(
cd B ;
touch b ;
${bzr} add ;
${bzr} ci -m 'add in B'
)
# Try and 'stat' those changes from A
(
cd A ;
# If we use ancestor: instead of branch:, this works. Also, if we do
# a 'diff' instead of 'stat', it works just fine. It's only 'stat'
# with 'branch' that croaks.
${bzr} stat -r-1..branch:../B
)
Changed in bzr: | |
status: | New → Confirmed |
Changed in bzr: | |
assignee: | nobody → luks |
milestone: | none → 1.8 |
status: | Confirmed → Fix Released |
I'm seeing this same error, but I've found that interestingly the following equivalent 'bzr status' command succeeds.
"bzr stat -r-1..-1:../B"
btw, I'm running bzr 0.92 and using the dirstate repository format.