资源简介
包含内容:
邮件通知
强制写日志
禁止修改log
..............

代码片段和文件信息
#!/usr/bin/python
# -*- coding: utf-8 -*-
# ====================================================================
# Copyright (c) 2000-2005 Collab Net. All rights reserved.
#
# This software is licensed as described in the file COPYING which
# you should have received as part of this distribution. The terms
# are also available at http://subversion.tigris.org/license-1.html.
# If newer versions of this license are posted there you may use a
# newer version instead at your option.
#
# This software consists of voluntary contributions made by many
# individuals. For exact contribution history see the revision
# history and logs available at http://subversion.tigris.org/.
# ====================================================================
# This script can be called from a pre-commit hook on either Windows or a Unix
# like operating system. It implements the checks required to ensure that the
# repository acts in a way which is compatible with a case preserving but
# case insensitive file system.
#
# When a file is added this script checks the file tree in the repository for
# files which would be the same name on a case insensitive file system and
# rejects the commit.
#
# On a Unix system put this script in the hooks directory and add this to the
# pre-commit script:
#
# $REPOS/hooks/check-case-insensitive.py “$REPOS“ “$TXN“ || exit 1
#
# On a windows machine add this to pre-commit.bat:
#
# python ript>\check-case-insensitive.py %1 %2
# if errorlevel 1 goto :ERROR
# exit 0
# :ERROR
# echo Error found in commit 1>&2
# exit 1
#
# Make sure the python bindigs are installed and working on Windows. The zip
# file can be downloaded from the Subversion site. The bindings depend on
# dll‘s shipped as part of the Subversion binaries if the script cannot load
# the _fs dll it is because it cannot find the other Subversion dll‘s.
#
# If you have any problems with this script feel free to contact
# Martin Tomes: martin at tomes dot org dot uk
import sys
# Set this to point to your install of the Subversion languange bindings
# for Python:
#SVNLIB_DIR = r“C:/svnpy/svn-win32-1.2.0/python/“
SVNLIB_DIR = r“/usr/local/lib/svn-python/“
if SVNLIB_DIR:
sys.path.insert(0 SVNLIB_DIR)
import os.path
import string
from svn import fs core repos delta
# Set this True for debug output.
debug = False
# An existat of 0 means all is well 1 means there are name conflicts.
exitstat = 0
# This is stolen from the svnlook.py example. All that is not needed has been
# stripped out and it returns data rather than printing it.
class SVNLook:
def __init__(self pool path cmd rev txn):
self.pool = pool
repos_ptr = repos.open(path pool)
self.fs_ptr = repos.fs(repos_ptr)
if txn:
self.txn_ptr = fs.open_txn(self.fs_ptr txn pool)
else:
self.txn_ptr = None
if rev is None:
rev = fs.youngest_rev(self.fs_ptr pool)
self.rev = rev
def cmd_changed(self):
return self._print_tree(Change
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 2809 2009-03-18 21:23 hooks\post-commit..txt
文件 390 2009-03-18 21:23 hooks\post-commit.bat
文件 2813 2009-03-18 21:23 hooks\post-commit.tmpl
文件 1696 2009-03-18 21:23 hooks\post-lock..txt
文件 1696 2009-03-18 21:23 hooks\post-lock.tmpl
文件 2343 2009-03-18 21:23 hooks\post-revprop-change..txt
文件 2341 2009-03-18 21:23 hooks\post-revprop-change.tmpl
文件 1625 2009-03-18 21:23 hooks\post-unlock..txt
文件 1625 2009-03-18 21:24 hooks\post-unlock.tmpl
文件 3297 2009-03-18 21:24 hooks\pre-commit..txt
文件 963 2009-03-18 21:24 hooks\pre-commit.bat
文件 3297 2009-03-18 21:24 hooks\pre-commit.tmpl
文件 2115 2009-03-18 21:24 hooks\pre-lock.txt
文件 2115 2009-03-18 21:24 hooks\pre-lock..txt
文件 2764 2009-03-18 21:24 hooks\pre-revprop-change..txt
文件 455 2009-03-18 21:24 hooks\pre-revprop-change.bat
文件 2764 2009-03-18 21:25 hooks\pre-revprop-change.tmpl
文件 2062 2009-03-18 21:25 hooks\pre-unlock..txt
文件 2062 2009-03-18 21:25 hooks\pre-unlock.tmpl
文件 3195 2009-03-18 21:25 hooks\start-commit..txt
文件 3195 2009-03-18 21:25 hooks\start-commit.tmpl
文件 5199 2009-03-18 21:28 hooks\sc
文件 3089 2009-03-18 21:28 hooks\sc
文件 3083 2009-03-18 21:28 hooks\sc
文件 3089 2009-03-18 21:28 hooks\sc
文件 11552 2009-03-18 21:28 hooks\sc
文件 844 2009-03-18 21:26 hooks\sc
文件 1499 2009-03-18 21:26 hooks\sc
文件 8397 2009-03-18 21:26 hooks\sc
文件 10090 2009-03-18 21:26 hooks\sc
............此处省略29个文件信息
- 上一篇:linux下bmp图像显示
- 下一篇:E18-D80NK红外反射传感器模块说明书
相关资源
- SVNDrv.sys
- VisualSVN-VS2019V7.0解除时间限制
- VisualSVN-VS2019-7.1.2破解版
- pb源码管理SVN使用手册
- svn版本控制软件经典培训PPT教程,不
- Apache Subversion1.10.3服务端SVN
- VisualSVN Server 4.0.0 企业破解版
- VisualSVN 6.0.4 破解版(支持VS2017)
- 在eclipse中使用SVN的实现方法(图文教
- 清除svn信息
- site-1.6.5.zipeclipse 安装 svn 插件
- SVN1.8.11中文语言包 TortoiseSVN-1.8.11.26
- AnkhSvn-2.6.12735 支持VS2010-VS2015 官方原版
- AnkhSvn-2.6.12707
- TortoiseSVN-1.10.1.28295-svn-1.10.2-32位-64位和
- svn客户端64位 中文
- TortoiseSVN 1.6.9.19725 简体中文语言包
- VisualSVN7.1.2 Visual Studio 2019
- Visual SVN 4.0.2 Patch
- IIS+SVN实现本地上传服务器自动更新
- SVN项目文档管理方案1024.docx
- TortoiseSVN-1.9.2.26806-x64-svn-1.9.2 64位中文
-
svnmaven xm
l Schema等程序员必备.7z - VisualSVN.Server.v2.7.2安装包及注册机
- TortoiseSVN-1.9.4.27285-x64-svn-1.9.4 中文语言
-
svn代码检查工具(svnchecker+checkst
y - mac系统上myeclipse的svn插件
- 支持vs2010/2012/2013 的svn插件 AnkhSvn_2.
- visualsvn server3.5.3安装包+破解+web密码修
- SharpSvn.dll亲测可用
评论
共有 条评论