“svn”标签相关文章 »

nov 28

Apache/Subversion: SSL negotiation failed: SSL error: parse tlsext

我的 SVN 服务器升级到 FreeBSD 8.0 Release 之后,原先 Apache + SSL + Subversion 的环境,在客户端(包括 Ubuntu 9.10 和 Mac OS X 1.5.8)做任何 SVN 操作的时候,会得到标题给出的提示。

查了下,是因为 TLSv1 协议的问题,不知是 OpenSSL 的 bug 还是 Subversion 的 bug,总之无法正常工作。

修改 Apache 配置文件,屏蔽掉 TLSv1 加密方式:

SSLProtocol -ALL +SSLv3

SSLProtocol +ALL -SSLv2 -TLSv1

SSLProtocol ALL -TLSv1

反正只要没有 TLSv1 就能正常工作,经测试,暂时还未发现新问题。

dirk 发表于 2009-11-28 Saturday
oct 22
Subversion

有两个命令可以完成:

  • 客户端:
svn propset svn:log "message text" -r 1000 URL --revprop
  • 服务端:
svnadmin setlog REPOS_PATH -r REVISION FILE

但是,两者都需要设定 pre-revprop-change,仓库下 svn/hook 目录里有 pre-revprop-change.tmpl 模板,复制一份到文件 pre-revprop-change 并 chmod a+x 就可以了。

dirk 发表于 2009-10-22 Thursday
oct 02

SVN users who wish to ignore multiple files with distinct names in the same folder beware : you must use a file and batch-process.

It’s not difficult to figure out that to tell SVN to ignore a file, you could use:

svn propset svn:ignore [filename] [folder]

So if I have a file ‘settings.py’ in folder config, in the config folder I would simply type:

svn propset svn:ignore settings.py .

But what if I also have another file, say ‘me.py’, in the same folder that I want to ignore? On top of that, what if I have other files with a .py extension that I don’t want to ignore? The following will not work:

svn propset svn:ignore “settings.py me.py” .

(incorrect syntax)

svn propset svn:ignore “*.py” .

(but i don’t want to ignore some .py files)

nor would the following, because svn for some odd reason seems to only take one propset assignment from the commandline – meaning only one of the files will be ignored:

svn propset svn:ignore settings.py .
svn propset svn:ignore me.py .

turns out you must make a file with the filenames on separate lines, then call with the -F parameter. For example in the above case, I would create a file “ignore.me” with settings.py and me.py on separate lines, then call

svn propset svn:ignore -F ignore.me .

Annoying. SVN should let you set the same property on multiple files with multiple command-line calls.

dirk 发表于 2009-10-02 Friday