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

Re: [TSVN] SubWCRev update

From: SteveKing <steveking_at_gmx.ch>
Date: 2005-04-09 22:43:46 CEST

Molle Bestefich wrote:

>>You should use SubWCRev the same way TSVN does: use a template file
>>which then you can create the file you use in VS.NET from.
>>We had SubWCRev as a pre-build step in the TSVN build process too. But I
>>removed it from there and put it in the batch file because I sometimes
>>don't want it to run everytime I build the project.
> So you want me to have duplicate copies of every source file in my
> project that I want SubWCRev to process? One that's the template that
> I'll edit, and one which will get compiled.. I'd have to open the
> template also in VS.Net in order to edit it, but I can't have in
> included in the solution because VS.Net would try to compile it and it
> would clash with the "destination" source file.

Sorry, but no.
- VS.NET does _not_ compile files just because they're in your project.
Give it another extension (like TSVN does with the version.h file, the
template is called version.in).
- If you use the revision number in more than one file, you're not using
it right. Every programming language knows includes. So have *one* file
with the revision number in it, and include that wherever you need it.

> - I'd loose all the benefits of Visual Studio, specifically there
> would be no class completion and such.

Just keep the file which you have SubWCRev process for you small. Only
keep the defines (or whatever you do with the keywords) in that file,
nothing else.

> - I'd loose synchronization with the other developers, because the
> template file is not in the solution file but in my "personal user
> preferences of what files should be open in the editor", eg. the .suo
> file.

You can easily put it in the project.

> - I'd have to answer to them why VS.Net complains about missing files
> when they check out the source code and open the project (it's because
> you have to run SubWCRev to make the files exist).

If you add SubWCRev to the pre-build step, then VS.NET won't complain
about missing files.


   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.tigris.org
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Sat Apr 9 22:44:07 2005

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

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