On Thu, Apr 02, 2020 at 02:19:10PM +0200, Georg-Johann Lay wrote:
> Am 20.03.20 um 18:37 schrieb Frank Ch. Eigler via Gcc:
> > Hi -
> >
> > Both svn: and ssh+svn: now work for your archeological needs.
> > Further, URLs such as
> >
> > https://gcc.gnu.org/viewcvs?rev=279160&root=gcc&view=rev
> > https://gcc.gnu.org/r123456
> >
> > are mapped to gitweb searches that try to locate the matching
> > From-SVN: rABCDEF commit. This way, historical URLs from bugzilla
> > should work.
>
> This does not work as expected. For example,
>
> https://gcc.gnu.org/r2000
>
> maps to a search and you get thousands of hits for SVN: r2000**
The gcc git svn-rev alias handles that (and also handles release and other
branches) using approx.
git log --all --grep="From-SVN: r$rev\b" | head -n 1 | awk '{print $2}'
where $rev is 2000 in your case.
Jakub