SVN commit with old date/time

后端 未结 3 1835
忘了有多久
忘了有多久 2020-12-03 15:15

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

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-03 15:59

    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.

提交回复
热议问题