Is there some way how to commit into the SVN repository with old time / date or how to edit the time / date post commit?
I have some archived sources which are very
What I did eventually was:
svnadmin dump
the repositorysvnadmin load
The steps above seem easier to me than installing the pre-revprop-change
hook. (The one we currently have in place allows editing log message only.)
Note: instead of changing system date it would be also possible to edit the date in the dump file before loading it.
Each revision has a property, svn:date
. If you have permission to modify unversioned properties, you can change that value.
The date and time is in the "special" revision property, svn:date. You can modify it as so:
svn propedit svn:date --revprop -r 12345
or:
svn propset svn:date --revprop -r 12345 2009-02-12T00:44:04.921324Z
The revision (e.g. 12345
above) can also be HEAD
meaning the latest revision.
The date is specified in ISO 8601 format.
You will need the repository to have the appropriate pre-revprop-change hook set up (in the hook
directory in the repository) to allow svn:date
to be modified. The templates that are provided with SVN repositories should be helpful.