Hi,
Subversion exports the repository Files with the current datetime.
Is there an option for subversion to export files with commitdate?
In Registry the is an option:
HKEY_CURRENT_USER\Software\Tigris.org\Subversion\Config\miscellany
use-commit-times=yes
How i can set this option with Continua CI?
Hi Sascha I.,
I’m afraid not. Continua CI uses your Subversion client to update the files in the repository cache so it will take the registry setting into account when running the svn update and checkout commands.
The issue, however, is that we use a Mercurial repository to distribute the files to the agents and the Mercurial sets the file date/time to the current date/time when exporting the files using the archive command.
We could possibly change this using an extension to set the file date/time to that of the revision in the Mercurial repository, but this will still not be the same as the Subversion commit date. The only way around this would be to keep a store of file date/times in the repository and touch the files when exporting but I’d imagine this would also slow things down a bit.
Can you share your reason for keeping the original source file dates? Generally in a build system, you would only care about the date/times of the output files or artifacts?