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

Re: Feature request for SubWCRev

From: Simon Large <simon_at_skirridsystems.co.uk>
Date: 2005-12-08 11:23:42 CET

Pete Gonzalez wrote:
> Pete Gonzalez wrote:
>
>> I propose adding a macro "$WCNOW$" that expands to the current
>> date/time. This information can of course be obtained in other
>> ways, but it would be convenient if integrated into the SubWCRev
>> template, since the C++ __DATE__ macro is not available some
>> programming languages.
>
>
> Hmm... My mistake, apparently the SubWCRev tool is not actually part
> of Subversion, but rather a part of TortoiseSVN. Why isn't this
> important tool a native part of Subversion? Nothing about it is
> specific to to TortoiseSVN. Or is there some other existing
> equivalent?

SubWCRev is actually Windows-specific because it is coded using Windows
API functions (such as ReadFile() rather than fread()). I believe it
came into existence only because Windows native scripting is poor, and
extracting the output from svnversion and editing it into a text file
was considered harder than writing a quick and dirty console app. Since
then, SubWCRev has grown some switches which svnversion does not have.

It could of course be re-written so that it would build in other
environments. Or the functionality could be added to svnversion,
although I think there is little support for this among Subversion
developers, and it hardly constitutes a high priority task.

Another approach would be for someone who understands python to
contribute a script which uses the bindings to achieve the same end in a
platform-independent manner.

In the meantime, if you want $WCNOW$ added to SubWCRev you can ask on
the TSVN dev list.

Simon

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Dec 8 11:24:05 2005

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