Version of the svn rollback version Library

Source: Internet
Author: User
Tags tortoisesvn

Roll back the version in the version Library

Use version log dialog box

To restore a version or version range change, use the version log dialog box. This method can also be used to cancel several recent changes and change a previous version to the latest version.

  1. Select the file or folder for recovery. To restore all changes, select the top-level folder.

  2. Select tortoisesvn → display logs to display the published list. You may need to use the show all or button 100 to display the version you want to restore.

  3. Select the version to be restored. If you want to restore a version range, select the first version you want to restore, press shift, and select the last version you want to restore. Note: When multiple versions are restored, these versions must be continuous in the list. Right-click the selected version (segment) and choose right-click> restore version changes.

  4. If you want to change a previous version to the latest version, right-click the selected version (range) and choose right-click> restore to this version. You can undo the selected versionAll.

The working copy has been restored to the status before the change. Check the recovery result and submit the change.

Use merge dialog box

You can use the merge dialog box to undo changes within a larger version range. The previous method uses the merge mechanism in the background. In this method, we directly use the Merge function.

  1. On the Work copy, select tortoisesvn → merge.

  2. In the start: text box, enter the URL of the branch or tag of the change to be restored. It will also be used as the default URL.

  3. Enter the version number of the current working copy in the Start version text box. If you can ensure that no one else will submit the change, you can use the latest version.

  4. Make sure that the URL check box with "Start:" is in the selected status.

  5. Enter the version number to be restored in the end version. For exampleBeforeA version number.

  6. Click merge to complete the merge operation.

The working copy has been restored to the status before the change. Check the recovery result and submit the change.

Use svndumpfilter

Because tortoisesvn will never discard data, those rolled back versions will still be retained in the version library in the form of intermediate versions. Only the latest version has returned to the previous status. If you want to completely remove some versions in the version library and erase all traces of these versions, you must take more extreme measures.Not recommendedUnless there is a good reason to use this method. For example, someone submits a confidential file to a public version library.

The only way to delete data from the version library is to usesvnadminThis subversion command line tool. For more information, seeVersion Library maintenance.


Reference: http://svndoc.iusesvn.com/tsvn/tsvn-howto-rollback.html

From: http://chen.junchang.blog.163.com/blog/static/634451920116502430387/

1. Local Deletion
Local deletion means that a file is deleted on the client, but no commit exists. Use revert to cancel the deletion.
Ii. Server Deletion
1. submit it to the server after local Deletion
A) update the previous version, but it is only applicable when there are few changes;
B) Use show log to find the deleted item, select it, and right-click-> revert changes from this revision;

2. Delete in repo-Browser
The deletion is very powerful, so you will not be able to see the deleted items in the repo-browser. In fact, the project is not actually deleted.
A) the local project still exists. Right click-> tortoisesvn-> Update to revision, enter the revision when the project is deleted, click OK, and then import it.
B) the local project is gone.
Right-click-> tortoisesvn-> export ..,
URL of repository fill in the Project address;
Export Directory: Enter the path to be backed up;
One revision item. The default value is head revision, but this item cannot be selected here. Because the project has been deleted, head revision is only valid for existing projects. It is best to remember the versions before deletion. If you forget it, read it one by one until you find the desired version.
Click OK. If this directory does not exist, you will be prompted to create one. After you confirm, you will be OK.

From: http://www.blogjava.net/i369/articles/205321.html

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.