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

Re: Return code of pre-revprop-change hook ignored in some cases

From: Juanma Barranquero <jmbarranquero_at_wke.es>
Date: 2004-02-16 16:26:37 CET

Three days ago, I said:

> --------------- example starts here -----------------
> @rem = '
> @echo off
> perl.exe -x -S "%0" %1 %2 %3 %4
> goto endofperl
> @rem ';
> #!perl
> exit 1;
> __END__
> :endofperl
> ---------------- example ends here ------------------

It works by doing:

  @rem = '
  @echo off
  perl.exe -x -S "%0" %1 %2 %3 %4
  exit %ERRORLEVEL%
  @rem ';
  #!perl
  exit 1;

but I don't understand why doing a goto in CMD.EXE would lose
%ERRORLEVEL, and even less why it does behave differently in
http:// setups that it does in svn:// or file:// ones.

Well, it's a moot point now, anyway.

                                                                Juanma

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Feb 16 16:26:59 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.