Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 May 2021 19:36:39 -0700
From:      Oleksandr Tymoshenko <gonzo@bluezbox.com>
To:        Yuri Pankov <yuripv@freebsd.org>
Cc:        Kubilay Kocak <koobs@freebsd.org>, current@freebsd.org, Bugmeister <bugmeister@freebsd.org>
Subject:   Re: linking to git revisions in bugzilla
Message-ID:  <20210508023639.GA66088@bluezbox.com>
In-Reply-To: <267d6951-570f-43c7-ddf2-fa794362bfef@FreeBSD.org>
References:  <134b5580-360a-43c9-8c8f-2a50c2524e7e@www.fastmail.com> <36286647-e005-d289-45d6-9630d39d6430@FreeBSD.org> <20210502050310.GA4428@bluezbox.com> <267d6951-570f-43c7-ddf2-fa794362bfef@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Yuri Pankov (yuripv@FreeBSD.org) wrote:
> Oleksandr Tymoshenko wrote:
> > Kubilay Kocak (koobs@FreeBSD.org) wrote:
> >> On 12/04/2021 9:02 am, Yuri Pankov wrote:
> >>> While filing a bug, I noticed that the help only mentions svn revision numbers, and "Preview" tab had no output when I tried putting "base <short-git-hash>", so I'm wondering how do you link to git revisions?
> >>
> >> We'll (bugmeister) be adding parsing support for it (along with a few 
> >> other related auto-linking things)
> >>
> >> I'd encourage people to use "<repo> <short hash>" (repo = src|doc|ports) 
> >> where short hash is at least 8 chars in the meantime. Once parsing is 
> >> added all previous references will be linked.
> > 
> > Links to git hashes should work now, please test and let us
> > know if feature works as expected. As Michael mentioned - preview
> > is a different matter, I'll try to look into it later.
> 
> Hi Oleksandr,
> 
> It seems to work except when the git hash starts with a digit, it then
> tries to link to subversion revision using all available digits at the
> start of the hash.  Or, at least, that's what I'm seeing in preview tab,
> not sure if it has been fixed yet?

This should be fixed now. If there is an example where it doesn't
work please post it to this PR:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255682

Thank you

-- 
gonzo



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20210508023639.GA66088>