On 9/30/05, Peter McNab <firstname.lastname@example.org> wrote:
> On the Subversion developers list theres a bit of to-ing and fro-ing
> about having Subversion replace magic strings with current revision info.
> The reasons for it's intended use may vary but being able to pop up the
> svn revision number in an about box ah-la TortoiseSVN's one is a good
> On the client side there is a facility to manually run "SubWCRev.exe"
> and have string replacement take place. It would normally be manually
> run in a build script, FinalBuilder or the like so the facility is
> provided, in around about way, but it's a separate process from the
> usual edit test edit cycle. Not everyone has the luxury of FinalBuilder.
> So. I was wondering if TortoiseSVN could be made to support client side
> hooks for say Commit and Update. That this would assist in the
> "automation" so to speak by ensuring the correct revision info was
> always present in a file. Obviously it becomes the hooks responsibility
> to run SubWCRev or whatever, on the files specified in the hook script.
> So my method of getting the revision info into the latest compile never
> touches a revisioned file.
> The versioned file revision.txt contains one line of code.
> CONST Current_Revision: string = '$WCREV$';
> In a batch file the magic line which creates a .inc file for including
> into Delphi code at the appropriate place
> SubWCRev . revision.txt revision.inc -f
> Instead of running the batch file manually, if it was invoked by a hook,
> the human error factor is one step removed.
> Server side hooks are not suitable for contacting every repository visitor.
> Am I making sense or wasting bandwidth.
oo // \\ "De Chelonian Mobile"
(_,\/ \_/ \ TortoiseSVN
\ \_/_\_/> The coolest Interface to (Sub)Version Control
/_/ \_\ http://tortoisesvn.tigris.org
To unsubscribe, e-mail: email@example.com
For additional commands, e-mail: firstname.lastname@example.org
Received on Fri Sep 30 14:01:28 2005