[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How find GNUAPL svn repository revision number
From: |
Peter Teeson |
Subject: |
Re: How find GNUAPL svn repository revision number |
Date: |
Tue, 22 Sep 2020 19:17:41 -0400 |
Thanks for all the suggestions:
Kacper's answer is what I was looking for. Nice and elegant.
> On Sep 22, 2020, at 5:44 PM, Kacper Gutowski <mwgamera@gmail.com> wrote:
>
> On Tue, Sep 22, 2020 at 02:17:46PM -0400, Peter Teeson wrote:
>> I want to write a bash script to
>> compare the local working copy revision number
>> vs
>> the svn://svn.savannah.gnu.org/apl/trun
>> <svn://svn.savannah.gnu.org/apl/trun> repository revision number.
>>
>> I know how to find out the revision number of my local working copy
>> using svnversion or svn info if i need more data.
>
> Unless I'm mistaking something, what you want is simply the revision number
> of the HEAD:
>
> svn info -r HEAD --show-item revision
>
> vs revision number of your working copy:
>
> svn info --show-item revision
>
> -k
>