标签归档: svn

Subversion SVN 分支 (Trunk/Branch/Tag) 在WEB项目中如何应用?

Trunk = 主干,包含所有开发代码
Branch = 分支其实是主干的copy(svn copy URL URL)。通常用来添加新功能、修改bug、创建发行版等。
Tag = 标记,通常用来做milestone标记,mark某个版本,比如bugfix前后的版本。
以上3个名词其实是版本管理中都概念,在svn中并没有对应功能实现。branch、tag实际上都是用svn copy实现。

感觉svn还是不太适合这种更新频繁的项目。
参考文章

SVN: How to structure your repository

http://ariejan.net/2006/11/24/svn-how-to-structure-your-repository/

SVN: How to release software properly

http://ariejan.net/2006/11/21/svn-how-to-release-software-properly/

Organizing, managing and deploying PHP projects in subversion (SVN)

http://www.ericbieller.com/2011/02/04/organizing-managing-and-deploying-php-projects-in-subversion-svn/

Read: 104

修复zsh svn1.7 自动完成的问题

更新svn(subversion)到1.7后 zsh 的svn自动完成就傻X了。

错误: _arguments:comparguments:312: invalid argument: [–cl]:arg:

修改方法

打开文件:/usr/share/zsh/4.3.11/functions/_subversion

找到35行左右

${=${${${(M)${(f)”$(LC_ALL=C _call_program options svn help $cmd)”#(*Valid options:|(#e))}:#* :*}%% #:*}/ (arg|ARG)/:arg:}/(#b)-([[:alpha:]]) \[–([a-z-]##)\](:arg:)#/(–$match[2])-    $match[1]$match[3] (-$match[1])–$match[2]$match[3]}

改为

${=${${${(M)${(f)”$(LC_ALL=C _call_program options svn help $cmd)”#(*Valid options:|(#e))}:#* :*}%% #:*}/ (arg|ARG)/:arg:}/(#b)(-##)([[:alpha:]]##) \[–([a-z-]##)\](:arg:)#/(-    -$match[3])$match[1]$match[2]$match[4] ($match[1]$match[2])–$match[3]$match[4]}

 

参考资料:

http://www.zsh.org/mla/workers/2011/msg01448.html

Read: 281