Roll back or revert entire svn repository to an older revision

前端 未结 14 1380
时光取名叫无心
时光取名叫无心 2020-12-04 06:53

I messed up on my SVN repository and now need to revert the entire repository from revision 28 to 24 and don\'t want to deal with diffs or conflicts. Is there a quick and si

14条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-04 07:38

    If you really need to wipe 'evidence' that the files ever existed, you need to do the svndump/svnload actions described above.

    In a 'normal' situation, where you made a mistake, you need to use reverse merge. This make sure that undoing the changes after r24 can also be reverted, diffed, etc.

    The command below should work to undo your changes (you need to commit the result of the merge to reflect the merge in the repository)

    svn merge -r 28:24
    

提交回复
热议问题