Change the timestamp of an SVN revision

后端 未结 4 721
春和景丽
春和景丽 2020-12-05 20:18

We had a power failure that exhausted our UPS and subsequently shutdown our SVN machine. When it booted back up it, the system time was incorrect.

Unfortunately, thi

相关标签:
4条回答
  • 2020-12-05 20:35

    The date/time is a property of the revision. Figure out the revision number (or use HEAD), and modify it with propset or propedit and --revprop.

    svn propset svn:date 'YYYY-MM-DDTHH:MM:SS.MMMMMMZ' --revprop -r HEAD /path/to/wc/file
    

    You'll have to play around with it to get the right combination of settings. You can also look at the Red Book, under Advanced Properties. (I linked to 1.4, adjust to suit your version).

    0 讨论(0)
  • 2020-12-05 20:54

    In addition, when using TortoiseSVN, the log is cached, and you have to delete the cache for the TortoiseSVN log on the client to reflect the changes on the server. See Tortoise SVN Log messages does not update

    0 讨论(0)
  • 2020-12-05 20:59
    1. Enable revision property change hook
    2. Modify svn:date property, using svnlook date if you need.
    0 讨论(0)
  • 2020-12-05 21:00

    Change the svn:date property of the revision:

    svn propset -rXXX --revprop svn:date "2008-03-10T03:00:00.000000Z" repository
    

    Or using TortoiseSVN, Show log -> Right click on the revision -> Show revision properties:

    You will need for that the pre-revprop-change hook, a empty shell script or batch file will do the work.

    0 讨论(0)
提交回复
热议问题