Submit tortoisesvn to overwrite the latest SVN repository version

Source: Internet
Author: User
Tags tortoisesvn


Background:The latest version of the ibank. PDM file is incorrect. The version number is 5051. I want to submit the modification on version 5050 and overwrite the modification on version 5051, that is, the modified version 5050 overwrites the modification on version 5051, submitted successfully and becomes the latest version 5052. Use tortoisesvn for version 1.6.10. The steps are as follows:1. Update the current version ibank. PDM to version 5051 I want. 2. Modify version ibank. PDM 5050, and then back up it to another place. It is not recommended to store it in the current SVN directory. Do not wait for updates to affect the existing version ibank. PDM of version 5050. 3. After the backup is complete, delete ibank. PDM of version 5050 and update the latest version ibank. PDM. 4. Delete the updated version ibank. PDM of version 5051, copy the modified version ibank. PDM of version 5050 to the current SVN directory, and submit it. Overwrite submission successful! Currently, the latest version 5052 is a version after version 5050 is modified. The content of version 5051 is overwritten. Why are there Steps 3 and 4?The file submitted by SVN is only submitted on the latest version. If you modify and submit the file on the old version, an error is returned. Please update your file to the latest version. However, in my current situation, if I update ibank in version 5051. the modifications to the PDM will affect my current version 5050, and there will be conflicts. Besides, I think the latest version is 5052. Without any modifications to the version 5051, it is only the version modified after the version 5050. So I use the tortoisesvn file principle. tortoisesvn records SVN information to the. SVN folder. It can tell that my ibank. PDM is version 5050, not the latest version 5051, but also the information recorded in this folder. So I will back up the modified version ibank. PDM and delete it. Why? Because there are many differences between the latest version 5051 and the current version, a file conflict will be prompted. Of course, you can also manually modify and highlight it, if you are not too troublesome. So I will delete and update it first. In this way, the ibank. PDM version is 5051, and there is no conflict message in the file. This is. the SVN folder record information is my ibank. PDM is version 5051, so I put version 5051 ibank. delete PDM, copy and submit the modified version 5050 after the backup. SVN find out. ibank of SVN folder records. the PDM version information is version 5051 (actually version 5050). I mistakenly believe that my current ibank. PDM is a modified version after version 5051, so I can hide the verification that requires you to update the file to the latest version and submit it successfully. Self-Summary: I have made full use of the clever principle. For example, if I go through a river and cannot go through it, I will go through the road. Therefore, the solution should be flexible and flexible.

Submit tortoisesvn to overwrite the latest SVN repository version

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.