svn 服务器禁止提交指定的文件
Contents
都8102年了,还是有这么多的公司使用SVN
我们公司在生产环境中使用svn对外网进行版本管理,因为每台服务器的配置文件是独立的,这就要求不允许上传配置文件,简单看了一下svn的 hooks功能,实现了禁止上传某些文件
下面直接贴出代码
|
|
svnlook 还有这么多用法,可以参考上面的思路定制更多有意思的事情
$ svnlook help
general usage: svnlook SUBCOMMAND REPOS_PATH [ARGS & OPTIONS …]
Note: any subcommand which takes the ‘–revision’ and ‘–transaction’
options will, if invoked without one of those options, act on
the repository’s youngest revision.
Type ‘svnlook help ’ for help on a specific subcommand.
Type ‘svnlook –version’ to see the program version and FS modules.
Available subcommands:
author
cat
changed
date
diff
dirs-changed
filesize
help (?, h)
history
info
lock
log
propget (pget, pg)
proplist (plist, pl)
tree
uuid
youngest
|
|