According to the Subversion Tips wiki:

Q: I'm getting the error: "'pre-commit' hook failed with error  
output". What do I do?

A: For every file you're trying to commit, three things must be true:

1) It must contain "Copyright 2006 Laszlo Systems".

2) It must have the svn:eol-style set to native, which you do by svn  
propset svn:eol-style native foo.lzx

3) It must have its mime-type set, much the same, svn propset  
svn:mime-type text/plain foo.lzx

This takes care of 1:

<!-- * H_LZ_COPYRIGHT_BEGIN  
*********************************************** -->
<p class="copyright">Copyright 2006 Laszlo Systems, Inc.</a>
All Rights Reserved. Unauthorized use, duplication or
distribution is strictly prohibited. This is the proprietary
information of Laszlo Systems, Inc. Use is subject to license terms.</p>
<!-- * H_LZ_COPYRIGHT_END  
************************************************* -->

This takes care of 2:

Laszlo-Systems-Computer:~/src/svn/openlaszlo/trunk laszlosystems$ svn  
propset svn:eol-style native /Users/laszlosystems/src/svn/openlaszlo/ 
trunk/docs/installation/install-instructions.html
property 'svn:eol-style' set on '/Users/laszlosystems/src/svn/ 
openlaszlo/trunk/docs/installation/install-instructions.html'

This takes care of 3:

Laszlo-Systems-Computer:~/src/svn/openlaszlo/trunk laszlosystems$ svn  
propset svn:mime-type text/plain /Users/laszlosystems/src/svn/ 
openlaszlo/trunk/docs/installation/install-instructions.html
property 'svn:mime-type' set on '/Users/laszlosystems/src/svn/ 
openlaszlo/trunk/docs/installation/install-instructions.html'

So this should work now:

Laszlo-Systems-Computer:~/src/svn/openlaszlo/trunk laszlosystems$ svn  
commit /Users/laszlosystems/src/svn/openlaszlo/trunk/docs/ 
installation/install-instructions.html --username frisco --password  
********

Log message unchanged or not specified
a)bort, c)ontinue, e)dit
c
Sending        docs/installation/install-instructions.html
Transmitting file data .subversion/libsvn_client/commit.c:873:  
(apr_err=165001)
svn: Commit failed (details follow):
subversion/libsvn_ra_dav/util.c:826: (apr_err=165001)
svn: MERGE request failed on '/openlaszlo/trunk/docs/installation'
subversion/libsvn_ra_dav/util.c:389: (apr_err=165001)
svn: 'pre-commit' hook failed with error output:

--
Frisco Del Rosario
Tester, OpenLaszlo and IDE4Laszlo



_______________________________________________
Laszlo-dev mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-dev

Reply via email to