隨筆-6  評論-2  文章-0  trackbacks-0

          Using check-case-insensitive.py on Windows

          Do not use this script anymore, use case-insensitive.py which is far more efficient.

          Get these files:

          Then:

          • 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 containing 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

          Thanks to xnooby for working this out and posting these instructions to the mailing list.

          posted on 2008-09-02 18:31 vls 閱讀(257) 評論(0)  編輯  收藏

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 桐柏县| 德格县| 都昌县| 衡阳县| 修武县| 蛟河市| 吴川市| 大名县| 左云县| 叙永县| 新巴尔虎右旗| 西青区| 门头沟区| 泊头市| 昆山市| 锡林郭勒盟| 文安县| 安泽县| 黑河市| 天气| 牟定县| 通许县| 蚌埠市| 鄯善县| 湘乡市| 五常市| 昭觉县| 全椒县| 营山县| 通州区| 青阳县| 乌兰县| 平和县| 仪陇县| 南投县| 大宁县| 溧水县| 虹口区| 石门县| 佛冈县| 云龙县|