• Bug#829444: Use DEP14 branch layout by default

    From Gioele Barabucci@21:1/5 to agx@sigxcpu.org on Sun Feb 18 18:50:01 2024
    On Fri, 5 Jan 2024 16:44:03 +0100 Guido =?iso-8859-1?Q?G=FCnther?= <agx@sigxcpu.org> wrote:
    What we need to figure out is a way to distinguish "old" style
    repos (default upstream and master (or what gbp.conf provides) with
    newly created ones (default debian/latest and upstream/latest or what gbp.conf provides).

    Likely the best way to do so is to add a `gbp.conf` option:

    `layout = [legacy|dep14]`

    defaulting to `legacy` if unset.

    Another possibility would be to check which branch exist and understand
    what is the intended layout. debian-janitor does that.

    Pseudo-code:

    if branches.include?("debian/latest", "upstream/latest"):
    layout = dep14-2020
    if branches.include?("debian/master"):
    layout = dep14-2014
    else:
    layout = legacy

    Obviously this must be tweaked to take into account branch names set via gbp.conf.

    Regards,

    --
    Gioele Barabucci

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)