You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by David Balch <da...@continuing-education.oxford.ac.uk> on 2004/02/27 14:47:26 UTC

How can I get the wc revision number by itself?

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.

Cheers,
Dave.


-- 
David Balch.          | Web developer.
T: +44 (0)1865 286932 | Technology-Assisted Lifelong Learning.
F: +44 (0)1865 286922 | University of Oxford.

TALL, OUDCE and the University of Oxford accept no legal responsibility for
the contents of this message. Any views or opinions presented are only those
of the author and not those of TALL, or OUDCE, or the University of Oxford.
If this email has come to you in error please delete it and any attachments


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

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

Posted by Arild Fines <ar...@broadpark.no>.
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