[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Rescue Linux tool svnwcrev from abandoning. Does someone have a copy we can add to github ?

From: Branko Čibej <brane_at_apache.org>
Date: Fri, 5 Jun 2020 14:58:37 +0200

On 05.06.2020 14:22, Roelof Berg wrote:
> Update: Topic solved.
>
> I will create a script named SubWCRev.sh with a content like:
>
> #!/bin/bash
> echo -n "{\""
> echo -n `svn info | grep -e "^URL: " | sed 's/URL: //g'`
> echo -n "\",\""
> echo -n `svn info | grep -e "^Revision: " | sed 's/Revision: //g'`
> echo "\",\"\"}"

Depending on your version of the client, 'svn info' might accept a
--show-item option that will make parsing its output quite a bit easier:
the first instance becomes

    svn info --show-item=url

and the second instance

    svn info --show-item=revision

and you no longer need 'grep' or 'sed'. See: 'svn help info'.

-- Brane

> Thanks for your support, I don’t need access to svnwcrev anymore.
>
>> Am 05.06.2020 um 13:51 schrieb Roelof Berg <rberg_at_berg-solutions.de
>> <mailto:rberg_at_berg-solutions.de>>:
>>
>> Update: I figured out, I need only an app that generates something
>> like this line:
>>
>> {"http://svnsrv/svn/entangled_amplifier/Src/spatial_folder","2",""}, 
>>
> […]
>>>
>>>> On Thu, Jun 4, 2020 at 10:05 AM Roelof Berg
>>>> <rberg_at_berg-solutions.de <mailto:rberg_at_berg-solutions.de>> wrote:
>>>>> ++++++++++++++++++++++++++++++++++++++
>>>>> + Does someone have a copy left of svnwcrev ? +
>>>>> ++++++++++++++++++++++++++++++++++++++
>>>>>
>>>>> […]
>
Received on 2020-06-05 14:58:40 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.