开发者

quickly see latest committed file names in svn

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜