[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: Add HEAD revision to a file at checkout

From: Edelson, Justin <Justin.Edelson_at_mtvn.com>
Date: 2006-08-02 18:17:51 CEST

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

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.