CN107908424A - A kind of code administration method, system, equipment and computer-readable storage medium - Google Patents
A kind of code administration method, system, equipment and computer-readable storage medium Download PDFInfo
- Publication number
- CN107908424A CN107908424A CN201711329667.6A CN201711329667A CN107908424A CN 107908424 A CN107908424 A CN 107908424A CN 201711329667 A CN201711329667 A CN 201711329667A CN 107908424 A CN107908424 A CN 107908424A
- Authority
- CN
- China
- Prior art keywords
- code
- destination item
- storage space
- exploitation
- target storage
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention discloses a kind of code administration method, system, equipment and computer-readable storage medium, wherein this method includes:Using foundation code as negative sheet;The corresponding exploitation code of destination item is stored into the corresponding target storage space of destination item, to realize destination item based on the exploitation code in negative sheet and target storage space.A kind of code administration method provided by the invention is using foundation code as negative sheet, exploitation code is stored in target storage space, realize foundation code and exploitation code separate management, provide convenience for the exploitation of succeeding target project, there is preferable applicability.In conclusion a kind of code administration method provided by the invention solves the technical problem for the applicability for how improving code administration method to a certain extent.A kind of code management system, equipment and computer-readable storage medium provided by the invention also solve corresponding technical problem.
Description
Technical field
The present invention relates to hardware and software platform technical field, more specifically to a kind of code administration method, system, equipment and
Computer-readable storage medium.
Background technology
In the building process of project, more and more application platform technologies build project, in the process, it is necessary to
The corresponding code of each project is managed.
A kind of existing code administration method is to establish independent software development kit SDK codes, Mei Gexiang for each project
The code of mesh complexity is managed using distributed version control system git.
However, in a kind of existing code administration method, each item destination code is required for stand-alone development so that existing skill
The applicability of the code administration method of art is relatively low.
Asked in conclusion the applicability for how improving code administration method is that current those skilled in the art are urgently to be resolved hurrily
Topic.
The content of the invention
The object of the present invention is to provide a kind of code administration method, it can solve how to improve dematron to a certain extent
The technical problem of the applicability of reason method.Present invention also offers a kind of code management system, equipment and computer-readable storage medium.
To achieve these goals, the present invention provides following technical solution:
A kind of code administration method, including:
Using foundation code as negative sheet;
The corresponding exploitation code of destination item is stored into the corresponding target storage space of the destination item, with based on institute
The exploitation code stated in negative sheet and the target storage space realizes the destination item.
Preferably, the corresponding exploitation code of destination item that stores is to the corresponding target storage space of the destination item
In, including:
The corresponding exploitation code of destination item is stored into the corresponding target git warehouses of the destination item.
Preferably, the corresponding exploitation code of destination item that stores is to the corresponding target storage space of the destination item
In before, further include:
Create the corresponding target storage space of destination item.
Preferably, the corresponding exploitation code of destination item that stores is to the corresponding target storage space of the destination item
In, including:
It is the corresponding target storage space of destination item to replicate corresponding first memory space of first item;
It is the corresponding exploitation code of the destination item to change the corresponding exploitation code of the first item.
Preferably, the corresponding exploitation code of destination item that stores is to the corresponding target storage space of the destination item
In, including:
The source file of destination item is obtained from the negative sheet;
It is the corresponding exploitation code of the destination item to convert the source file;
The exploitation code is stored into the corresponding target storage space of the destination item.
Preferably, the corresponding exploitation code of destination item that stores is to the corresponding target storage space of the destination item
In, including:
It is the corresponding target storage space of destination item to replicate corresponding second memory space of second item;
Difference source file is obtained from the negative sheet;
The difference source file is converted as difference code;
The difference code is stored into the target storage space.
Preferably, the exploitation code based in the negative sheet and the target storage space realizes the mesh
Mark project, including:
The negative sheet and the corresponding exploitation code of the destination item are combined into destination item code;
Compile the destination item code building destination item file.
A kind of code management system, including:
Bottom Version module, for using foundation code as negative sheet;
Memory module, it is empty to the corresponding target storage of the destination item for storing the corresponding exploitation code of destination item
Between in, to realize the destination item based on the exploitation code in the negative sheet and the target storage space.
A kind of code administration facility, including:
Memory, for storing computer program;
Processor, a kind of as above any step of code administration method is realized during for performing the computer program
Suddenly.
A kind of computer-readable storage medium, is stored with computer program, the computer journey in the computer-readable storage medium
The step of a kind of as above any code administration method is realized when sequence is executed by processor.
A kind of code administration method provided by the invention, using foundation code as negative sheet;It is corresponding to store destination item
Exploitation code is into the corresponding target storage space of destination item, with based on the exploitation code in negative sheet and target storage space
Realize destination item.A kind of code administration method provided by the invention stores exploitation code using foundation code as negative sheet
In target storage space, realize foundation code and exploitation code separate management, the exploitation for succeeding target project provides
Facility, has a preferable applicability.In conclusion a kind of code administration method provided by the invention solves to a certain extent
How the technical problem of the applicability of code administration method is improved.A kind of code management system provided by the invention, equipment and
Computer-readable storage medium also solves corresponding technical problem.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is attached drawing needed in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
The embodiment of invention, for those of ordinary skill in the art, without creative efforts, can also basis
The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of flow chart of code administration method provided in an embodiment of the present invention;
Fig. 2 is from the flow chart of negative this acquisition exploitation code when being developed for the first time in practical application;
Fig. 3 is a kind of flow chart of code administration method provided in an embodiment of the present invention in practical application;
Fig. 4 is a kind of structure diagram of code management system provided in an embodiment of the present invention;
Fig. 5 is a kind of structure diagram of code administration facility provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other without making creative work
Embodiment, belongs to the scope of protection of the invention.
The action executing main body of each step can be this hair in a kind of code administration method provided in an embodiment of the present invention
A kind of code management system that bright embodiment provides, and the system can be built in computer, server etc., so of the invention
The action executing main body of each step can also be computer, server etc. in a kind of code administration method that embodiment provides.
For convenience, here by the action executing main body of each step in a kind of code administration method provided in an embodiment of the present invention
A kind of code management system provided in an embodiment of the present invention is set to, referred to as management system.
Referring to Fig. 1, Fig. 1 is a kind of flow chart of code administration method provided in an embodiment of the present invention.
A kind of code administration method provided in an embodiment of the present invention, may comprise steps of:
Step S101:Using foundation code as negative sheet.
In practical application, management system can be first using foundation code as negative sheet.What foundation code mentioned here referred to
It is the code of most original necessary to realizing destination item.Originally it is to keep the only of foundation code using foundation code as negative
Vertical property.
Step S102:The corresponding exploitation code of destination item is stored into the corresponding target storage space of destination item, with
Destination item is realized based on the exploitation code in negative sheet and target storage space.
In practical application, management system can store the corresponding exploitation code of destination item to the corresponding target of destination item
In memory space, exploitation code is managed independently to realize, correspondingly, management system can be based on negative sheet and exploitation generation
Code realizes destination item.Exploitation code mentioned here refers to accordingly changing foundation code to realize destination item
Obtained from code;The corresponding target storage space of destination item mentioned here refers to that each destination item has one
A independent target storage space, for storing the exploitation code needed for the destination item itself.
A kind of code administration method provided by the invention, using foundation code as negative sheet;It is corresponding to store destination item
Exploitation code is into the corresponding target storage space of destination item, with based on the exploitation code in negative sheet and target storage space
Realize destination item.A kind of code administration method provided by the invention stores exploitation code using foundation code as negative sheet
In target storage space, realize foundation code and exploitation code separate management, the exploitation for succeeding target project provides
Facility, has a preferable applicability.In conclusion a kind of code administration method provided by the invention solves to a certain extent
How the technical problem of the applicability of code administration method is improved.
In a kind of code administration method provided in an embodiment of the present invention, step S102 storage destination items corresponding exploitation generation
Code is specifically as follows into the corresponding target storage space of destination item:
The corresponding exploitation code of destination item is stored into the corresponding target git warehouses of destination item.
In practical application, in order to facilitate management development code, it can be corresponded to by target git warehouses to store destination item
Exploitation code.Git mentioned here be it is a increase income, distributed version control system, it is intended to quickly and efficiently handle
No matter any soft project of scale.
In a kind of code administration method provided in an embodiment of the present invention, the corresponding exploitation code of storage destination item to target
Before in the corresponding target storage space of project, it can also include:
Create the corresponding target storage space of destination item.
In practical application, when management system does not have the corresponding target storage space of destination item, management system can be
Before the corresponding exploitation code of destination item is stored into the corresponding target storage space of destination item, destination item is voluntarily created
Corresponding target storage space.
In a kind of code administration method provided in an embodiment of the present invention, step S102 storage destination items corresponding exploitation generation
Code is specifically as follows into the corresponding target storage space of destination item:
It is the corresponding target storage space of destination item to replicate corresponding first memory space of first item;
It is the corresponding exploitation code of destination item to change the corresponding exploitation code of first item.
In practical application, it can be obtained there are destination item on the basis of the first item to having realized is modified
Situation, at this moment, management system can replicate corresponding first memory space of first item as the corresponding target storage of destination item
Space, correspondingly, it is the corresponding exploitation code of destination item that management system, which can change the corresponding exploitation code of first item,.
In a kind of code administration method provided in an embodiment of the present invention, step S102 storage destination items corresponding exploitation generation
Code is specifically as follows into the corresponding target storage space of destination item:
The source file of destination item is obtained from negative sheet;
Conversion source file is the corresponding exploitation code of destination item;
Exploitation code is stored into the corresponding target storage space of destination item.
In practical application, management system can obtain mesh when being developed to destination item first time from negative sheet
The corresponding source file of mark project, it is the corresponding exploitation code of destination item then to convert source file, finally stores exploitation code extremely
In the corresponding target storage space of destination item.Source file mentioned here refers to being used to be converted into exploitation code in negative sheet
Code file.Conversion source file can refer to the prior art for the principle of exploitation code, and which is not described herein again.Practical application
In, it can also be and first store source file into target storage space, be then revised as out source file in target storage space
Send out code.
Referring to Fig. 2, Fig. 2 is from the flow chart of negative this acquisition exploitation code when being developed for the first time in practical application.
It can include following steps from the process of negative this acquisition exploitation code in practical application:
Step S201:Create empty target git warehouses;
Step S202:The corresponding source file of destination item is obtained from negative sheet;
Step S203:Modification source file is exploitation code;
Step S204:Exploitation code is uploaded in target git warehouses according to the form of source file;
Step S205:Exploitation code in negative sheet and target git warehouses is combined into destination item code;
Step S206:Compile destination item code building destination item file.
In a kind of code administration method provided in an embodiment of the present invention, the corresponding exploitation code of storage destination item to target
In the corresponding target storage space of project, it is specifically as follows:
It is the corresponding target storage space of destination item to replicate corresponding second memory space of second item;
Difference source file is obtained from negative sheet;
Conversion difference source file is difference code;
Storage difference code is into target storage space.
In practical application, there are the feelings that destination item can obtain on the basis of the second item to having realized is modified
Condition, at this moment, it is empty for the corresponding target storage of destination item that management system can replicate corresponding second memory space of second item
Between;Then difference source file is obtained from negative sheet, conversion difference source file is difference code, and storage difference code to target is deposited
Store up in space.Difference code mentioned here refer in the exploitation code of destination item with the exploitation code of second item not phase
Same code;The exploitation code and difference code of second item in target storage space form the exploitation generation of destination item together
Code;Difference source file mentioned here refers to being used for the code file for being converted into difference code in negative sheet.
It is empty based on negative sheet and target storage in step S102 in a kind of code administration method provided in an embodiment of the present invention
Between in exploitation code realize destination item, be specifically as follows:
Negative sheet and the corresponding exploitation code of destination item are combined into destination item code;
Compile destination item code building destination item file.
In practical application, management system realizes destination item based on the exploitation code in negative sheet and target storage space
Process can be:Negative sheet and the corresponding exploitation code of destination item are combined into destination item code, Ran Houbian by management system
Translate destination item code building destination item file;The speed for realizing destination item can be improved to a certain extent.
Referring to Fig. 3, Fig. 3 is a kind of flow chart of code administration method provided in an embodiment of the present invention in practical application.
A kind of code administration method provided in an embodiment of the present invention may comprise steps of in practical application:
Step S301:The git warehouses of duplication project 1 are the warehouse of project 2;
Step S302:Code to be modified is judged whether in the warehouse of project 2, if so, then performing step S303:To be repaired
Change code to modify;If it is not, then perform step S304:The source file of code to be modified is obtained from default negative sheet, is turned
Change source file is code to be modified, and code to be modified is uploaded in the warehouse of project 2 according to the form of code in project 2;
Step S305:Code in the warehouse of project 2 and negative are originally combined into the item file of project 2;
Step S306:The executable file of the item file generation project 2 of compiling project 2.
Present invention also offers a kind of code management system, it is with a kind of code administration side provided in an embodiment of the present invention
The correspondence effect that method has.Referring to Fig. 4, Fig. 4 is a kind of structural representation of code management system provided in an embodiment of the present invention
Figure.
A kind of code management system provided in an embodiment of the present invention, can include:
Bottom Version module 101, for using foundation code as negative sheet;
Memory module 102, it is empty to the corresponding target storage of destination item for storing the corresponding exploitation code of destination item
Between in, to realize destination item based on the exploitation code in negative sheet and target storage space.
In a kind of code management system provided in an embodiment of the present invention, memory module can include:
First storage unit, for storing the corresponding exploitation code of destination item to the corresponding target git storehouses of destination item
In storehouse.
In a kind of code management system provided in an embodiment of the present invention, it can also include:
Creation module, in the corresponding exploitation code of memory module storage destination item to the corresponding target of destination item
Before in memory space, the corresponding target storage space of destination item is created.
In a kind of code management system provided in an embodiment of the present invention, memory module can include:
First copied cells, is deposited for replicating corresponding first memory space of first item for the corresponding target of destination item
Store up space;
First modification unit, is the corresponding exploitation code of destination item for changing the corresponding exploitation code of first item.
In a kind of code management system provided in an embodiment of the present invention, memory module can include:
First acquisition unit, for obtaining the source file of destination item from negative sheet;
First conversion unit, is the corresponding exploitation code of destination item for converting source file;
Second storage unit, for storing exploitation code into the corresponding target storage space of destination item.
In a kind of code management system provided in an embodiment of the present invention, memory module can include:
Second copied cells, is deposited for replicating corresponding second memory space of second item for the corresponding target of destination item
Store up space;
Second acquisition unit, for obtaining difference source file from negative sheet;
Second conversion unit, for converting difference source file as difference code;
3rd storage unit, for storing difference code into target storage space.
In a kind of code management system provided in an embodiment of the present invention, memory module can include:
Assembled unit, for negative sheet and the corresponding exploitation code of destination item to be combined into destination item code;
Compilation unit, for compiling destination item code building destination item file.
Present invention also offers a kind of code administration facility and computer-readable storage medium, it is respectively provided with the embodiment of the present invention and carries
The correspondence effect that a kind of code administration method supplied has.Referring to Fig. 5, Fig. 5 is a kind of code provided in an embodiment of the present invention
The structure diagram of management equipment.
A kind of code administration facility provided in an embodiment of the present invention, can include:
Memory 201, for storing computer program;
Processor 202, a kind of as above any embodiment described code administration is realized during for performing computer program
The step of method.
A kind of computer-readable storage medium, is stored with computer program in computer-readable storage medium, computer program is processed
The step of as above any embodiment a kind of described code administration method is realized when device performs.
Relevant portion says in a kind of code management system provided in an embodiment of the present invention, equipment and computer-readable storage medium
The bright detailed description for referring to corresponding part in a kind of code administration method provided in an embodiment of the present invention, details are not described herein.
In addition, portion consistent with corresponding to technical solution realization principle in the prior art in above-mentioned technical proposal provided in an embodiment of the present invention
Divide and unspecified, in order to avoid excessively repeat.
The foregoing description of the disclosed embodiments, enables those skilled in the art to realize or use the present invention.To this
A variety of modifications of a little embodiments will be apparent for a person skilled in the art, and the general principles defined herein can
Without departing from the spirit or scope of the present invention, to realize in other embodiments.Therefore, the present invention will not be limited
The embodiments shown herein is formed on, and is to fit to consistent with the principles and novel features disclosed herein most wide
Scope.
Claims (10)
- A kind of 1. code administration method, it is characterised in that including:Using foundation code as negative sheet;The corresponding exploitation code of destination item is stored into the corresponding target storage space of the destination item, with based on the bottom The exploitation code in version and the target storage space realizes the destination item.
- 2. according to the method described in claim 1, it is characterized in that, the corresponding exploitation code of the storage destination item is to described In the corresponding target storage space of destination item, including:The corresponding exploitation code of destination item is stored into the corresponding target git warehouses of the destination item.
- 3. according to the method described in claim 1, it is characterized in that, the corresponding exploitation code of the storage destination item is to described Before in the corresponding target storage space of destination item, further include:Create the corresponding target storage space of destination item.
- 4. according to the method described in claim 1, it is characterized in that, the corresponding exploitation code of the storage destination item is to described In the corresponding target storage space of destination item, including:It is the corresponding target storage space of destination item to replicate corresponding first memory space of first item;It is the corresponding exploitation code of the destination item to change the corresponding exploitation code of the first item.
- 5. according to the method described in claim 1, it is characterized in that, the corresponding exploitation code of the storage destination item is to described In the corresponding target storage space of destination item, including:The source file of destination item is obtained from the negative sheet;It is the corresponding exploitation code of the destination item to convert the source file;The exploitation code is stored into the corresponding target storage space of the destination item.
- 6. according to the method described in claim 1, it is characterized in that, the corresponding exploitation code of the storage destination item is to described In the corresponding target storage space of destination item, including:It is the corresponding target storage space of destination item to replicate corresponding second memory space of second item;Difference source file is obtained from the negative sheet;The difference source file is converted as difference code;The difference code is stored into the target storage space.
- 7. method according to any one of claims 1 to 6, it is characterised in that described to be based on the negative sheet and the mesh The exploitation code in mark memory space realizes the destination item, including:The negative sheet and the corresponding exploitation code of the destination item are combined into destination item code;Compile the destination item code building destination item file.
- A kind of 8. code management system, it is characterised in that including:Bottom Version module, for using foundation code as negative sheet;Memory module, for storing the corresponding exploitation code of destination item to the corresponding target storage space of the destination item In, to realize the destination item based on the exploitation code in the negative sheet and the target storage space.
- A kind of 9. code administration facility, it is characterised in that including:Memory, for storing computer program;Processor, a kind of code administration side as described in any one of claim 1 to 7 is realized during for performing the computer program The step of method.
- 10. a kind of computer-readable storage medium, it is characterised in that computer program, institute are stored with the computer-readable storage medium State and realized when computer program is executed by processor as described in any one of claim 1 to 7 the step of a kind of code administration method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711329667.6A CN107908424A (en) | 2017-12-13 | 2017-12-13 | A kind of code administration method, system, equipment and computer-readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711329667.6A CN107908424A (en) | 2017-12-13 | 2017-12-13 | A kind of code administration method, system, equipment and computer-readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107908424A true CN107908424A (en) | 2018-04-13 |
Family
ID=61854385
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711329667.6A Pending CN107908424A (en) | 2017-12-13 | 2017-12-13 | A kind of code administration method, system, equipment and computer-readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107908424A (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160092526A1 (en) * | 2014-09-26 | 2016-03-31 | Oracle International Corporation | Integrating object-based data integration tool with a version control system in centralized and decentralized environments |
CN107291448A (en) * | 2017-05-19 | 2017-10-24 | 上海瀚乾信息技术服务有限公司 | A kind of Software Develop Project Management system |
-
2017
- 2017-12-13 CN CN201711329667.6A patent/CN107908424A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160092526A1 (en) * | 2014-09-26 | 2016-03-31 | Oracle International Corporation | Integrating object-based data integration tool with a version control system in centralized and decentralized environments |
CN107291448A (en) * | 2017-05-19 | 2017-10-24 | 上海瀚乾信息技术服务有限公司 | A kind of Software Develop Project Management system |
Non-Patent Citations (1)
Title |
---|
MUZINAN110: ""使用git和gitlab进行协同开发流程"", 《博客园:HTTPS://WWW.CNBLOGS.COM/MUZINAN110/P/5300600.HTML》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102696012B (en) | Creating inferred symbols from code usage | |
CN102609244B (en) | Agile communication operator | |
CN108786112B (en) | Application scene configuration method, device and storage medium | |
CN102696026B (en) | A kind of system and method for creating data structure | |
CN106462425A (en) | Complex constants | |
CN104598240A (en) | Platform-spanning simulation model development method and system | |
CN108139896A (en) | EVM(extended virtual machine) instruction set framework | |
EP1754196A4 (en) | Resource management for rule-based procedural terrain generation | |
CN102103497A (en) | Finite state machine actuating device and method, and method for establishing and using finite state machine | |
KR20110032222A (en) | Emf model synchronization method and system | |
CN102804175B (en) | Sequential layout builder | |
CN102622227A (en) | Component model supporting dynamic configuration, and component factory | |
CN111796829B (en) | Applet updating method, device, electronic equipment and computer readable storage medium | |
CN102222148A (en) | Method and device for automatically generating detailed statement of three-dimensional assembly drawing | |
CN110109658A (en) | A kind of ROS code generator and code generating method based on formalized model | |
CN1950817A (en) | Document processing device and document processing method | |
CN103425469A (en) | Method for generating mobile game codes based on MDA technology | |
CN112755534B (en) | Data processing method, device and storage medium | |
KR102484736B1 (en) | Device and method for operating platform providing of renewable energy digital twin model based on container | |
CN107908424A (en) | A kind of code administration method, system, equipment and computer-readable storage medium | |
CN110134434B (en) | Application generation processing method and system and application generation system | |
CN109213473B (en) | Artificial intelligence generation method for daily operation process of satellite | |
CN102804174A (en) | Sequential layout builder architecture | |
CN112162822A (en) | Mirror image construction method, device, equipment and readable storage medium | |
CN104932982B (en) | A kind of Compilation Method and relevant apparatus of message memory access |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180413 |
|
RJ01 | Rejection of invention patent application after publication |