On Fri, Apr 03, 2020 at 10:38:17AM +0200, Martin Liška wrote: > > 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 > > > > Btw. what about statically generated database (files) which can be used for > redirection? > I'm sending an example and I have a script that can generate any file content.
That can work too, but do we want a directory with 280156 files? One way is to split the number into halves and have files like whatever/280/151 (and deal specially with the revisions < 1000 where it would use whatever/0/123 ). Or it can be a database query. Jakub