I'm pretty sure you'd have to use some server-side scripting language to
do this. In order for what you're describing below to work, all files
(modified and unmodified) would need to be updated on every
checkout/update. This goes against the goal of minimizing network
traffic.
One thing to think about would be a cron job to get the current
repository revision and output it to a file. Your pages could then
include this file.
For example:
svn info [REPOURL] | grep 'Revision' | tr -d 'Revision: ' >
/tmp/currentrevision
-----Original Message-----
From: news [mailto:news@sea.gmane.org] On Behalf Of Frank Niedermann
Sent: Wednesday, August 02, 2006 3:23 AM
To: users@subversion.tigris.org
Subject: Add HEAD revision to a file at checkout
Hi,
I'm holding a web application in Subversion with TortoiseSVN. Our
developers
have asked if it's possible to show the revision of the deployed version
on a
web page of the project.
At the moment I'm doing this manually, that means that I'm replacing
"Rev: 123"
with the new revision after new checkout/deployment in the web page
itself.
Is it possible to do this automatically, like having Subversion
replacing $REV
with the HEAD revision at checkout? Important thing is that it should
not use
the last revision of the document, it should use the actual HEAD
revision.
Regards,
Frank
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Aug 2 18:22:25 2006