Change the timestamp of an SVN revision

后端 未结 4 740
春和景丽
春和景丽 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).

提交回复
热议问题