Display SVN Revision Number in a View


#1

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


#2

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.advanced.props.html#svn.advanced.props.special.keywords