SVN - reject, change and revert to previous version

前端 未结 2 1660
花落未央
花落未央 2021-01-28 04:48

We have an SVN repository with a few users. One of the users accidently deleted a directory and checked in the change.

I could just check out an older version of the di

相关标签:
2条回答
  • 2021-01-28 05:04

    If you are using the command line, the typical method is to do a "reverse merge". For example, if version 125 was the checkin that deleted the directory, then you would execute a command like this: svn merge -r 125:124. This will cause subversion to pull the directory out of the history and drop it into the working copy. Once you verify that everything is correct, you can issue a commit and put the directory back into subversion.

    0 讨论(0)
  • 2021-01-28 05:15

    If you are using TortoiseSVN, it implements a "rollback" feature. Here's the documentation: http://tortoisesvn.net/docs/nightly/TortoiseSVN_en/tsvn-howto-rollback.html.

    If you use another client, you can still do this manually. You may want to check out this link: http://svnbook.red-bean.com/en/1.5/svn.branchmerge.basicmerging.html#svn.branchmerge.basicmerging.resurrect

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