From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by sourceware.org (Postfix) with ESMTPS id 35A71385B833 for ; Fri, 3 Apr 2020 13:44:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 35A71385B833 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id BBECCABD1; Fri, 3 Apr 2020 13:44:40 +0000 (UTC) Subject: Re: subversion status on gcc.gnu.org From: =?UTF-8?Q?Martin_Li=c5=a1ka?= To: Jakub Jelinek Cc: gcc@gcc.gnu.org, overseers@sourceware.org, "Frank Ch. Eigler" References: <20200320173740.GA117263@elastic.org> <20200402122615.GT2212@tucnak> <20200403085406.GX2212@tucnak> Message-ID: Date: Fri, 3 Apr 2020 15:44:40 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.6 required=5.0 tests=BAYES_00, BODY_8BITS, KAM_DMARC_STATUS, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: overseers@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Overseers mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Apr 2020 13:44:43 -0000 On 4/3/20 11:23 AM, Martin Liška wrote: > 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 >> > I've got it, we want to use: http://httpd.apache.org/docs/trunk/rewrite/rewritemap.html#dbm which allows using a map file with additional index. There's svn-to-git.txt file: https://drive.google.com/file/d/1xZ7TwvqcV6zErup920OLhb09tePgSJHQ/view?usp=sharing that should be transformed by: $ httxt2dbm -i svn-to-git.txt -o svn-to-git.map Martin