Comment 1 for bug 330907

Revision history for this message
Jonathan Lange (jml) wrote : Re: [Bug 330907] [NEW] Simpler configuration of Launchpad hosting

On Wed, Feb 18, 2009 at 7:05 PM, Stuart Bishop
<email address hidden> wrote:
> Public bug reported:
>
> I'm slowly acquiring nearly identical stanzas in my locations.conf file,
> like the following:
>
> [/home/stub/src/pqm-repo]
> public_branch = bzr+ssh://bazaar.launchpad.net/~stub/pqm
> public_branch:policy = appendpath
> push_location = lp:~stub/pqm
> push_location:policy = appendpath
> submit_branch = lp:pqm
>
>
> It would be great if there was some shortcut to say 'everything here gets pushed to this launchpad area'.
>
> [/home/stub/src/pqm-reo]
> launchpad_hosted = lp:~stub/pqm
>
> Something like this could provide all the defaults, which could then be
> overridden as needed. Plugins could extend these defaults, so they work
> by default without me needing to manually update all my stanzas.
>
> Many people would just have a single stanza:
>
> [/home/stub/public-repo]
> launchpad_hosted = lp:~stub
>

FWIW, I just have this:

[/home/jml/src]
cbranch_target = /home/jml/repos
cbranch_target:policy = appendpath

[/home/jml/repos]
public_branch = lp:~jml
public_branch:policy = appendpath
push_location = lp:~jml
push_location:policy = appendpath
submit_to = <email address hidden>

(I have a split checkout / branches layout).

This works for almost all of my projects without modification.

jml