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

Re: Receive only the revision number

From: jantje <janvanoppen_at_skynet.be>
Date: Fri, 4 Jul 2008 06:12:52 -0700 (PDT)

Ok, it works fine, but now I have a problem:
When I commit, svn gives the rivision number.. f.i. 245

But when I do info in my local copy, or use to the repository url.. The
result is: revision number=1

How is it possible, that this revision number on the repository and on the
local copy is 1?

Can someone help me? Thanks..

Paul Koning-4 wrote:
>
>>>>>> "jantje" == jantje <janvanoppen_at_skynet.be> writes:
>
> jantje> Hi there,
>
> jantje> Is it possible, for use in a /bin/bash script, to receive
> jantje> from subversion the current revision number? So only the
> jantje> number, without other information?
>
> HEAD_REV=$(svn info ${REPO_URL} | awk '/Revision:/{print $2}')
>
> If you do "svn info" to a working directory, you get the rev of the
> most recent checkout or update to that WD. But if you do it to a
> repository URL you get the info for the repository.
>
> paul
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
> For additional commands, e-mail: users-help_at_subversion.tigris.org
>
>
>

-- 
View this message in context: http://www.nabble.com/Receive-only-the-revision-number-tp18262376p18279259.html
Sent from the Subversion Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-07-04 15:13:11 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.