Does anybody now a quick way to ask svn the list of the top n most recent filenames added the last commits?
+1
A:
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.
splash
2010-09-16 14:12:24
Use -v option it set verbose mode, it will show you files.
Gadolin
2010-09-16 14:19:24
Thanks Gadolin. I missed that.
splash
2010-09-16 14:20:34
A:
You might also be interested in this question about generating an RSS feed from SVN
Hugh Brackett
2010-09-16 14:40:15