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

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

From: x nooby <xnooby_at_yahoo.com>
Date: 2005-10-04 15:53:12 CEST

My ASCII file has better formatting.

Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around

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

   Get these files:

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

   Copy the unzipped directory
   to inside directory

   Copy all DLLS from
      C:\Program Files\Subversion\bin\*.dll

   Copy the file
   to directory

   Edit definition of SVNLIB_DIR in file:
      SVNLIB_DIR = r"C:/Python23/Lib/site-packages/svn-win32-1.2.3/python/"

   Add/Create the file
   Add these lines
      c:\python23\python c:\svnrepo\hooks\check-case-insensitive.py %1 %2
      if errorlevel 1 goto :ERROR
      exit 0
      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

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Oct 4 15:58:44 2005

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.