曾经需要解析SVN日志某个日期由特定用户提交的文件? [英] Ever need to parse the svn log for files committed by a particular user since a certain date?
本文介绍了曾经需要解析SVN日志某个日期由特定用户提交的文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如果因此下面的一行代码利用AWK可能提供有用的模板
SVN的日志-v -r {} 2009-05-21:HEAD | awk的'/ ^ R [0-9] + / {用户= $ 3} / yms_web / {如果(用户==乔治){打印$ 2}}'|排序| uniq的
解决方案
您可以将它添加到的有用的命令行SVN范例。
If so the following one-liner utilizing awk might provide a useful template
svn log -v -r{2009-05-21}:HEAD | awk '/^r[0-9]+ / {user=$3} /yms_web/ {if (user=="george") {print $2}}' | sort | uniq
解决方案
You could add this to the list of useful command-line svn examples.
这篇关于曾经需要解析SVN日志某个日期由特定用户提交的文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文