CN108062232A - A kind of system and method for automatically creating branch - Google Patents

A kind of system and method for automatically creating branch Download PDF

Info

Publication number
CN108062232A
CN108062232A CN201711333391.9A CN201711333391A CN108062232A CN 108062232 A CN108062232 A CN 108062232A CN 201711333391 A CN201711333391 A CN 201711333391A CN 108062232 A CN108062232 A CN 108062232A
Authority
CN
China
Prior art keywords
branch
svn
message center
establishment
instruction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201711333391.9A
Other languages
Chinese (zh)
Inventor
杜秀前
张增
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SHANGHAI GANGLIAN E-COMMERCE CO LTD
Original Assignee
SHANGHAI GANGLIAN E-COMMERCE CO LTD
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SHANGHAI GANGLIAN E-COMMERCE CO LTD filed Critical SHANGHAI GANGLIAN E-COMMERCE CO LTD
Priority to CN201711333391.9A priority Critical patent/CN108062232A/en
Publication of CN108062232A publication Critical patent/CN108062232A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Abstract

The invention discloses a kind of system and method for automatically creating branch, the system comprises:Message center receives the establishment branch application instruction of client, the establishment branch application instruction of acquisition is sent to SVN clusters, the handling result of the SVN clusters received is also back to the client by the message center;SVN clusters, for obtaining the establishment branch application instruction from the message center, and establishment branch is carried out according to establishment branch application instruction, and the result for creating branch is back to message center, the present invention can solve the problems, such as to create branch in the prior art, merge that complexity present in branch is high, heavy workload, and unified entrance is provided to branch's mandate, recycling permission, avoid cumbersome manual operation.

Description

A kind of system and method for automatically creating branch
Technical field
The present invention relates to computer software development field, more particularly to a kind of system and method for automatically creating branch.
Background technology
SVN is the abbreviation of SubVersion, and SubVersion is the version control system of an open source code, Under Subversion management, file and catalogue can be across time and space.File is stored in central version repository by Subversion, this A center version repository like a common file server, unlike, it can record repairing for file each time and catalogue Change situation, can thus restore data to pervious version whereby, and can check the change details of data.Just because of such as This, many people are by version control system as a kind of " the time machine " of mystery.SVN employs branch management system, is cvs Successor.At present, most developers generally carry out code administration using it.
Branch is the file directory one by one under the version repository of SVN server ends center.In software development process, often need Want being developed to software for multiple person cooperational, due to the advantage of SVN, many team simultaneously selected SVN to carry out generation Code management, the code being locally composed can be submitted in central version repository by everyone, and central version repository can pass through increase The operation of version retains the difference of each edition code, and developer is facilitated to be analyzed code and rollback.In general, exploitation Team can create multiple branches by different people to develop according to product demand, finally will will exploitation branch be merged into trunk or Two exploitation branches are merged.
However, in the prior art, whether for the establishment of branch or the merging of branch, user is required for manually enter Substantial amounts of SVN operational orders realize the manual operation, it is necessary to cumbersome, and complexity is high, heavy workload, and is awarded for branch Power, recycling permission can not provide unified entrance.
The content of the invention
To overcome above-mentioned the shortcomings of the prior art, the present invention's is designed to provide a kind of side for automatically creating branch Method and system, to solve the problems, such as to create branch in the prior art, merge that complexity present in branch is high, heavy workload, and Unified entrance is provided to branch's mandate, recycling permission, avoids cumbersome manual operation.
In view of the above and other objects, the present invention proposes a kind of system for automatically creating branch, including:
Message center receives the establishment branch application instruction of client, and the establishment branch application instruction of acquisition is sent to The handling result of the SVN clusters received is also back to the client by SVN clusters, the message center;
SVN clusters, for obtaining the establishment branch application instruction from the message center, and according to the establishment branch Shen It please instruct and carry out establishment branch, and the result for creating branch is back to message center.
Further, the message center also receives the merging branch application instruction of client, by the merging branch of acquisition Application instruction is sent to SVN clusters, and the handling result of the SVN clusters received is also back to the client by the message center End.
Further, the client is sent accordingly according to the distribution branch permission or recycling branch authority request of user Instruction is to message center, to realize the distribution of branch's permission and recycling.
Further, the SVN clusters in receive it is described establishment branch application instruction after, call branch create function into Row branch creates.
Further, the branch creates function and is previously written in shell scripts.
Further, the SVN clusters are obtained from the message center merges branch's application instruction, according to the merging branch Application instruction carries out branch's merging, and the result that branch merges is back to the client by message center.
Further, the SVN clusters call branch's pooled function to carry out after the merging branch application instruction is obtained Branch merges.
Further, the SVN clusters include:
The instruction got for obtaining the instruction that the message center is sent, and is sent to SVN by SVN control units Engine or SVN user right control assemblies;
SVN engines for analyzing and processing the instruction of the SVN control units received, and analysis and processing result are returned It is back to the message center;
SVN user right control assemblies, for the distribution control completed the parsing of SVN user rights, carry out user right.
Further, the SVN user rights control assembly is in receiving distribution branch permission or recycle branch permission During application instruction, which is handled, to carry out the distribution of branch's permission and reception.
In order to achieve the above objectives, the present invention also provides a kind of method for automatically creating branch, include the following steps:
Step 1, client, which obtains, creates branch's request, is sent according to the request of establishment branch and creates branch's application instruction extremely Message center is to create branch;
Step 2, the establishment branch that client is received using message center are applied for instruction, the establishment branch of acquisition are applied Instruction is sent to SVN clusters;
Step 3, the SVN clusters are obtained from message center creates branch's application instruction, and is applied according to the establishment branch Instruction carries out establishment branch, and the result for creating branch is back to client by message center.
Compared with prior art, a kind of system and method for automatically creating branch of the present invention is divided by client according to establishment Branch request, which is sent, creates branch's application instruction to message center to create branch, and the establishment point of client is received using message center Branch application instructs, and the establishment branch application instruction of acquisition is sent to SVN clusters, SVN clusters obtain establishment point from message center Branch application instructs, and carries out establishment branch according to establishment branch application instruction, and the result for creating branch is passed through in message The heart is back to client, realize a key automatically create exploitation branch, automatic distribution branch permission, automatic recycling branch permission, Automatic to merge code, whole process solves without manually participating in and creates branch in the prior art, merges answering present in branch The problem of miscellaneous degree is high, heavy workload, and branch is authorized, recycling permission provides unified entrance, avoid cumbersome artificial Operation.
Description of the drawings
Fig. 1 is a kind of system architecture diagram for the system for automatically creating branch of the present invention;
Fig. 2 is the detail structure chart of SVN clusters in the specific embodiment of the invention;
Fig. 3 is a kind of system architecture diagram of the specific embodiment for the system for automatically creating branch of the present invention;
Fig. 4 is a kind of step flow chart for the method for automatically creating branch of the present invention.
Specific embodiment
Below by way of specific specific example and embodiments of the present invention are described with reference to the drawings, those skilled in the art can Understand the further advantage and effect of the present invention easily by content disclosed in the present specification.The present invention can also pass through other differences Specific example implemented or applied, the various details in this specification also can be based on different viewpoints with application, without departing substantially from Various modifications and change are carried out under the spirit of the present invention.
Fig. 1 is a kind of system architecture diagram for the system for automatically creating branch of the present invention.As shown in Figure 1, the present invention is a kind of certainly The dynamic system for creating branch, including:
Message center 10 receives the establishment branch application instruction of client, and the establishment branch application instruction of acquisition is sent To SVN clusters 20, meanwhile, the handling result of the SVN clusters 20 received is also back to client by message center 10.
Specifically, client creates branch's request for acquisition, and sending the application of establishment branch according to the request of establishment branch refers to Order, to create branch, specifically, the user behaviour asked creating branch is provided in the operation interface of client to message center Make, when user's operation asks to create branch (such as clicking on the button for creating branch), client obtains user to creating branch Request, and according to the request generate create branch application instruction to message center to create branch, client is additionally operable to receive And show the handling result for the SVN clusters that message center 10 returns, that is, create the result of branch.
Preferably, client sends merging branch Shen also when the request of merging branch is got according to branch's request is merged It please instruct to message center to merge branch, while receive branch's amalgamation result of the SVN clusters 30 of the return of message center 10 simultaneously It is shown.
Preferably, when user wants distribution branch permission or recycling branch's permission, client is also according to the request of user Corresponding instruction is sent to message center 10, to realize the distribution of branch's permission and recycling.
Preferably, when the merging branch for receiving client applies for instruction, message center 10 is by the merging branch of acquisition Application instruction is sent to SVN clusters 20, and branch's amalgamation result of the SVN clusters received is back to client.
Preferably, when the application instruction of the distribution branch permission or recycling branch permission that receive client, will obtain Application instruction be sent to SVN clusters 20.
SVN clusters 20 create branch's application instruction for being obtained from message center 10, and are referred to according to establishment branch application Order carries out establishment branch, and the result for creating branch is back to message center, specifically, disappears when SVN clusters 20 receive After the establishment branch application instruction that breath center 10 obtains, branch is called to create function and carries out branch's establishment, optionally, branch wound Building function can be previously written in shell scripts, i.e., after the application instruction of establishment branch is obtained, apply instructing according to the establishment branch The executable script in backstage is called to carry out establishment branch.Preferably, instructed when from the application of the acquisition merging of message center 10 branch, according to Merging branch application instruction carries out branch merging, and the result that branch merges is back to message center, i.e., when being merged After branch's application instruction, branch's pooled function is called to carry out branch's merging, which can be previously written shell scripts In.
Specifically, as shown in Fig. 2, SVN clusters 20 include SVN control units 301, SVN engines 202 and SVN user's power Control assembly 203 is limited, wherein, SVN control units 201 for obtaining the instruction of the transmission of message center 10, such as create branch Shen It please instruct or merge branch's application instruction etc., and the instruction got is sent to SVN engines 202 or the control of SVN user rights Component 203;The instruction for the SVN control units 201 that SVN engines receive for analyzing and processing, such as branch creates, branch merges Deng, and analysis and processing result is back to message center 10;SVN user rights control assembly 203, for completing SVN user's power Limit parsing, the distribution for carrying out user right, such as branch's access limit is automatically assigned to the use simultaneously when branch creates successfully Family, it is preferable that SVN user rights control assembly 203 also refers in the application for receiving distribution branch permission or recycling branch permission When making, which is handled, to carry out the distribution of branch's permission and reception, specifically, SVN user right control assemblies 203 after instruction is received, and the distribution of branch's permission, recovery command write-in Auth files, Pasword files are carried out branch The distribution and recycling of permission, and result is back to client by message center.
Fig. 3 is a kind of system architecture diagram of the specific embodiment for the system for automatically creating branch of the present invention.As shown in figure 3, 1) client sends application and creates the instruction of branch's (can also merge branch, the distribution of branch's permission, recycling etc.) to message Center (Push instructions);2) instruction is sent to SVN clusters (Pull instructions) by message center;SVN clusters are obtained from message center The instruction that branch's (can also merge branch, the distribution of branch's permission, recycling etc.) must be created is handled, and calls backstage that can hold Traveling far and wide, this carries out creating branch or merges branch, distribution, recovery command write-in Auth, Pasword file for branch's permission To carry out branch's authority distribution and recycling;3) handling result is returned to message center (Push results) by SVN clusters;4) client It obtains and shows the handling result (Pull results) of SVN clusters, branch creates successfully while branch's access limit is distributed automatically To the user.
Fig. 4 is a kind of step flow chart for the method for automatically creating branch of the present invention.As shown in figure 4, the present invention is a kind of certainly The dynamic method for creating branch, includes the following steps:
Step 401, client, which obtains, creates branch's request, is sent according to the request of establishment branch and creates branch's application instruction extremely Message center is to create branch, specifically, user's operation asked creating branch is provided in the operation interface of client, when During user's operation request establishment branch, client obtains user to creating the request of branch, and generates to create according to the request and divide Branch application instructs to message center to create branch.
Preferably, in step 401, client is sent out also when the request of merging branch is got according to branch's request is merged Go out to merge branch's application instruction to message center to merge branch.
Preferably, when user wants distribution branch permission or recycling branch's permission, client is also according to the request of user Corresponding instruction is sent to message center, to realize the distribution of branch's permission and recycling.
Step 402, the establishment branch for client being received using message center applies for instruction, and the establishment branch of acquisition is applied Instruction is sent to SVN clusters.
It preferably, can be by the merging branch of acquisition when the merging branch that message center receives client applies for instruction Application instruction is sent to SVN clusters.
Preferably, when the application instruction of the distribution branch permission or recycling branch permission that receive client, in message The application instruction of acquisition is sent to SVN clusters by the heart.
Step 403, SVN clusters are obtained from message center creates branch's application instruction, and is referred to according to establishment branch application Order carries out establishment branch, and the result for creating branch is back to client by message center, specifically, when SVN clusters After the establishment branch application instruction for receiving message center acquisition, branch is called to create function and carries out branch's establishment, it optionally, should Branch creates function and can be previously written in shell scripts, i.e., after the application instruction of establishment branch is obtained, according to the establishment branch Shen Please the executable script in instruction calls backstage carry out establishment branch.
Preferably, in step 403, branch's application instruction is merged when being obtained from message center, SVN clusters are according to the merging Branch's application instruction carries out branch's merging, and the result that branch merges is back to client by message center, that is, works as acquisition After merging branch's application instruction, branch's pooled function is called to carry out branch's merging, which can be previously written shell In script.
Preferably, if getting the application instruction of the distribution for branch's permission, recycling from message center, SVN clusters will Distribution, recovery command for branch's permission write Auth, Pasword file to carry out branch's authority distribution and recycling, and will Handling result is back to client by message center.
In conclusion a kind of system and method for automatically creating branch of the present invention is asked by client according to branch is created It sends and creates branch's application instruction to message center to create branch, the establishment branch that client is received using message center is applied The establishment branch application instruction of acquisition is sent to SVN clusters by instruction, and SVN clusters are obtained from message center creates branch's application Instruction, and establishment branch is carried out according to establishment branch application instruction, and the result for creating branch is returned by message center To client, realize a key automatically create exploitation branch, automatic distribution branch permission, automatic recycling branch permission, from dynamic circuit connector And code, whole process are solved and create branch in the prior art, merge complexity present in branch without manually participating in The problem of height, heavy workload, and unified entrance is provided to branch's mandate, recycling permission, avoid cumbersome manual operation.
The above-described embodiments merely illustrate the principles and effects of the present invention, and is not intended to limit the present invention.Any Field technology personnel can modify above-described embodiment and changed under the spirit and scope without prejudice to the present invention.Therefore, The scope of the present invention, should be as listed by claims.

Claims (10)

1. a kind of system for automatically creating branch, including:
Message center receives the establishment branch application instruction of client, and the establishment branch application instruction of acquisition is sent to SVN collection The handling result of the SVN clusters received is also back to the client by group, the message center;
SVN clusters for obtaining the establishment branch application instruction from the message center, and refer to according to establishment branch application Order carries out establishment branch, and the result for creating branch is back to message center.
2. a kind of system for automatically creating branch as described in claim 1, it is characterised in that:The message center also receives visitor The merging branch application instruction of acquisition is sent to SVN clusters by the merging branch application instruction at family end, and the message center will also The handling result of the SVN clusters received is back to the client.
3. a kind of system for automatically creating branch as claimed in claim 2, it is characterised in that:The client is according to user's Distribution branch permission or recycling branch authority request send corresponding instruction to message center, with realize the distribution of branch's permission and Recycling.
4. a kind of system for automatically creating branch as described in claim 1, it is characterised in that:The SVN clusters are in receiving After the establishment branch application instruction, branch is called to create function and carries out branch's establishment.
5. a kind of system for automatically creating branch as claimed in claim 4, it is characterised in that:It is advance that the branch creates function It writes in shell scripts.
6. a kind of system for automatically creating branch as claimed in claim 2, it is characterised in that:The SVN clusters disappear from described Breath center, which obtains, merges branch's application instruction, applies for that instruction carries out branch's merging according to the merging branch, and branch is merged As a result the client is back to by message center.
7. a kind of system for automatically creating branch as claimed in claim 6, it is characterised in that:The SVN clusters are in acquisition institute It states after merging branch's application instruction, branch's pooled function is called to carry out branch's merging.
8. a kind of system for automatically creating branch as claimed in claim 3, it is characterised in that:The SVN clusters include:
The instruction got for obtaining the instruction that the message center is sent, and is sent to SVN engines by SVN control units Or SVN user right control assemblies;
SVN engines for analyzing and processing the instruction of the SVN control units received, and analysis and processing result are back to The message center;
SVN user right control assemblies, for the distribution control completed the parsing of SVN user rights, carry out user right.
9. a kind of system for automatically creating branch as claimed in claim 8, it is characterised in that:The SVN user rights control Component is handled the instruction, when receiving distribution branch permission or recycling the application instruction of branch's permission to be divided The distribution and reception of branch permission.
10. a kind of method for automatically creating branch, includes the following steps:
Step 1, client, which obtains, creates branch's request, is sent according to the request of establishment branch and creates branch's application instruction to message Center is to create branch;
Step 2, the establishment branch that client is received using message center apply for instruction, and the establishment branch of acquisition is applied instruction It is sent to SVN clusters;
Step 3, the SVN clusters are obtained from message center creates branch's application instruction, and applies instructing according to the establishment branch Establishment branch is carried out, and the result for creating branch is back to client by message center.
CN201711333391.9A 2017-12-14 2017-12-14 A kind of system and method for automatically creating branch Pending CN108062232A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711333391.9A CN108062232A (en) 2017-12-14 2017-12-14 A kind of system and method for automatically creating branch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711333391.9A CN108062232A (en) 2017-12-14 2017-12-14 A kind of system and method for automatically creating branch

Publications (1)

Publication Number Publication Date
CN108062232A true CN108062232A (en) 2018-05-22

Family

ID=62138562

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711333391.9A Pending CN108062232A (en) 2017-12-14 2017-12-14 A kind of system and method for automatically creating branch

Country Status (1)

Country Link
CN (1) CN108062232A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110633101A (en) * 2019-09-25 2019-12-31 杭州港盛软件科技有限公司 Program code management method, device and equipment and readable storage medium
CN111124466A (en) * 2018-10-31 2020-05-08 上海哔哩哔哩科技有限公司 Differentiated notification method, differentiated notification system, computer equipment and readable storage medium
CN112308571A (en) * 2019-07-15 2021-02-02 北京京东尚科信息技术有限公司 Intelligent customer service response method and device, storage medium and electronic equipment
CN112883344A (en) * 2021-02-03 2021-06-01 中国工商银行股份有限公司 Code operation authority control method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104199667A (en) * 2014-09-10 2014-12-10 南靖万利达科技有限公司 Method and system for newly establishing MTK project and submitting codes
US20150286558A1 (en) * 2013-05-14 2015-10-08 Noblis, Inc. Method and system to automatically enforce a hybrid branching strategy
CN105468373A (en) * 2015-11-23 2016-04-06 郑州悉知信息科技股份有限公司 Branch merging method and device
CN105893035A (en) * 2016-03-30 2016-08-24 乐视控股(北京)有限公司 Distributed code management method and system
CN106648589A (en) * 2016-09-28 2017-05-10 郑州云海信息技术有限公司 svn source code online management and shared viewing system and method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150286558A1 (en) * 2013-05-14 2015-10-08 Noblis, Inc. Method and system to automatically enforce a hybrid branching strategy
CN104199667A (en) * 2014-09-10 2014-12-10 南靖万利达科技有限公司 Method and system for newly establishing MTK project and submitting codes
CN105468373A (en) * 2015-11-23 2016-04-06 郑州悉知信息科技股份有限公司 Branch merging method and device
CN105893035A (en) * 2016-03-30 2016-08-24 乐视控股(北京)有限公司 Distributed code management method and system
CN106648589A (en) * 2016-09-28 2017-05-10 郑州云海信息技术有限公司 svn source code online management and shared viewing system and method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111124466A (en) * 2018-10-31 2020-05-08 上海哔哩哔哩科技有限公司 Differentiated notification method, differentiated notification system, computer equipment and readable storage medium
CN112308571A (en) * 2019-07-15 2021-02-02 北京京东尚科信息技术有限公司 Intelligent customer service response method and device, storage medium and electronic equipment
CN110633101A (en) * 2019-09-25 2019-12-31 杭州港盛软件科技有限公司 Program code management method, device and equipment and readable storage medium
CN112883344A (en) * 2021-02-03 2021-06-01 中国工商银行股份有限公司 Code operation authority control method and device

Similar Documents

Publication Publication Date Title
US9658833B2 (en) Automated methods and systems for developing and deploying projects in parallel
CN108062232A (en) A kind of system and method for automatically creating branch
US11620277B2 (en) Transaction processing at non-relational databases
US11176030B2 (en) Conducting automated software testing using centralized controller and distributed test host servers
US10678666B1 (en) Method and system for implementing automated test and retest procedures in a virtual test environment
JP2020518926A (en) Backup and restore framework for distributed computing systems
Fan et al. ATCoPE: any-time collaborative programming environment for seamless integration of real-time and non-real-time teamwork in software development
US9823991B2 (en) Concurrent workload simulation for application performance testing
US20180329808A1 (en) Conducting Automated Software Testing Using Centralized Controller And Distributed Test Host Servers
US11055078B2 (en) Systems and methods for deploying software products to environments
Slaughter et al. Continuous integration for concurrent MOOSE framework and application development on GitHub
US20210263833A1 (en) Code Generation Platform with Debugger
CN104217270A (en) Business process application file generating and execution methods, client, device and system
Aslam et al. Cross-platform real-time collaborative modeling: An architecture and a prototype implementation via emf. cloud
CN109743233A (en) A kind of pair of strong identity authentication system carries out the method and computer equipment of data acquisition
CN115687503A (en) Method, device and equipment for synchronizing data among databases and storage medium
CN115237394A (en) Application program development method and device, electronic equipment and readable medium
Bang et al. Proactive detection of higher-order software design conflicts
CN113220451A (en) Method, system, device and storage medium for deploying distributed cluster system
CN113297081A (en) Execution method and device of continuous integration assembly line
US20100131463A1 (en) Mobile observation management solutions
CN110083589A (en) A kind of ability warehouse towards avionics system
US20210373876A1 (en) System and method for implementing a monitoring tool switch
EP4102357A1 (en) Development environment organizer with enhanced state switching and sharing
CN116974543A (en) Service workflow processing method and related equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20180522

RJ01 Rejection of invention patent application after publication