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

Re: Auto commit

From: Kevin Grover <kevin_at_kevingrover.net>
Date: Thu, 6 Aug 2009 11:43:22 -0700

On Sat, Aug 1, 2009 at 2:47 PM, Gustavo Vargas <xgvargas_at_gmail.com> wrote:

> Hello all,
>
> There is way to automatically commit a file every time a commit my project
> even if that file is in normal status?
> Lets to suppose I have only 3 files in my project:
>
> about.cpp
> main.cpp
> test.cpp
>
> if I made a change in the main.cpp and then commit I want to update the
> main.cpp AND the about.cpp too on every commit. I want do that because in
> the about.cpp file I have some keywords replacement enabled, so when I
> compile my CPP project I will always have a text inside the about.cpp file
> updated with the current version of the whole project. Instead of this today
> I have this same text with the version of the ABOUT.CPP only and this isn't
> what I want...
>
> Thanks in advance!
>
> Regards,
> ---
> Gustavo Vilela Vargas
> Email/MSN: xgvargas_at_gmail.com
> Skype: xgvargas
>

You'd be better off putting all version information into one file (say
version.cpp or version.hpp) and having all other files access those
functions/defines - this way it's completely unified. Then, when you're
ready for a new version number, you manually edit the version.cpp (to tweak
the version) and the svn revision will jump also.

Or, I'll also often have a makefile that generates version file for me (from
svnversion). If you're using Visual Studio, that's not very easy though.

- Kevin

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2380985

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2009-08-06 20:43:35 CEST

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.