want easy/standard way to get bzrdir/branch/wt/repository url

Bug #507761 reported by Martin Pool
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Medium
Unassigned

Bug Description

If you want to get the url of a branch/bzrdir/repository/wt (we need a name for these, maybe ControlComponent) then at the moment it may be branch._transport._base or similar, and this typically actually points into the .bzr/branch directory, whereas the user wants to see the top.

It would be better if there was something standard and public like 'thing.url' and 'thing.root_url' to get the directory that typically contains the wt, and that's normally appropriate for messages.

Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 507761] [NEW] want easy/standard way to get bzrdir/branch/wt/repository url

On Fri, 2010-01-15 at 02:27 +0000, Martin Pool wrote:
>
> It would be better if there was something standard and public like
> 'thing.url' and 'thing.root_url' to get the directory that typically
> contains the wt, and that's normally appropriate for messages.

there is branch.base, for branches. And for anything other than a
control dir itself there is thing.bzrdir.root_transport.base

Cheers,
Rob

Revision history for this message
Martin Pool (mbp) wrote : Re: [Bug 507761] [NEW] want easy/standard way to get bzrdir/branch/wt/repository url

2010/1/15 Robert Collins <email address hidden>:
> On Fri, 2010-01-15 at 02:27 +0000, Martin Pool wrote:
>>
>> It would be better if there was something standard and public like
>> 'thing.url' and 'thing.root_url' to get the directory that typically
>> contains the wt, and that's normally appropriate for messages.
>
> there is branch.base, for branches. And for anything other than a
> control dir itself there is thing.bzrdir.root_transport.base

Basically I'm just suggesting an easier way to spell that.

--
Martin <http://launchpad.net/~mbp/>

Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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