Skillfully use the SVN create patch (Patch) solution to address the needs of the customized version

Source: Internet
Author: User

Recently the project customization version more and more, maintenance, synchronization code very troublesome. Previous ideas such as:

The previous SVN directory structure is as follows:

There are 2 such questions:

  • If you fix a bug in a custom package that other custom packages have, it's very laborious + mechanical to update the code of other packages, and it's easy to make manual mistakes.
  • If a custom replacement person maintenance, the new person, the handover time, and the new people easy to forget the key points, the custom version on the basis of the main version of the changes can not remember.

As a result, I studied the svn create/apply patch feature, because the SVN patch format file can faithfully record the file changes, so the 2nd problem mentioned above is solved, and the new scheme has only one main version, Fixing any common bugs only needs to be fixed in the main version, eliminating the need to synchronize the code, and issue 1 can be resolved. So, the new idea is: the main version of the +patch package = Custom version, SVN only "main version" and "Patches" 2 source code directory

Reference copy:

Creating and applying patches for create in SVN http://blog.sina.com.cn/s/blog_734073c90100p43t.html

New ideas for improvement such as:

SVN directory structure such as:

Patches directory contents such as:

This article ends.

Skillfully use the SVN create patch (Patch) solution to address the needs of the customized 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.