Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for code management

A management method and management device technology, applied in the software field, can solve problems such as troublesome, unreliable, and missing modification of branch code, and achieve the effects of improving efficiency and reliability, simplifying modification process, and realizing automatic modification.

Active Publication Date: 2019-12-10
GUANGZHOU SHIYUAN ELECTRONICS CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] When providing software services for different customers, the codes belonging to the same solution need to maintain multiple branch codes according to the different needs of different customers. When a common error is found in a certain branch code, it is necessary to notify all branch code management each other Personnel manually modify the branch codes they manage, which is prone to missing notifications or missing modifications. Modifying each branch code one by one is cumbersome, inefficient and unreliable

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for code management
  • Method and device for code management
  • Method and device for code management

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0023] figure 1 It is a flow chart of the code management method provided by Embodiment 1 of the present invention. This embodiment is applicable to the situation where the distributed version control system git or the command line tool repo manages the code server. This method can be implemented by the code management device To execute, the device can be implemented by software and / or hardware, and the device can be integrated in any code server. The method includes:

[0024] S101. Detect codes, where the codes include main codes and at least one branch code.

[0025] The branch code is based on the main code and has been adaptively modified for specific application requirements. The branch code has the same or similar common code as the main code, and usually there is more than one branch code. The purpose of detecting the main code or branch code is to find errors in the code. The errors in the code can be found when the code runs incorrectly, or can be found by the code ...

Embodiment 2

[0036] figure 2 It is a flow chart of the code management method provided by Embodiment 2 of the present invention. Embodiment 2 is based on the above-mentioned embodiment. After obtaining the modification of the backbone code by the manager of the backbone code for the error code and error type After the result, adding an error number for the error code and error type and adding the error number to the error table of the trunk code, after updating the at least one branch code according to the modification result of the trunk code, If the update of the at least one branch code is successful, add the error number to the error table of the corresponding branch code; if the update of the at least one branch code fails, cancel the update of the corresponding branch code.

[0037] The code management method provided in this embodiment includes the following steps: step S201, step S202, step S203, step S204, step S205, step S206 and step S207. Wherein, step S201 , step S202 , step...

Embodiment 3

[0052] image 3 It is the flow chart of the code management method provided by the third embodiment of the present invention. The third embodiment is based on the above-mentioned embodiments, and at the end, the update result of the at least one branch code is sent to the corresponding branch code management personnel.

[0053] The code management method provided by this embodiment includes the following steps: step S301, step S302, step S303, step S304, step S305, step S306, step S307 and step S308. Wherein, step S301, step S302, step S303, step S304, step S305, step S306 and step S307 are respectively the same as step S201, step S202, step S203, step S204, step S205, step S206 and step S207 in the second embodiment , the same steps will not be repeated.

[0054] S301. Detect codes, where the codes include main codes and at least one branch code.

[0055] S302. If an error code and an error type are detected, confirm whether the error code is a common code of the main code ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The embodiment of the invention discloses a code management method and device. The method comprises the following steps: detecting codes, wherein devices comprise a trunk code and at least one branch code; if an error code and an error type are detected, confirming whether the error code is a shared code of the trunk code and the at least one branch code; if the error code is the shared code of the trunk code and the at least one branch code, feeding back the error code and the error type to a trunk code manager; obtaining a modification result of the trunk code manager to the trunk code according to the error code and the error type; and updating the at least one branch code according to the modification result of the trunk code. According to the code management method and device disclosed by the embodiment of the invention, for the error in the shared code, the code server modifies the error in the branch code according to the modification result of the trunk code, thereby realizing the automatic modification of the branch code, simplifying the code modification process and improving the code modification efficiency and reliability.

Description

technical field [0001] The embodiments of the present invention relate to software technology, and in particular to a code management method and device. Background technique [0002] When providing software services for different customers, the codes belonging to the same solution need to maintain multiple branch codes according to the different needs of different customers. When a common error is found in a certain branch code, it is necessary to notify all branch code management each other Personnel manually modify the branch codes they manage, which is prone to missing notifications or missing modifications. Modifying each branch code one by one is cumbersome, inefficient and unreliable. Contents of the invention [0003] The embodiments of the present invention provide a code management method and device, which can simplify the code modification process and improve the efficiency and reliability of code modification. [0004] In the first aspect, the embodiment of the...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F8/41
CPCG06F8/43G06F8/443
Inventor 陈思炯
Owner GUANGZHOU SHIYUAN ELECTRONICS CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products