[问答] SVN查看某个用户的提交记录

来源:互联网 发布:mac粉底液怎么样 编辑:程序博客网 时间:2024/06/05 05:48

在使用svn的时候,想要查询自己提交的记录怎么做呢?或者查询某个人的提交日志的方法是什么呢?

查询指定用户的svn log,这里总结2个方法

1.8 版本以前

svn client 1.8版本之前,使用sed 命令

svn log | sed -n '/USERNAME/,/-----$/ p' 

USERNAME 替换成要过滤的用户名

1.8 版本和以后版本

svn client 1.8 之后提供了一个选项 --search

svn log --search lzz -l 50

上面的命令是查询最近50条commit log中 lzz用户的日志。

search 不仅可以根据用户过滤,也可以根据 日期,提交信息来过滤 svn log,还提供了通配符的方式

--search ARGFilters log messages to show only those that match the search pattern ARG. Log messages are displayed only if the provided search pattern matches any of the author, date, log message text (unless --quiet is used), or, if the --verbose option is also provided, a changed path. If multiple --search options are provided, a log message is shown if it matches any of the provided search patterns. If --limit is used, it restricts the number of log messages searched, rather than restricting the output to a particular number of matching log messages.The search pattern (also called glob or shell wildcard pattern) can contain regular characters and the following wildcard characters:?Matches any single character.*Matches a sequence of arbitrary characters.[ABC]Matches any of the characters listed inside the brackets.

文档地址

0 0
原创粉丝点击