[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: Simon Large <slarge_at_slarge.plus.com>
Date: 2005-04-09 23:53:30 CEST

Molle Bestefich wrote:
>>>> - 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 have multiple projects in one solution.
>>
>> As does TSVN. The version.h file generated by SubWCRev from
>> version.in is used in TortoiseProc and TortoiseMerge.
>
> The different projects are at different revisions? ;-).

It's still only a small header for each project. It could even be the
_same_ template file for all projects which gets converted to a
different file for each sub project. eg.
SubWCRev Proj1 Version.in Proj1\Version.h
SubWCRev Proj2 Version.in Proj2\Version.h

>>> The amount of effort to use SubWCRev just keeps going up and up and
>>> up...
>>
>> I don't understand what's so much work.
>
> Well, it's just my opinion.
> And I can see how it's not any kind of work for you since you know the
> tool inside-out and you only use it in one single project.

There's really not a lot to learn. Use the doc, Luke.

> We're getting theoretical here.
> But they're not mutually exclusive.
> SubWCRev could easily be made to replace keywords "the subversion way"
> and still fill in the role that it has just fine. It could also be
> made to do keywords in a new way where it replaces the word before /*
> $WCREV$ */, so you could type:
>
> #define tuggummi 123 /* $WCREV$ */

That could work for C files, but how does SubWCRev know what a comment
looks like in other languages? And what exactly is it replacing? And
what if your language doesn't support comments on the same line - think
DOS batch files. What about resource files? What about
$WCMODS?TrueText:FalseText$, where either TrueText or FalseText could be
blank. The first time you replace something with an empty string, where
is the replacement going to go next time?

As far as I can see, what you propose is not only harder to program but
also harder for the user to get working reliably.

Simon

-- 
       ___
  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 23:52:30 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.