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

Re: Feature Question

From: <Chris.Stratmann_at_blum.com>
Date: 2006-05-23 12:00:20 CEST

> > Lübbe Onken wrote:
> >
> > Chris,
> >
> > Thanks for the response. Is there anyway I can get SVN to run
commands or
> > run an executable just before a check-in?
> >
> > The subversion pre-commit hook is your friend. It runs on the server
and can
> > do a lot of nice stuff for you.
> Simon Large <simon@skirridsystems.co.uk> wrote on 05/19/2006 04:09:20
> You need to run the script client side so that it will change the
> resource file in your WC. Also, you need to run it *after* the commit,
> otherwise the version you compile into the resource file will not be the

> one you are committing now.
> There is an open issue for client side hooks on TSVN.
> http://tortoisesvn.berlios.de/issues/?do=details&id=137
> Other than that, you will have to do it yourself in a batch file or
> Simon

        Ok...Um...I am doing something a little different than what other
programmers are doing. I am guessing you get questions regarding the
resource (rc) file in a C++ project and how to change the strings in this
file before a final build is done so the resulting executable contains the
proper strings. I understand this, but my situation is a little just
slightly different.
        I need to change the version number and add in "Other Version
Information" on these exe's and dll's (This is located on the Version tab
can be found in the properties of the executable). The reason being is
that I would like to look at the version number to find out what
repository version number this executable is without actually running it.
This is possible with a little manipulation of the following project...
        I figured out a solution to my own problem. In Microsoft Visual
Studios there is a post-build option which allows my to run scripts and
executables after building an exe or dll. Therefore I just hooked my
program that changing the version number into the post-build and manually
retrieve the version number out of the .svn\entries file to write my new
version number on my exe or dll.

Received on Tue May 23 12:00:51 2006

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

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