如何从新机器上的服务器获取源代码的副本,但保留文件时间戳?
通过以下步骤,所有时间戳都设置为当前日期/时间。
hg init
是否有选项或不同的程序可以保留时间戳?
在这种特定情况下,使用带有 TortoiseHg 的 Kiln。
最佳答案
您可以使用 Timestamp extension ,如果创建新的“引用”时间戳将不是问题。从它的网站:
It does this by means of a database file .hgtimestamp, residing in the repo's root and thus being versioned.
除此之外,我认为不可能。
我读过一点关于 Timestamp hook ,而且它似乎正是您所需要的。
关于mercurial - 如何克隆存储库并保留文件时间戳?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7809027/