Using branch: revspec in stat blows up

Bug #144421 reported by Matthew Fuller
28
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/ever/.bzr/repository/)
(where the path refers to the 'local' branch)

Reproduce:

#!/bin/sh -x
bzr="/usr/local/bin/bzr --no-plugins --no-aliases"

# 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
)

Jelmer Vernooij (jelmer)
Changed in bzr:
status: New → Confirmed
Revision history for this message
Will S. (willdspann) wrote :

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.

Revision history for this message
Matthew Paul Thomas (mpt) wrote :

See also bug 149270.

John A Meinel (jameinel)
Changed in bzr:
assignee: nobody → luks
milestone: none → 1.8
status: Confirmed → Fix Released
Revision history for this message
Nathan Adams (nadams) wrote :

See also bug 274172

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.