Merge lp:~gagern/bzr/bug149270_RevisionSpec_branch_readonly into lp:bzr
Proposed by
Martin von Gagern
Status: | Merged |
---|---|
Approved by: | John A Meinel |
Approved revision: | no longer in the source branch. |
Merged at revision: | 5325 |
Proposed branch: | lp:~gagern/bzr/bug149270_RevisionSpec_branch_readonly |
Merge into: | lp:bzr |
Diff against target: |
56 lines (+27/-2) 2 files modified
bzrlib/revisionspec.py (+14/-2) bzrlib/tests/blackbox/test_log.py (+13/-0) |
To merge this branch: | bzr merge lp:~gagern/bzr/bug149270_RevisionSpec_branch_readonly |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
John A Meinel | Approve | ||
Martin Pool | Approve | ||
Review via email: mp+28486@code.launchpad.net |
Commit message
Deal with branch: revision specs in readonly transactions
Description of the change
In the case of a read-only transaction, as set up by commands like log or status, using a branch: revision specification used to raise ReadOnlyError. This should fix things at least for those two commands. As far as I can tell, diff still works as well.
There might be other commands that aren't prepared to deal with revision specifications naming their own branch, and will therefore fail. Bug reports should be filed for these, including steps for reproduction, suitable for new blackbox tests. So far I have found no such command.
To post a comment you must log in.
That's good. It looks almost too simple, but if this does fix those bugs and doesn't break any fetch tests then I think we're good. Well done. Needs NEWS to merge.