Inserting svn revision into site


#1

Hi,

Say I wanted to know what svn revision a given site was using, simply
from looking at the site. How could I embed that information into the
page (into maybe a html comment or in the page footer)? A switchtower
task?

Joe


#2

Joe Van D. wrote:

Hi,

Say I wanted to know what svn revision a given site was using, simply
from looking at the site. How could I embed that information into the
page (into maybe a html comment or in the page footer)? A switchtower
task?

Two ways. In each view, you could put into an X/HTML comment
and set the svn:keywords property. See

http://svnbook.red-bean.com/en/1.1/ch07s02.html#svn-ch-7-sect-2.3.4

for more information.

The other way is to use svnversion, run it over the working copy, and
save it’s
output somewhere, maybe as a static file in the public folder.

Regards,
Blair


Blair Z., Ph.D.
CTO, OrcaWare Technologies
removed_email_address@domain.invalid
Subversion training, consulting and support
http://www.orcaware.com/svn/