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

Re: svn info . does not display the latest revision info

From: Rolf Schroedter <rolf.schroedter_at_dlr.de>
Date: Mon, 30 Nov 2009 12:47:32 +0100

Ryan Schmidt wrote, On 30.11.2009 12:36:
> On Nov 30, 2009, at 05:24, Rolf Schroedter wrote:
>
>
>> SVN: 1.6.6 (r40053) on Windows XP
>>
>> I'm not sure, whether the current behavior is a bug or feature:
>> I'm expecting that [snv info .] should display the latest revision info
>> of all SVN files of my current project.
>> (I need this info to compile it into my C-source).
>>
>> However sometimes this works as I'm expecting, sometimes I'm getting
>> older revision info:
>>
>
> "svn info ." displays the revision of "." (which is unrelated to any files or directories inside "."). You can either "svn up ." to update to the latest revision first, or use the "svnversion" program. People often use the latter when they need to compile a revision number their programs. There's even a FAQ with more info:
>
> http://subversion.tigris.org/faq.html#version-value-in-source
>
> I think svnversion may not work on Windows, which you say you use. In that case, you may want to look into SubWCRev.exe.
>
>

Thanks a lot. Running "svn update ." before "svn info ." does the trick.
I'm grep'ing not only the numerical version number but also the revision
date, so "svnversion" is not an option for me.

Regards, Rolf.

-- 
------------------------------------
Rolf Schroedter
German Aerospace Center
Institute of Planetary Research
D-12489 Berlin, Rutherfordstrasse 2
Tel/Fax:  (+49) (30) 67055-416/384
Email:    Rolf.Schroedter_at_dlr.de
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2425450
Please start new threads on the <users_at_subversion.apache.org> mailing list.
To subscribe to the new list, send an empty e-mail to <users-subscribe_at_subversion.apache.org>.
Received on 2009-11-30 12:48:26 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.