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

Windows Shell Kung-Fu

From: Eric Lemes <ericlemes_at_gmail.com>
Date: 2006-10-03 23:05:53 CEST

>
> > AFAIK...This problem was introduced in 1.3.0 and the best documented
> > workaround is to use a .NET executable written by Si Sshnug to launch
> the
> > process. See here for the details:
> > http://svn.haxx.se/users/archive-2006-07/0375.shtml
> >
> > Of course, alternatives using some form of Windows shell kung-fu would
> be
> > better. :)
>
> right, so would it be correct to re-open this ticket, then ?
> it used to work on all platforms prior to 1.3.0 and since that
> apparently only works on non-windows.
>

Here I solved the problem using two scripts:

post-commit.bat
============

set REPOS=%1
set REV=%2
SET PATH=C:\PERL\BIN;c:\windows\system32;
SET OS=Windows_NT
SET SystemRoot=C:\WINDOWS

start cmd /c c:\svn\myrepos\hooks\emails.bat

emails.bat (perl c:\perl\bin\svnnotify don't spam a new line.)
===========================================
perl c:\perl\bin\svnnotify --repos-path %REPOS% -r %REV% --to
myemail@myprovider.com -H HTML::ColorDiff -d --from
svn@myprovider.com--subject-cx --subject-prefix "[SVN]" --charset
cp850 --io-layer raw
Received on Tue Oct 3 23:06:48 2006

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

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