You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Rolf Schroedter <ro...@dlr.de> on 2009/11/30 11:24:28 UTC

svn info . does not display the latest revision info

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:

pbs $ svn info changes.txt
Path: changes.txt
Name: changes.txt
URL: https://svn.dlr.de/BELA/Schroedter/PBS/trunk/changes.txt
Repository Root: https://svn.dlr.de/BELA
Repository UUID: 73670ebe-4f08-11dc-8e32-47d8d9b2d134
Revision: 1011
Node Kind: file
Schedule: normal
Last Changed Author: schroedt
Last Changed Rev: 1011
Last Changed Date: 2009-11-30 10:38:45 +0100 (Mo, 30 Nov 2009)
Text Last Updated: 2009-11-30 10:38:46 +0100 (Mo, 30 Nov 2009)
Checksum: 546bb861ea68743e4423d76b8e2fd5ad

pbs $ svn info .          
Path: .
URL: https://svn.dlr.de/BELA/Schroedter/PBS/trunk
Repository Root: https://svn.dlr.de/BELA
Repository UUID: 73670ebe-4f08-11dc-8e32-47d8d9b2d134
Revision: 990
Node Kind: directory
Schedule: normal
Last Changed Author: rolf
Last Changed Rev: 710
Last Changed Date: 2009-11-05 10:57:49 +0100 (Do, 05 Nov 2009)

Specifying the Project URL gives the expect result (latest revision):

pbs $ svn info https://svn.dlr.de/BELA/Schroedter/PBS/trunk 
Path: trunk
URL: https://svn.dlr.de/BELA/Schroedter/PBS/trunk
Repository Root: https://svn.dlr.de/BELA
Repository UUID: 73670ebe-4f08-11dc-8e32-47d8d9b2d134
Revision: 1011
Node Kind: directory
Last Changed Author: schroedt
Last Changed Rev: 1011
Last Changed Date: 2009-11-30 10:38:45 +0100 (Mo, 30 Nov 2009)


-- 

------------------------------------
Rolf Schroedter
German Aerospace Center
Institute of Planetary Research
D-12489 Berlin, Rutherfordstrasse 2
Tel/Fax:  (+49) (30) 67055-416/384
Email:    Rolf.Schroedter@dlr.de

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

Please start new threads on the <us...@subversion.apache.org> mailing list.
To subscribe to the new list, send an empty e-mail to <us...@subversion.apache.org>.

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

Posted by Rolf Schroedter <ro...@dlr.de>.
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@dlr.de

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

Please start new threads on the <us...@subversion.apache.org> mailing list.
To subscribe to the new list, send an empty e-mail to <us...@subversion.apache.org>.

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

Posted by Ryan Schmidt <su...@ryandesign.com>.
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 <us...@subversion.apache.org> mailing list.
To subscribe to the new list, send an empty e-mail to <us...@subversion.apache.org>.