Change author of old commits in Subversion

前端 未结 4 531
渐次进展
渐次进展 2020-12-29 03:20

I have a user that has, up until today, been called foo.bar. Now that user will be known as fb instead from here on. But I would like to up

4条回答
  •  情书的邮戳
    2020-12-29 03:59

    Insert the following into your pre-revprop-change.bat (by opening it in notepad) in a folder called something like this (depending on your configuration) C:\ASP.NET Projecten\ProjectX\hooks

    set magProperyWijzigen = false;
    :: Only allow the log message and author to be changed.
    if("%propertyName%" == "svn:author") magProperyWijzigen = true;
    if("%propertyName%" == "svn:log") magProperyWijzigen = true;
    
    if "%magProperyWijzigen%" == "false" goto ERROR_PROPNAME
    

提交回复
热议问题