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

Re: Wrong date/time in "svn log" output

From: Greg Thomas <thomasgd_at_omc.bt.co.uk>
Date: 2005-12-06 18:02:22 CET

On Tue, 6 Dec 2005 17:45:47 +0100, "Brandt, Servatius"
<Servatius.Brandt@fujitsu-siemens.com> wrote:

>Could this
>be changed to a Windows-like behaviour? Instead of trying just ".bat"
>and ".exe", each extension listed in the $PATHEXT should be tried. The
>Windows cmd.exe works this way.

How about the attached pre-commit.bat file - it just looks for all
pre-commit*.pl files and runs each of them. It's easy enough to change
for python files, too.

 set PERL=C:\Perl\bin\perl.exe

 set EXIT_CODE=0
 for %%I in ("%~dp0/pre-commit-*.pl") do %PERL% %%I %1 %2 & if ERRORLEVEL 1 set EXIT_CODE=1

 exit %EXIT_CODE%

I've got an equivalent bash script, too as I don't keep all my commit
hooks in the same file.

Greg

-- 
This post represents the views of the author and does
not necessarily accurately represent the views of BT.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Dec 6 18:09:50 2005

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.