Path: csiph.com!usenet.pasdenom.info!aioe.org!bofh.it!news.nic.it!robomod From: Scott Kitterman Newsgroups: linux.debian.maint.python Subject: Re: PAPT git migration Date: Thu, 01 Jun 2017 05:10:02 +0200 Message-ID: References: X-Mailbox-Line: From debian-python-request@lists.debian.org Thu Jun 1 03:01:19 2017 Old-Return-Path: X-Amavis-Spam-Status: No, score=-6.98 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FOURLA=0.1, LDO_WHITELIST=-5, MURPHY_DRUGS_REL8=0.02, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate: -5 Dkim-Signature: v=1; a=rsa-sha256; c=simple/simple; d=kitterman.com; s=201409; t=1496286062; bh=SeoglZyd1bFzbJY66olGUwSRJzlVVAGgGTfFeLG+d8Y=; h=Date:In-Reply-To:References:Subject:To:From:From; b=QPL9YnL6h0atiu12YsTmG7roeJUCVesW8G0dFTFkbD+0/A53Y7khI2eKzJ5SMIubq T4tkwm1s7JnD4yc/X4gIS7pMcwInHx1gHlKrmdsR6EFjdNT/yjbblEVWNW+Sw+cruB IxH43Yf9DwqPlCzOhYnzJj4q3KHQj89WojhpscWc= MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Mailing-List: archive/latest/14920 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/ECF8A9CE-C532-469A-BCC2-903C1CACE5F3@kitterman.com Approved: robomod@news.nic.it Lines: 91 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Thu, 01 Jun 2017 03:01:00 +0000 X-Original-Message-ID: X-Original-References: <20170531185815.GA1153@bach.rivera.co.za> <20170531173220.6df84975@subdivisions.wooz.org> <20170531221645.GB1153@bach.rivera.co.za> <20170531231639.jbfujevwijz2bu55@perpetual.pseudorandom.co.uk> Xref: csiph.com linux.debian.maint.python:9543 On May 31, 2017 7:16:39 PM EDT, Simon McVittie wrote: >On Thu, 01 Jun 2017 at 00:16:45 +0200, Stefano Rivera wrote: >> Hi Barry (2017=2E05=2E31_23:32:20_+0200) >> > $ gbp pq export >> > - This doesn't work until you at least do a first pq import, but >now I see the >> > d/p/changlog-docs patch gets changed in ways that lose >information: >>=20 >> Sounds like a limitation of pq import=2E I'm suprised it doesn't >support >> DEP3=2E > >DEP3 describes some metadata fields, and a family of incompatible >formats >(which do not necessarily seem to be designed for machine-readability) >that >use those metadata fields=2E > >gbp pq import consumes patches in `git format-patch` format=2E One of the >possible formats in the DEP3 family (with RFC2822-style >From/Date/Subject, >unindented long description, and all non-email fields in a trailing >pseudo-header similar to common practice for Signed-off-by) is >compatible >with that: > > From: =2E=2E=2E > Date: =2E=2E=2E > Subject: First line of description > > More description > more description > yet more description > > Bug-Debian: =2E=2E=2E > Applied-upstream: =2E=2E=2E > More-DEP3-fields-in-pseudo-header: =2E=2E=2E > --- > optional diffstat here > > diff --git =2E=2E=2E > =2E=2E=2E > >but this style (which is a DEP3 invention, and not used outside Debian >and its >derivatives) is not: > > Author: =2E=2E=2E > Description: First line of description > More description > more description > yet more description > Bug-Debian: =2E=2E=2E > >Converting the latter into the former seems like a valid gbp pq feature >request, but might not be practically feasible (detecting that style >mechanically so that it can be parsed is probably not trivial)=2E > >For packages that are maintained in git, either upstream or downstream, >preferring the former format makes a lot of sense IMO=2E Anything that >relies >on round-tripping patches through git like gbp pq does is going to want >git-format-patch-compatible patches=2E > >> So, our options are: >> 1=2E fix pq >> 2=2E modify all the patches to a format that pq understands >> 3=2E leave this to the maintainer to resolve (I think we expect all pq >use >> to be entirely local, so pq use isn't something we're imposing on >> anyone) > >I think it would make sense to leave the patches as-is during initial >conversion, and expect maintainers who are interested in using gbp pq >to resolve this when they import and re-export the patch series=2E >Hopefully >a lot of current patches will become unnecessary with newer upstream >software versions, so preferring git format-patch style for new patches >might be a good "90%" solution=2E > > S As long as we have one team solution for this that is documented I don't c= are what it is as long as it works=2E I don't think we should have two appr= oaches=2E Let's pick one and use it=2E Team members should not be surpris= ed when they look at a team git repo=2E Scott K