Roll back or revert entire svn repository to an older revision

前端 未结 14 1398
时光取名叫无心
时光取名叫无心 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:34

    Example:
        Rev 100 all is working great        
        Rev 101 somebody really corrupted the dir structure and / or merged in bad changes, etc.
        Rev 102 You delete /trunk
        Rev 103 You copy /trunk@100 to HEAD
            You now have a /trunk that reflects only Rev 100 and 103. Not 101 or 102.
    
    svn del svn://[RepoName]/trunk -m "removing issue in HEAD"
    svn copy svn://[RepoName]/trunk@100 svn://[RepoName]/trunk -m "Copy of correct revision of trunk to HEAD"
    

提交回复
热议问题