You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by x nooby <xn...@yahoo.com> on 2005/10/04 13:51:07 UTC

How-To Add check-case-insensitive.py Script to Subversion On Windows

   How-To Add check-case-insensitive.py Script to
Subversion On Windows


   Get these files:
     
http://subversion.tigris.org/files/documents/15/25364/svn-1.2.3-setup.exe
     
http://subversion.tigris.org/files/documents/15/25193/svn-win32-1.2.3_py.zip
     
http://www.python.org/ftp/python/2.3.5/Python-2.3.5.exe
     
http://svn.collab.net/repos/svn/trunk/contrib/hook-scripts/check-case-insensitive.py


   Install Subversion 1.2.3
   Install Python 2.3.5
   Unzip   svn-win32-1.2.3_py.zip


   Copy the unzipped directory 
      svn-win32-1.2.3
   to inside directory
      C:\Python23\Lib\site-packages\


   Copy all DLLS from 
      C:\Program Files\Subversion\bin\*.dll
   to
     
C:\Python23\Lib\site-packages\svn-win32-1.2.3\python\libsvn\


   Copy the file
      check-case-insensitive.py
   to directory
      c:\svnrepo\hooks\


   Edit definition of SVNLIB_DIR in file:
      check-case-insensitive.py
   to
      SVNLIB_DIR =
r"C:/Python23/Lib/site-packages/svn-win32-1.2.3/python/"


   Add/Create the file
      c:\svnrepo\hooks\pre-commit.bat
   Add these lines
      c:\python23\python
c:\svnrepo\hooks\check-case-insensitive.py %1 %2
      if errorlevel 1 goto :ERROR
      exit 0
      :ERROR
      echo Error found in commit 1>&2
      exit 1


   Test by checking out a repo to two different
directories
   Create, add, and commit a file with an UPPERCASE
name in first directory
   Create, add, and commit a file with a lowercase
name in second directory
   The second commit will fail with this message:
      Adding         sales\sale1.cpp
      Transmitting file data .svn: Commit failed
(details follow):
      svn: 'pre-commit' hook failed with error output:
      Case conflict:
svnrepo/acme/trunk/sales/sale1.cpp
      Error found in commit
   Delete the UPPERCASE file with an "svn rm svn://.."
command
   The second commit can now go through



		
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

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