Getting TortoiseSVN to set a file's modified time to the timestamp of the latest revision

南楼画角 提交于 2019-12-03 15:04:16

问题


I seem to remember being able to get TortoiseSVN to set the last-modified timestamp for files to the timestamp from the revision when performing an update. So if someone committed a file five days ago and I update it, the modified timestamp will be five days ago, not today.

Where is the option?


回答1:


When I go to the Settings option in the TortoiseSVN menu, I see an option to "Set file dates to the last commit time." This may be what you're looking for.

Invoke the Settings option

Set the option




回答2:


I am not sure if Tortoise uses the SVN client as a backend, but if it does, there is an option in the Subversion configuration file:

use-commit-times = yes

Sorry if this doesn't apply on your platform, but I'll mention it anyway. It works for those using the SVN command-line client.



来源:https://stackoverflow.com/questions/945200/getting-tortoisesvn-to-set-a-files-modified-time-to-the-timestamp-of-the-latest

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