Reputation: 648
How can you get a copy of the source code from the server on a new machine, but preserve the file time stamps?
With the following procedure, all the time stamps are set to the current date/time.
hg init
Is there an option, or different procedure that will preserve the time stamps?
In this specific case, using Kiln with TortoiseHg.
Upvotes: 8
Views: 1806
Reputation: 96767
You could use the Timestamp extension, if creating new "reference" timestamps will not be a problem. From its website:
It does this by means of a database file .hgtimestamp, residing in the repo's root and thus being versioned.
Other than this, I don't think it's possible.
I've read a little about Timestamp hook, and it seems to be exactly what you need.
Upvotes: 6