Using branch: revspec in stat blows up

Bug #144421 reported by Matthew Fuller on 2007-09-24
28
Affects Status Importance Assigned to Milestone
Bazaar
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) on 2007-10-17
Changed in bzr:
status: New → Confirmed
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.

Matthew Paul Thomas (mpt) wrote :

See also bug 149270.

John A Meinel (jameinel) on 2008-09-24
Changed in bzr:
assignee: nobody → luks
milestone: none → 1.8
status: Confirmed → Fix Released
Nathan Adams (nadams) wrote :

See also bug 274172

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

Duplicates of this bug

Other bug subscribers