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

RE: How can I get the wc revision number by itself?

From: Arild Fines <arild.fines_at_broadpark.no>
Date: 2004-02-27 15:49:39 CET

David Balch wrote:
> Hi,
>
> Is there a subversion command that will return just the working copy's
> revision?
>
> Failing that, how might I use bash commands to pick out the number from
> `status -u`?
>
> I can get as far as grepping `status -u` for "revision", but don't know
what
> I can use to get just the number.

Take a look at the svnversion command. It does what you want.

--
Arild
AnkhSVN: http://ankhsvn.tigris.org
Blog: http://ankhsvn.com/blog
IRC: irc://irc.freenode.net/ankhsvn
"The Guide is definitive. Reality is frequently inaccurate."
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Feb 27 15:48:58 2004

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.