开发者

quickly see latest committed file names in svn

开发者 https://www.devze.com 2023-01-16 05:01 出处:网络
Does anybody now a quick way to ask svn the list of t开发者_如何学编程he top n most recent filenames added the last commits?

Does anybody now a quick way to ask svn the list of t开发者_如何学编程he top n most recent filenames added the last commits?


svn log {path} -v --limit {number}

More info: svn log

If you want only the added files you could grep them:

svn log {path} -v -l {number} | grep "^\s+A\s+"

Because the --limit parameter only limits the revisions you could use grep to count the added files for you:

svn log {path} -v | grep -m {max_count} "^\s+A\s+"

But be careful! This could take a long time, because all changes are logged to the console. So I think it's better to set a limit for svn log.

Another way is to add the --xml option and use a XSLT script to parse the added entries.


You might also be interested in this question about generating an RSS feed from SVN

0

精彩评论

暂无评论...
验证码 换一张
取 消