Svn log version rollback, svn log version

Source: Internet
Author: User

Svn log version rollback, svn log version

[root@v01 online]# svn diff -r 9:8Index: index.html===================================================================--- index.html(revision 9)+++ index.html(revision 8)@@ -10,4 +10,3 @@ kkkkkkkkkkk kkkkkkkk ggggggg-10[root@v01 online]# svn merge -r 9:8 ""--- Reverse-merging r9 into '.':U    index.html[root@v01 online]# cat index.html <<<<<<< .minekkkkk2222kkkkkllll=======99999988888889999999999999>>>>>>> .r5kkkkkkkkkkkkkkkkkkkggggggg[root@v01 online]# svn diff “”Index: index.html===================================================================--- index.html(revision 9)+++ index.html(working copy)@@ -10,4 +10,3 @@ kkkkkkkkkkk kkkkkkkk ggggggg-10[root@v01 online]# svn commit -m "sss"Sending        index.htmlTransmitting file data .Committed revision 10.[root@v01 online]# svn log index.html ------------------------------------------------------------------------r10 | user001 | 2016-05-10 03:02:21 +0800 (Tue, 10 May 2016) | 1 linesss------------------------------------------------------------------------r9 | user001 | 2016-05-10 02:20:13 +0800 (Tue, 10 May 2016) | 1 line------------------------------------------------------------------------r8 | user001 | 2016-05-10 02:13:37 +0800 (Tue, 10 May 2016) | 1 line------------------------------------------------------------------------r7 | user001 | 2016-05-10 01:54:53 +0800 (Tue, 10 May 2016) | 1 line------------------------------------------------------------------------r6 | user001 | 2016-05-10 01:53:49 +0800 (Tue, 10 May 2016) | 1 line------------------------------------------------------------------------r4 | user001 | 2016-05-10 01:27:00 +0800 (Tue, 10 May 2016) | 1 line------------------------------------------------------------------------r3 | user001 | 2016-05-10 01:21:36 +0800 (Tue, 10 May 2016) | 1 line------------------------------------------------------------------------r2 | user001 | 2016-05-09 19:48:15 +0800 (Mon, 09 May 2016) | 1 lineadd test file for mytest------------------------------------------------------------------------r1 | user001 | 2016-05-09 13:19:28 +0800 (Mon, 09 May 2016) | 1 line------------------------------------------------------------------------[root@v01 online]# 

 

Svn log-v displays all the logs with the modified file name svn log-r ver1: ver2 displays the svn diff-r ver1: ver2 version rollback, the three most necessary steps are as follows: 1. determine the svn log version <file> 2. merge svn merge-r <latest revision>: <last revision> <file> 3. commit. svn ci-m'rollback to last revision: '<file>

 

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.