如何在Subversion上保留原始文件[commit]时间戳? [英] How can I keep the original file [commit] timestamp on Subversion?

查看:430
本文介绍了如何在Subversion上保留原始文件[commit]时间戳?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想确保如果我在一台机器上在Subversion中提交了一些东西,而另一个机器则检出,我将获得与datetime和timestamp相同的值。

I want to be sure that if I commit something in Subversion from one machine, and I checkout on another, I will get the same value for datetime and timestamp.

目前,我观察到文件修改的日期时间是从我进行同步而不是原始值的时候。

Currently, I observed that the datetime of file's modification is from the moment when I did the synchronisation instead of the original value.

对我来说,它没有任何感觉知道文件何时同步 - 我只想看到最后一个提交时间。

For me, it doesn't make any sense to know when the files were synchronised - I just want to see the last commit time.

此问题不是时区相关。

推荐答案

您可以在 .subversion / config 中设置

[miscellany]
use-commit-times = yes

尽管如果我们在谈论源文件,你会有奇怪的副作用。

Although you will have strange side effects if we are talking about source files.

例如,你构建你的软件,并做 svn update 。现在,更新的文件的时间戳记比构建结果文件的时间戳更早,即使某些源文件更改,它也不会被重建。这个设置非常小心。

For example, you build your software and do svn update. Now the timestamp of the updated files is older than the timestamp of the build result file, and it won't be rebuilt even though some source files changed. Be very careful with this setting.

这篇关于如何在Subversion上保留原始文件[commit]时间戳?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆