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

RE: Why does `svnversion -c` give me a range?

From: Bob Archer <Bob.Archer_at_amsi.com>
Date: Wed, 4 Dec 2013 15:21:39 +0000

> Hi Folks,
>
> I would like to include the svn revision number in my project's version info
> but I am confused by the results of svnversion. I want the version number of
> a tagged tree to always be the same (i.e. the last commit to the tag) but if the
> tag is to be rebuilt using a fresh checkout some time later `svnversion` seems
> to report the HEAD revision. So I looked at `svnversion -c` but this always
> seems to give me a range e.g. `2:1476`, even directly after an update.
>
> I have read the red book but it is quite vague about the -c option. Why is `-c`
> always giving me a range?
>
> Many thanks,
>
> ~ mark c

If you are on windows you can use SubWCRev which is distributed with tortoiseSVN. It is designed to do what you want.

http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-subwcrev.html

BOb
Received on 2013-12-04 16:22:19 CET

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.