SVN Keywords Question

0 views
Skip to first unread message

DavidCAIT

unread,
Nov 23, 2009, 11:16:14 AM11/23/09
to us...@subversion.tigris.org
Is there any svn keyword which indicates the last date when ANY file in the
SVN repository was updated? For example, if I have three files in my SVN
repository:

readme.txt
myWebapp.jar
welcome.jpg

Is there any SVN keyword that I could put in readme.txt which would be
updated with the most recent date that any file in the repository was
updated? For example, if I updated welcome.jpg on July 2nd then I would want
the text in "readme.txt" to indicate that the package was last updated on
July 2nd even though I haven't updated my readme file.

Thanks!
--
View this message in context: http://old.nabble.com/SVN-Keywords-Question-tp26481071p26481071.html
Sent from the Subversion Users mailing list archive at Nabble.com.

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

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

Stefan Sperling

unread,
Nov 23, 2009, 11:26:44 AM11/23/09
to DavidCAIT, us...@subversion.tigris.org
On Mon, Nov 23, 2009 at 08:16:14AM -0800, DavidCAIT wrote:
> Is there any svn keyword which indicates the last date when ANY file in the
> SVN repository was updated? For example, if I have three files in my SVN
> repository:
>
> readme.txt
> myWebapp.jar
> welcome.jpg
>
> Is there any SVN keyword that I could put in readme.txt which would be
> updated with the most recent date that any file in the repository was
> updated? For example, if I updated welcome.jpg on July 2nd then I would want
> the text in "readme.txt" to indicate that the package was last updated on
> July 2nd even though I haven't updated my readme file.

Your question is virtually the same as this one:
http://subversion.tigris.org/faq.html#version-value-in-source

Stefan

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

Tony Harverson

unread,
Nov 23, 2009, 11:27:07 AM11/23/09
to DavidCAIT, us...@subversion.tigris.org

Kenneth Goldman

unread,
Nov 23, 2009, 1:21:46 PM11/23/09
to us...@subversion.tigris.org, us...@subversion.tigris.org

This question is often asked, usually referring to a revision, not
a date.  I believe that svn provides no functions in this area.

Here's the best I can offer.

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

David Weintraub

unread,
Nov 24, 2009, 1:48:00 PM11/24/09
to DavidCAIT, us...@subversion.tigris.org
I don't believe there's a keyword that will do what you want.

However, most places have stopped using keywords due to a variety of
issues. As long as you're in Subversion, you can easily get whatever
information you need by using the svn commands. (For example, "svn
info" will give you the information you need).

What if your software is in a production site site and outside of
Subversion revision control? Have your build system create a file that
contains the information you want. For example, our build process
creates a file called version.properties which contains the production
version ID, the Subversion revision ID, the date of last change, etc..

--
David Weintraub
qaz...@gmail.com

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

Reply all
Reply to author
Forward
0 new messages