On 4/3/20 10:54 AM, Jakub Jelinek wrote:
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?

It's not ideal :) Maybe a modern linux filesystem will not suffer so much?
Oversees people can tell what they want.

 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 ).

That would be possible.

Or it can be a database query.

I can imagine a simple sqlite file that can be queried.
Basically all is possible.

Martin


        Jakub


Reply via email to