Method 1: Using the SVN merge
1 First SVN up, to ensure that updates to the latest version, such as 20;
2 then use the SVN log to view the history changes and find the version to restore, such as 10. If you want a more detailed understanding of the situation, you can use SVN diff-r 10:20 [file or directory];
3 rollback to version number 10:SVN merge-r 20:10 [file or directory], note the order between version number, this is called reverse merging;
4 View the current working version of the file, such as Test.cpp and version Number 10 file differences: SVN diff-r a test.cpp, the difference is manually changed;
5 if no difference, then submit: SVN ci-m "back to R 10,xxxxx" [file or directory]. A new version, such as 21, is generated in the SVN library.
Method 2: With SVN up
The first 2 steps, such as Method 1, then direct SVN up-r 10. The current working version is version 10. Note, however, that the SVN library will not generate a new version, the next time the local SVN up, or will return to the previous version.
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.