开发者

Original modified datetime on local files after Update in TortoiseHG / Mercurial

I'm running TortoiseHG 2.1.3 on Windows 7.

Is it possible to "Update" a repository to a particular point in the past and force the local files that are retrieved to have a modified date/time identical to that of when they were committed?

At the moment, if I "update" to a previous point in time, all the file involved are given a modified date/time of "now". I understand why this is happening as to make sure the IDE builds using the correct files (when it checks to see what has changed since the last build).

This isn't a major problem, but causing me a bit of headache when I'm trying to work out the latest file开发者_高级运维s that are required.


I think hg archive (from command line) will do something along the lines of what you want.

EDIT: It seems as of: Mercurial Distributed SCM (version 3.0.1)

That the date/timestamps of all archive files are set to the requested revision date, not to the date/timestamp of most recent commit for a given file. Not the most useful thing. It sure seems like this is a change from how it used to work.

See this extension for one possible solution currently:

https://bitbucket.org/esskov/hg_timestamp_update/wiki/Home


For the record, the answer is simply "no".

Mercurial does not currently save the modified date-time of the file.

And when you update, files are set to current date-time. It's possible with extensions (as mentioned in the other answer) to get them set to different date-times such as that of a revision, but the original modified date-time is gone.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜