You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "Srilakshmanan, Lakshman" <la...@police.vic.gov.au> on 2007/07/20 09:17:51 UTC

commit-access-control.pl '-' is not recognized

Hi All,

I have a pre-commit.bat that wraps a commit-access-control.pl

The pre-commit.bat file contains
C:\Perl\bin\perl C:\Subversion\repo\hooks\commit-access-control.pl %1 %2
C:\Subversion\repo\hooks\commit-access-control.cfg

When I commit a change I get the following error
commit-access-control.pl '-' is not recognized as an internal or
external command, operable program or batch file.
C:\Subversion\repo\hooks\commit-access-control.pl: '..............-t
26-1' failed with no output.

I have tested commit-access-control.pl under Linux in my last job and it
did work.

I found one reference to this problem
http://svn.haxx.se/users/archive-2004-11/0929.shtml but it does not
appear to be the issue in my case.

Any help is greatly appreciated.

Thanks
Lakshman


=======================================================
The information contained in this email and any files attached may
be confidential information to the intended recipient and may be
the subject of legal professional privilege or public interest immunity.

If you are not the intended recipient, any use, disclosure or copying is
unauthorised.

If you have received this document in error please telephone 1300 307 082

*******************************************************************
This footnote also confirms that this email message has been swept
for the presence of computer viruses.
*******************************************************************

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


Re: commit-access-control.pl '-' is not recognized

Posted by boomtown15 <bo...@msn.com>.
I had the exact same problem and I was able to alleviate it by making sure
commits were asking for an author.  The problem was that when I upgraded to
use CollabNet Subversion 1.5.1 my original httpd.conf that had all the
configuration was overwritten by the default on install.  What I had to do
was make sure this section of my httpd.conf was updated correctly so
Subversion would prompt for an author on commits:
----------------------------------------------------
<Location /svn>
  Dav svn
  SVNParentPath C:/SVN/repos
  SVNListParentPath On

  AuthName "SVN Server"
  AuthType SSPI
  SSPIAuth On
  SSPIAuthoritative On
  SSPIDomain mydomain
  SSPIofferBasic On
  Require valid-user

 AuthzSVNAccessFile C:/SVN/conf/authz
</Location>
-----------------------------------------------------

After changing this section and adding the modules to the top of httpd.conf
and restarting Apache I was able to successfully use the
commit-access-control.pl script.  If you are still having problems make sure
to check out your Apache error log.



Srilakshmanan, Lakshman wrote:
> 
> Hi All,
> 
> I have a pre-commit.bat that wraps a commit-access-control.pl
> 
> The pre-commit.bat file contains
> C:\Perl\bin\perl C:\Subversion\repo\hooks\commit-access-control.pl %1 %2
> C:\Subversion\repo\hooks\commit-access-control.cfg
> 
> When I commit a change I get the following error
> commit-access-control.pl '-' is not recognized as an internal or
> external command, operable program or batch file.
> C:\Subversion\repo\hooks\commit-access-control.pl: '..............-t
> 26-1' failed with no output.
> 
> I have tested commit-access-control.pl under Linux in my last job and it
> did work.
> 
> I found one reference to this problem
> http://svn.haxx.se/users/archive-2004-11/0929.shtml but it does not
> appear to be the issue in my case.
> 
> Any help is greatly appreciated.
> 
> Thanks
> Lakshman
> 
> 
> =======================================================
> The information contained in this email and any files attached may
> be confidential information to the intended recipient and may be
> the subject of legal professional privilege or public interest immunity.
> 
> If you are not the intended recipient, any use, disclosure or copying is
> unauthorised.
> 
> If you have received this document in error please telephone 1300 307 082
> 
> *******************************************************************
> This footnote also confirms that this email message has been swept
> for the presence of computer viruses.
> *******************************************************************
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/commit-access-control.pl-%27-%27-is-not-recognized-tp11704869p19058888.html
Sent from the Subversion Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

RE: commit-access-control.pl '-' is not recognized

Posted by "Srilakshmanan, Lakshman" <la...@police.vic.gov.au>.
 Hi All,

Further investigation reveals the 'SAFE_READ' while loop is causing the
problem as shown below.
While (<SAFE_READ>)
{
   chomp;
   push(@output, $_);
}

I tried running the script from command line,as shown below, to no avail
(I got the same error)
C:\Perl\bin\perl C:\Subversion\repo\hooks\commit-access-control.pl
"C:/repositories/myReop" "26"
C:\Subversion\repo\hooks\commit-access-control.cfg

Could anyone using this script successfully, on windows, please assist
me. I would appreciate if you could give me a copy of your script.

Thanks in advance for your help.

Thanks
Lakshman
-----Original Message-----
From: Srilakshmanan, Lakshman
[mailto:lakshman.srilakshmanan@police.vic.gov.au] 
Sent: Friday, 20 July 2007 7:18 PM
To: users@subversion.tigris.org
Subject: commit-access-control.pl '-' is not recognized 

Hi All,

I have a pre-commit.bat that wraps a commit-access-control.pl

The pre-commit.bat file contains
C:\Perl\bin\perl C:\Subversion\repo\hooks\commit-access-control.pl %1 %2
C:\Subversion\repo\hooks\commit-access-control.cfg

When I commit a change I get the following error
commit-access-control.pl '-' is not recognized as an internal or
external command, operable program or batch file.
C:\Subversion\repo\hooks\commit-access-control.pl: '..............-t
26-1' failed with no output.

I have tested commit-access-control.pl under Linux in my last job and it
did work.

I found one reference to this problem
http://svn.haxx.se/users/archive-2004-11/0929.shtml but it does not
appear to be the issue in my case.

Any help is greatly appreciated.

Thanks
Lakshman


=======================================================
The information contained in this email and any files attached may be
confidential information to the intended recipient and may be the
subject of legal professional privilege or public interest immunity.

If you are not the intended recipient, any use, disclosure or copying is
unauthorised.

If you have received this document in error please telephone 1300 307
082

*******************************************************************
This footnote also confirms that this email message has been swept for
the presence of computer viruses.
*******************************************************************

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org



=======================================================
The information contained in this email and any files attached may
be confidential information to the intended recipient and may be
the subject of legal professional privilege or public interest immunity.

If you are not the intended recipient, any use, disclosure or copying is
unauthorised.

If you have received this document in error please telephone 1300 307 082

*******************************************************************
This footnote also confirms that this email message has been swept
for the presence of computer viruses.
*******************************************************************

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org