Gentoo Archives: gentoo-dev

From: Andrew Savchenko <bircoph@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Referencing bug reports in git (WAS: Re: [gentoo-commits] repo/gentoo:master commit in: sci-libs/opencascade/)
Date: Sun, 09 Aug 2015 21:44:23
Message-Id: 20150810004409.59637bea9aefd3f045b67614@gentoo.org
In Reply to: Re: [gentoo-dev] Referencing bug reports in git (WAS: Re: [gentoo-commits] repo/gentoo:master commit in: sci-libs/opencascade/) by "Michał Górny"
1 On Sun, 9 Aug 2015 21:56:05 +0200 Michał Górny wrote:
2 > Dnia 2015-08-09, o godz. 16:09:29
3 > hasufell <hasufell@g.o> napisał(a):
4 >
5 > > On 08/09/2015 03:58 PM, Michael Weber wrote:
6 > > > commit: 40b3fd64ec9c5d6d94f0f0897740bc77622c24a1
7 > > > Author: Michael Weber <xmw <AT> gentoo <DOT> org>
8 > > > AuthorDate: Sun Aug 9 13:58:26 2015 +0000
9 > > > Commit: Michael Weber <xmw <AT> gentoo <DOT> org>
10 > > > CommitDate: Sun Aug 9 13:58:26 2015 +0000
11 > > > URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=40b3fd64
12 > > >
13 > > > sci-libs/opencascade: add USE=vtk (bug 557022, thanks Helmut Jarausch).
14 > > >
15 > >
16 > > I was wondering if we should set a standard for referencing bug reports.
17 > > The portage team already does something like that:
18 > > https://github.com/gentoo/portage/commit/b7149002bf23889f280c502afe6ceda0b1345ca3
19 > >
20 > > Following that, the commit could have been:
21 > > =====
22 > > sci-libs/opencascade: add USE=vtk
23 > >
24 > > thanks to Helmut Jarausch
25 > >
26 > > X-Gentoo-Bug: 557022
27 > > X-Gentoo-Bug-url: https://bugs.gentoo.org/show_bug.cgi?id=557022
28 > > =====
29 >
30 > Which is terribly redundant. Just put the whole bug URL. Advantages:
31 >
32 > - keeps the bug namespaced to bugs.gentoo.org,
33 > - has the bug no inside,
34 > - is convenient -- you can click it instead of copy-pasting the no.
35
36 1. URL may change in future, bug number — unlikely.
37 2. Bug number can be easily typed, URL has to be copied or
38 generated by some tool.
39 3. Too many text, hard to read. Some bugs may refer to a dozen of
40 URLs.
41 4. It is easier to copy a number, than selecting and copying whole
42 string. Not all terminals support running browser on URL click.
43 5. Clicking is less convenient than typing "bugs search $number" —
44 user have to move hands from a keyboard to a mouse — a terrible
45 waste of time, at least in my case with my typing speed.
46
47 Best regards,
48 Andrew Savchenko

Replies