[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: Ryan Schmidt <subversion-2009d_at_ryandesign.com>
Date: Mon, 30 Nov 2009 05:36:40 -0600

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.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2425444

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:37:29 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.