Forum: Ruby on Rails Display SVN Revision Number in a View

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Ryan P. (Guest)
on 2006-04-29 08:08
(Received via mailing list)
Is it possible to display the SVN revision number in a view? I'd like
this to be done automatically and not something that I'd have to update
time the revision is updated. I know that it is kept in a .svn file or
something, but I am curious if anybody out there has done something
in the past.

Leo -. (Guest)
on 2006-04-29 10:03
(Received via mailing list)
You can use svn:keywords to achieve this result.
Just put $Revision$ in place, where you want revision number to be and

svn propset svn:keywords "Revision" index.rhtml

Or in whatever file you want it to be.
More info and a list of keywords:
This topic is locked and can not be replied to.