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

Re: What Version am I?

From: Erik Huelsmann <ehuels_at_gmail.com>
Date: 2005-12-02 19:56:57 CET

On 12/2/05, Kent Borg <kentborg@borg.org> wrote:
> How do I find out what version a working directory is at? For
> example, say I checkout a copy one day, forget about it, then later
> come back wanting to know what version I checked out. What is the
> best way to do this?
>
> As a hacky way I did the following:
>
> $ svn info -R | grep "Revision: " > /tmp/revision_info
>
> And then looked in the resulting (big) file for the largest version
> number. There must be an easier way...

There is not 1 number to describe your working copy, read:

http://svnbook.red-bean.com/nightly/en/svn.basic.in-action.html#svn.basic.in-action.mixedrevs

alternatively, run 'svnversion . ' in the root of your WC.

HTH,

Erik.
Received on Fri Dec 2 20:02:38 2005

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.