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

Re: More pre-revprop-change hook woes

From: Branko Čibej <brane_at_xbc.nu>
Date: 2004-02-19 17:39:41 CET

Juanma Barranquero wrote:

>On Tue, 17 Feb 2004 14:09:07 +0100
>Juanma Barranquero <jmbarranquero@wke.es> wrote:
>
>
>
>>This simple pre-revprop-change.bat hook:
>>
>>
>
>[Somewhat related]
>
>From check_hook_cmd() (in trunk/subversion/libsvn_repos/hooks.c):
>
> static const char* const check_extns[] = {
> #ifdef WIN32
> /* For WIN32 we need to check with an added extension(s). */
> ".exe", ".cmd", ".bat", /* ### Any other extensions? */
> #else
> "",
> #endif
> NULL
> };
>
>May I suggest that .py and .pl would be sensible extensions on Windows?
>
>
You may, but I disagree. We should either support the lowest common
denominator for executables on Windows platforms (which we're doing
now), or support _all_ registered executable extensions, either via the
%PATHEXT% envoronment variable, or based on information in the registry.

I'd support including a patch for the latter solution in 1.0.1, if the
implementation is reasonably isolated from non-platform-specific code.

-- 
Brane Čibej   <brane_at_xbc.nu>   http://www.xbc.nu/brane/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Feb 19 17:40:01 2004

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

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