How to view the entire set of changes made to svn for the last 'n' days?

不问归期 提交于 2019-12-24 11:40:07

问题


How to view the entire set of changes made to svn for the last 'n' days?. I couldn't find a reference in the document though


回答1:


You can specify dates for svn log to operate on, so if you want the last n days you only need to calculate the date of n days before today, then feed it to svn like this:

svn log -r "{2010-05-23}:HEAD"

See also the output of svn log -h for details on the log options.




回答2:


In the TortoiseSVN log dialog, you can either filter the already fetched and shown revisions by date with the date buttons on the top left, or you can use the "Show all" button on the bottom left and use the "Show Range" button menu. In the range dialog, you can enter the date range to fetch the log entries for in the svn date format. For example:

{"2002-02-17 15:30"}



回答3:


Depending on your client you could use the Blame utility and use an old revision of the file you wanted to look at. It would show who made the changes and at what revision. Like webdestroya said SVN works on revisions so although you won't be able to see the exact date there will still be a timeline.

If your using the command line then its svn blame or svn annotate




回答4:


You can do this as well..

>backdate=\`date +%Y-%m-%d --date="10 days ago"\` ; svn log -r "{$backdate}:HEAD"


来源:https://stackoverflow.com/questions/2926710/how-to-view-the-entire-set-of-changes-made-to-svn-for-the-last-n-days

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!