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

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community 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
for
this to be done automatically and not something that I'd have to update
each
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
similar
in the past.

Thanks,
Ryan
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
run

svn propset svn:keywords "Revision" index.rhtml

Or in whatever file you want it to be.
More info and a list of keywords:
http://svnbook.red-bean.com/nightly/en/svn.advance...
This topic is locked and can not be replied to.