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

Re: Adding information about the latest revision of any file in a repository

From: Ryan Schmidt <subversion-2006q2_at_ryandesign.com>
Date: 2006-05-18 13:13:55 CEST

On May 18, 2006, at 12:06, bgbg bg wrote:

> I need to add information about the latest revision number of ANY file
> in a repository. I can use svn:keyword $Rev$, but this will give me
> the revision number of a particular file, while what I want is to get
> the latest revision number .
>
> For example, consider a C project with the following files:
> globals.h
> functions.h
> functions.c
> main.c
>
> I want the final program to print it's revision number. Adding the
> $Rev$ keyword to only one file won't suffice, while adding it to all
> the files and finding the file with the biggest Rev number looks to me
> a little bit unefficient.

This is a FAQ. Please see:

http://subversion.tigris.org/faq.html#version-value-in-source

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu May 18 13:15:33 2006

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.