如何获取 svn 日志但排除分支添加信息?就像下面'svn log -v --stop-on-copy'的输出如何避免-r101?我正在尝试将其重定向到一个临时文件,然后只获取文件添加/修改/删除的详细信息。所以只需要没有分支创建修订的日志详细信息。
svn log -v local/svn/demo/branches/Fix --stop-on-copy
------------------------------------------------------------------------
r105 | user4 | 2013-05-24 16:27:11 -0400 (Fri, 24 May 2013) | 1 line
Changed paths:
M /branches/Fix/Code/Environment/RT/properties/build.properties
ticket-9
------------------------------------------------------------------------
r104 | user4 | 2013-05-24 16:27:07 -0400 (Fri, 24 May 2013) | 1 line
Changed paths:
M /branches/Fix/Code/Environment/DEV/properties/build.properties
ticket-7
------------------------------------------------------------------------
r103 | user2 | 2013-05-24 15:27:25 -0400 (Fri, 24 May 2013) | 2 lines
Changed paths:
M /branches/Fix/Code/SharedApp/src/gov/illinois/ies/business/rules/ed/CorticonFinIncomeEntiyLoader.java
ticket-2
------------------------------------------------------------------------
r102 | user1 | 2013-05-24 15:19:54 -0400 (Fri, 24 May 2013) | 2 lines
Changed paths:
M /branches/Fix/Code/BEAN/Framework/ejbModule/gov/illinois/ies/business/rules/entities/fin/Income.java
ticket-2
------------------------------------------------------------------------
r101 | user4 | 2013-05-24 12:46:12 -0400 (Fri, 24 May 2013) | 3 lines
Changed paths:
A /branches/Fix (from /tags/2013-05-24T08:00:01.187-04:00_DEV_branch_WP_BUILD:100)
ticket-1
Re-creating the WP_Fix branch for 8AM tag
进一步更新: -- 现在我正在运行这个 :::
svn log "$src_url" --stop-on-copy | grep -B 2 "$ticket" | grep "^r" | cut -d"r" -f2 | cut -d" " -f1 | sort -r
我的输出是:
105
104
103
102
101
预期输出:
105
104
103
102