[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: Paul Koning <Paul_Koning_at_dell.com>
Date: Thu, 3 Jul 2008 12:16:50 -0400

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


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-03 18:27:56 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.