CN109725927B - Synchronization method and device of code management system, storage medium and terminal - Google Patents
Synchronization method and device of code management system, storage medium and terminal Download PDFInfo
- Publication number
- CN109725927B CN109725927B CN201810434490.4A CN201810434490A CN109725927B CN 109725927 B CN109725927 B CN 109725927B CN 201810434490 A CN201810434490 A CN 201810434490A CN 109725927 B CN109725927 B CN 109725927B
- Authority
- CN
- China
- Prior art keywords
- code
- management system
- information
- code management
- synchronized
- 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.)
- Active
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a synchronization method and device of a code management system, a storage medium and a terminal, relates to the technical field of software development, and mainly aims to solve the problems that when a collaborative version system used by a development system and a release system is inconsistent, manual operation is needed to synchronize the development system and the release system, manpower resources are wasted and synchronization efficiency of the management system is reduced. The main technical scheme is as follows: acquiring code information to be synchronized in a first code management system, wherein the code information comprises version management operation code information and business item code information of the first code management system; extracting a conversion instruction matched with the code information to be synchronized in a configuration file, and converting, wherein the conversion instruction is used for converting the information to be synchronized into information matched with a second code management system; and pushing the converted code information to the second code management system.
Description
Technical Field
The present invention relates to the field of software development technologies, and in particular, to a synchronization method and apparatus for a code management system, a storage medium, and a terminal.
Background
In the software design process, different project development management systems are required for different project development, and in the process, a code warehouse can be managed by using a collaborative version system (Concurrent Versions System, CVS) so as to run the developed code into a release environment, a test environment or the like.
At present, when the existing CVS manages the code warehouse, the development process can be automated by matching with an automatic construction and automatic release tool, so that the developed code can be automatically released to a test or production release environment. However, in some cases, when the collaborative version system used by the development system and the release system are inconsistent, manual operation is required to be performed manually to synchronize the development system and the release system, which wastes human resources and reduces the synchronization efficiency of the management system.
Disclosure of Invention
In view of the above, the present invention provides a synchronization method and apparatus for a code management system, a storage medium, and a terminal, and aims to solve the problem that when a collaborative version system used by a development system and a release system is inconsistent, manual operations are required to be performed to synchronize the development system and the release system, which wastes human resources and reduces synchronization efficiency of the management system.
According to one aspect of the present invention, there is provided a synchronization method of a code management system, including:
acquiring code information to be synchronized in a first code management system, wherein the code information comprises version management operation code information and business item code information of the first code management system;
extracting a conversion instruction matched with the code information to be synchronized in a configuration file, and converting, wherein the conversion instruction is used for converting the information to be synchronized into information matched with a second code management system;
and pushing the converted code information to the second code management system.
According to an aspect of the present invention, there is provided a synchronization apparatus of a code management system, including:
the system comprises an acquisition unit, a synchronization unit and a synchronization unit, wherein the acquisition unit is used for acquiring code information to be synchronized in a first code management system, and the code information comprises version management operation code information and business item code information of the first code management system;
the conversion unit is used for extracting a conversion instruction matched with the code information to be synchronized in the configuration file and converting the conversion instruction, and the conversion instruction is used for converting the information to be synchronized into information matched with a second code management system;
and the pushing unit is used for pushing the converted code information to the second code management system.
According to still another aspect of the present invention, there is provided a storage medium having stored therein at least one executable instruction for causing a processor to perform operations corresponding to the synchronization method of the above-described code management system.
According to still another aspect of the present invention, there is provided a terminal including: the device comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete communication with each other through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction enables the processor to execute the operation corresponding to the synchronization method of the code management system.
By means of the technical scheme, the technical scheme provided by the embodiment of the invention has at least the following advantages:
the invention provides a synchronization method and device of a code management system, a storage medium and a terminal, wherein code information to be synchronized in a first code management system is firstly obtained, the code information comprises version management operation code information and business project code information of the first code management system, then a conversion instruction matched with the code information to be synchronized in a configuration file is extracted and converted, the conversion instruction is used for converting the information to be synchronized into information matched with a second code management system, and the converted code information is pushed to the second code management system. Compared with the prior art that when the development system and the collaborative version system used by the release system are inconsistent, manual operation is needed to be carried out to synchronize the development system and the release system, the embodiment of the invention can convert codes in the first code management system into codes in the second code management system by extracting the configuration file which is configured in advance and used for providing code conversion instructions, thereby realizing automatic conversion of codes between the two code management systems with different versions and improving the efficiency of code management.
The foregoing description is only an overview of the present invention, and is intended to be implemented in accordance with the teachings of the present invention in order that the same may be more clearly understood and to make the same and other objects, features and advantages of the present invention more readily apparent.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to designate like parts throughout the figures. In the drawings:
FIG. 1 is a flowchart of a synchronization method of a code management system according to an embodiment of the present invention;
FIG. 2 is a flowchart of another method for synchronizing a code management system according to an embodiment of the present invention;
FIG. 3 is a block diagram of a synchronization device of a code management system according to an embodiment of the present invention;
FIG. 4 is a block diagram of a synchronization device of another code management system according to an embodiment of the present invention;
fig. 5 shows a schematic diagram of a terminal according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
The embodiment of the invention provides a synchronization method of a code management system, as shown in fig. 1, the method comprises the following steps:
101. and acquiring code information to be synchronized in the first code management system.
The code information includes version management operation code information of the first code management system and service item code information, the first code management system can be a collaborative version system for code development, namely, a code management system capable of performing code development, for example, a development warehouse and the like, the version management operation code information can be basic version operation, for example, cloning, updating, temporary storage, cleaning, branching and the like, and the service item code information can be the address, user, branching and the like of a service item under the first code management system.
In general, after the code is written by a technician, the code is stored in the first code management system so as to issue the code. In addition, the execution body currently acquiring the code information to be synchronized in the first code management system may be a system platform for executing code synchronization in the embodiment of the present invention, and may be used as a separate execution platform to host code conversion of multiple versions of management systems.
102. And extracting a conversion instruction matched with the code information to be synchronized in the configuration file, and converting.
The conversion instruction is used for converting the information to be synchronized into information matched with the second code management system, the configuration file is a pre-configured file containing conversion instructions capable of converting the code information in the first code management system into the code information matched with the version of the second code management system, for example, for different target management projects, such as online malls, the conversion instructions of the code information of basic operations of address, issuing branches, updating, adding, deleting, conflict processing and the like in a project development warehouse and an issuing warehouse system can be included, so that when the code information in the first code management system is received, the code information in the first code management system is converted into the code information matched with the version form of the second code management system by utilizing the conversion instructions in the configuration file, and specific version information can include code logic, code writing language, code environment compatibility and the like.
It should be noted that, for the current code management synchronization platform, in order to support code conversion of the code management systems of different versions, brick changing relationships between the code management systems of different versions may be configured in the configuration file, that is, the current code management synchronization platform may access a plurality of second code management systems and be pushed to the plurality of second code management systems, so that synchronization may be automatically performed without performing manual conversion.
103. And pushing the converted code information to the second code management system.
For the embodiment of the invention, the converted code information is the code information matched with the version of the second code management system, and can be directly pushed into the second code management system, so that the second code management system directly utilizes the synchronized code to issue information.
Compared with the prior art that when the collaborative version systems used by the development system and the release system are inconsistent, manual operation is needed to synchronize the development system and the release system, the embodiment of the invention realizes automatic conversion of codes between two different versions of code management systems by extracting the codes in the first code management system into the codes in the second code management system from the configuration file which is configured in advance and is used for providing the code conversion instruction, thereby improving the efficiency of code management.
The embodiment of the invention provides another synchronization method of a code management system, as shown in fig. 2, the method comprises the following steps:
201. and establishing an operation platform with webpage service and background service functions by using the Javascript operation environment node. Js.
The step of using node.js to build an operation platform with functions of web services and background services is to build a web server and a background server by using node.js, host corresponding files of a code management system with multiple versions, and enable a user to synchronously work by clicking on a web page by one key, wherein the web server is a platform for providing development code pushing for the user, and the background server is an execution platform capable of automatically synchronizing codes in the embodiment of the invention.
It should be noted that the currently established operation platform may be connected to a plurality of first code management systems and a plurality of second code management systems, where the operation platform may perform conversion of information such as logical relationships, code parameter formats, language formats, addresses, users, branches, etc. of codes in the first code management system through cloning, updating, temporary storage, cleaning, switching, etc. so as to provide a stable conversion environment for code management synchronization, and improve efficiency of code management.
202. A configuration file with conversion instructions is generated.
The conversion instruction is a code instruction corresponding to a code conversion interface matched with code logic, code writing language and code environment compatible information of the code information, wherein the code logic is a service code for executing version management operation and service project and supports the service logic of the whole target management project, the code writing language is a language when different code management systems issue codes or write codes, generally, the code writing language in the first code management system and the second code management system is the code writing language, the code environment compatible information is whether the code running or issuing environment can be compatible or not, generally, if not, the code can be converted.
It should be noted that, in order to achieve the purpose of automatic synchronization, various conversion instructions need to be preconfigured and configured in the code management system in the form of a configuration file, and the generated configuration file may include a target management item, for example, corresponding code development and release of an online mall. In addition, the conversion instruction in the configuration file is used for automatically and synchronously converting the code to be synchronized in terms of logic, language, environment compatibility and the like, so that the code management system for executing the code synchronization at present is independent of a service system, for example, the ES6/LESS source code in the current code management system needs to be compiled into a common javascript, a plurality of building commands (such as npm i, node xxx. Js) exist in the middle, the service system in the first code management system only needs to expose the npm run build instruction to the current code management system for execution, and the code management system needs to support the commands of the intermediate building commands (npm i, node xxx. Js), namely, the commands can be preconfigured through the configuration file.
For the embodiment of the present invention, step 202 may specifically include: analyzing code logic, code writing language and code environment compatible information in version management operation code information and business project code information in the first code management system; establishing a mapping relation corresponding to a code conversion interface matched with the second code management system according to the analyzed code logic, code writing language and code environment compatibility information, and determining a conversion instruction; and generating a configuration file according to the conversion instruction.
For the embodiment of the invention, in order to pre-establish the code conversion instruction matched with various code management systems, the automatic synchronization of codes is realized, the code logic, code writing language and code environment compatible information in the version management operation code information and the business project code information in the first code management system can be analyzed, and in order to convert the codes in the first code management system into the code form corresponding to the codes in the second code management system, the mapping relation corresponding to the code conversion interface can be established, namely, one code conversion interface can be utilized to extract the corresponding conversion instruction, the corresponding code conversion instruction can be pre-stored in a preset translator, the preset translator can store the conversion instruction of various code logic, code writing language and code environment compatible information, and the code conversion interface is marked by conversion content so as to match according to the code content in the first code management system.
203. And when a code pushing request sent by the first code management system is received, detecting whether the version information of the first code management system is the same as that of the second code management system.
For the embodiment of the invention, in order to avoid resource waste when the logic relationship, the code writing language and the code environment compatible information of the codes in the first code management system and the second code management system are the same, the invention needs to detect whether the version information of the first code management system and the version information of the second code management system are the same or not, wherein the version information comprises the logic relationship, the code writing language, the code environment compatible information, the code version management operation, the project information and the like of the codes, thereby improving the code management efficiency.
204a, if the version information of the first code management system is the same as that of the second code management system, pushing the code information of the first code management system to the second code management system.
For the embodiment of the invention, in order to improve the code management efficiency, when the version information of the first code management system is the same as that of the second code management system, the code information in the first code management system is directly pushed to the second code management system so as to be released by the second code management system.
For the embodiment of the present invention, step 204b, which is parallel to step 204a, acquires the code information to be synchronized in the first code management system if the version information of the first code management system is different from the version information of the second code management system.
The method of this step is the same as the method of step 101 shown in fig. 1, and will not be described here again.
Further, step 205 after step 204b determines whether there is a conversion instruction in the configuration file that matches the code information to be synchronized.
For the embodiment of the invention, in order that the current code management system can accurately execute code synchronization, whether a conversion instruction matched with code information to be synchronized in the first code management system exists in a configuration file needs to be judged, wherein the storage space in the configuration file is reduced, a code conversion interface is stored in the configuration file, and the corresponding conversion instruction can be matched through the code conversion interface, so that whether a method capable of performing code conversion exists in the configuration file is further determined.
206a, if so, converting the code information according to the conversion instruction.
For the embodiment of the invention, the conversion of the code information through the conversion instruction can be specifically that the obtained code content in the first code management system is matched with the corresponding code conversion interface from the configuration file, the corresponding code conversion instruction is called from the preset translator according to the interface, and the code information in the first code management system is translated into the code corresponding to the second code management system through executing the code conversion instruction. The code capable of performing code conversion includes cloning, updating, temporary storage, cleaning and switching branches of basic version management operation, and addresses of items under the system, logical relations, code parameter formats, language formats and the like corresponding to users and branches.
For the embodiment of the invention, if the code example does not exist in the step 206b parallel to the step 206a, the code example matched with the code information in the second code management system is downloaded, and the code example is sent to a preset translator for automatic writing and manual checking.
The downloaded code examples refer to code conversion examples matched with the corresponding second code management system in the internet, and can be the same as code conversion instructions in the second code management system or different from the code conversion instructions, if the code conversion instructions are different, the code examples need to be returned to a preset translator for re-writing, and as the compiling codes of multiple code conversion instructions are stored in the preset translator, code logic corresponding to the code examples can be extracted for automatic writing through calling the code conversion instructions of the same language environment, and then automatically written contents are sent to the front end for manual verification. In addition, if the corresponding code example cannot be downloaded, alarm information can be sent for manual writing, so that the existence probability of the code conversion instruction in the configuration file is improved, and the situation that automatic conversion cannot be performed due to the lack of the code conversion instruction in the current code management system is avoided.
For example, the Java language does not exist in the translator, the code example of the expression form and the logic relation of the Java language is downloaded from the network, mov a and B in the version a code are written as a=b of the version B of the Java language, the translator converts the code in the version a into the code of the version B step by step according to the code example, and then the code is fed back to the client side, so that staff can audit, and if no error exists, the conversion is performed through the platform.
Further, step 207 after step 206a pushes the converted code information to the second code management system.
This step is the same as the step 103 shown in fig. 1, and will not be described here again.
208. Detecting whether the version information of the second code management system changes or not according to a preset time interval, and if so, updating the configuration file.
For the embodiment of the invention, in order to avoid that the code conversion interface in the configuration file can still be matched with the corresponding conversion instruction when the second code management system is replaced, whether the second code management system is changed or not needs to be detected according to preset time. If a change occurs, the configuration file needs to be updated in time, and the specific manner may regenerate the configuration file according to step 202, which is not particularly limited in the embodiment of the present invention.
The embodiment of the invention detects whether the two code management systems need to carry out code synchronization before carrying out code conversion by generating the configuration file with the code conversion instructions of the plurality of code management systems in advance, if so, finds the corresponding code conversion instruction from the configuration file, and then converts the code in the first code management system to match the code in the second management system, thereby realizing automatic code conversion between the two code management systems with different versions, avoiding the resource waste of the code conversion and improving the code management efficiency.
Further, as an implementation of the method shown in fig. 1, an embodiment of the present invention provides a synchronization apparatus of a code management system, as shown in fig. 3, where the apparatus includes: an acquisition unit 31, a conversion unit 32, a pushing unit 33.
An obtaining unit 31, configured to obtain code information to be synchronized in a first code management system, where the code information includes version management operation code information and service item code information of the first code management system;
a conversion unit 32, configured to extract a conversion instruction matched with the code information to be synchronized in the configuration file, and convert the conversion instruction, where the conversion instruction is used to convert the information to be synchronized into information matched with a second code management system;
and a pushing unit 33, configured to push the converted code information to the second code management system.
Compared with the prior art that when the collaborative version systems used by the development system and the release system are inconsistent, manual operation is needed to synchronize the development system and the release system, the embodiment of the invention realizes automatic conversion of codes between two different versions of code management systems by extracting the codes in the first code management system into the codes in the second code management system from the configuration file which is configured in advance and is used for providing the code conversion instruction, thereby improving the efficiency of code management.
Further, as an implementation of the method shown in fig. 2, an embodiment of the present invention provides another synchronization apparatus of a code management system, as shown in fig. 4, where the apparatus includes: an acquisition unit 41, a conversion unit 42, a pushing unit 43, a generation unit 44, a detection unit 45, a setup unit 46, and an update unit 47.
An obtaining unit 41, configured to obtain code information to be synchronized in a first code management system, where the code information includes version management operation code information and service item code information of the first code management system;
a conversion unit 42, configured to extract a conversion instruction in the configuration file, which is matched with the code information to be synchronized, and convert the conversion instruction, where the conversion instruction is used to convert the information to be synchronized into information matched with a second code management system;
and a pushing unit 43, configured to push the converted code information to the second code management system.
Further, the apparatus further comprises:
a generating unit 44 for generating a configuration file with conversion instructions corresponding to the code conversion interface matching the code logic, the code writing language, the code environment compatible information of the code information.
Further, the apparatus further comprises: the detecting unit 45 is configured to detect,
the detecting unit 45 is configured to detect, when a code pushing request sent by the first code management system is received, whether version information of the first code management system is the same as version information of the second code management system;
the pushing unit 43 is further configured to push the code information of the first code management system to the second code management system if the version information of the first code management system is the same as the version information of the second code management system;
the obtaining unit 41 is specifically configured to obtain the code information to be synchronized in the first code management system if the version information of the first code management system is different from the version information of the second code management system.
Further, the apparatus further comprises:
the establishing unit 46 is configured to establish an operation platform with web service and background service functions by using the Javascript operation environment node.
Further, the generating unit 44 includes:
the parsing module 4401 is configured to parse the version management operation code information in the first code management system and the code logic, the code writing language and the code environment compatibility information in the service item code information;
the determining module 4402 is configured to establish a mapping relationship corresponding to a code conversion interface matched with the second code management system according to the parsed code logic, code writing language and code environment compatibility information, and determine a conversion instruction;
and a generating module 4403, configured to generate a configuration file according to the conversion instruction.
Further, the conversion unit 42 includes:
a judging module 4201, configured to judge whether a conversion instruction matching the code information to be synchronized exists in the configuration file;
a conversion module 4202, configured to convert the code information according to the conversion instruction if the code information exists;
and a downloading module 4203, configured to download a code instance that matches the code information in the second code management system if the code instance does not exist, and send the code instance to a preset translator for automatic writing and manual review.
Further, the apparatus further comprises:
and an updating unit 47, configured to detect whether the version information of the second code management system changes according to a preset time interval, and if so, update the configuration file.
The embodiment of the invention detects whether the two code management systems need code synchronization before code conversion by generating the configuration file with the code conversion instructions of the plurality of code management systems in advance, if so, finds the corresponding code conversion instruction from the configuration file, and then converts the code in the first code management system to match the code in the second management system, thereby realizing automatic code conversion between the two code management systems with different versions, avoiding the resource waste of code conversion and improving the code management efficiency.
According to one embodiment of the present invention, there is provided a storage medium storing at least one executable instruction for performing the synchronization method of the code management system in any of the above-described method embodiments.
Fig. 5 is a schematic structural diagram of a terminal according to an embodiment of the present invention, and the specific embodiment of the present invention is not limited to the specific implementation of the terminal.
As shown in fig. 5, the terminal may include: a processor 502, a communication interface (Communications Interface) 504, a memory 506, and a communication bus 508.
Wherein: processor 502, communication interface 504, and memory 506 communicate with each other via communication bus 508.
A communication interface 504 for communicating with network elements of other devices, such as clients or other servers.
The processor 502 is configured to execute the program 510, and may specifically perform relevant steps in the synchronization method embodiment of the code management system.
In particular, program 510 may include program code including computer-operating instructions.
The processor 502 may be a central processing unit CPU, or a specific integrated circuit ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement embodiments of the present invention. The one or more processors included in the terminal may be the same type of processor, such as one or more CPUs; but may also be different types of processors such as one or more CPUs and one or more ASICs.
A memory 506 for storing a program 510. Memory 506 may comprise high-speed RAM memory or may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The program 510 may be specifically operable to cause the processor 502 to:
acquiring code information to be synchronized in a first code management system, wherein the code information comprises version management operation code information and business item code information of the first code management system;
extracting a conversion instruction matched with the code information to be synchronized in a configuration file, and converting, wherein the conversion instruction is used for converting the information to be synchronized into information matched with a second code management system;
and pushing the converted code information to the second code management system.
It will be appreciated by those skilled in the art that the modules or steps of the invention described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may alternatively be implemented in program code executable by computing devices, so that they may be stored in a memory device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than that shown or described, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps within them may be fabricated into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only of the preferred embodiments of the present invention and is not intended to limit the present invention, but various modifications and variations can be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (8)
1. A method for synchronizing a code management system, comprising:
analyzing code logic, code writing language and code environment compatible information in version management operation code information and business item code information in a first code management system;
establishing a mapping relation corresponding to a code conversion interface matched with a second code management system according to the analyzed code logic, code writing language and code environment compatible information, and determining a conversion instruction, wherein the conversion instruction is a code instruction corresponding to the code conversion interface matched with the code logic, code writing language and code environment compatible information of the code information;
generating a configuration file according to the conversion instruction;
acquiring code information to be synchronized in a first code management system, wherein the code information comprises version management operation code information and business item code information of the first code management system;
extracting a conversion instruction matched with the code information to be synchronized in the configuration file, and converting, wherein the conversion instruction is used for converting the information to be synchronized into information matched with a second code management system;
and pushing the converted code information to the second code management system.
2. The method of claim 1, wherein prior to the obtaining the code information to be synchronized in the first code management system, the method further comprises:
when a code pushing request sent by the first code management system is received, detecting whether version information of the first code management system is the same as version information of the second code management system;
if the version information of the first code management system is the same as that of the second code management system, pushing the code information of the first code management system to the second code management system;
the obtaining the code information to be synchronized in the first code management system includes:
and if the version information of the first code management system is different from that of the second code management system, acquiring the code information to be synchronized in the first code management system.
3. The method of claim 2, wherein prior to the obtaining the code information to be synchronized in the first code management system, the method further comprises:
and establishing an operation platform with webpage service and background service functions by using the Javascript operation environment node. Js.
4. The method of claim 1, wherein extracting and converting a conversion instruction in the configuration file that matches the code information to be synchronized comprises:
judging whether a conversion instruction matched with the code information to be synchronized exists in the configuration file or not;
if yes, converting the code information according to the conversion instruction;
if the code example does not exist, downloading the code example matched with the code information in the second code management system, and sending the code example to a preset translator for automatic writing and manual checking.
5. The method according to claim 4, wherein the method further comprises:
detecting whether the version information of the second code management system changes or not according to a preset time interval, and if so, updating the configuration file.
6. A synchronization apparatus of a code management system, comprising:
the system comprises an acquisition unit, a synchronization unit and a synchronization unit, wherein the acquisition unit is used for acquiring code information to be synchronized in a first code management system, and the code information comprises version management operation code information and business item code information of the first code management system;
the conversion unit is used for extracting a conversion instruction matched with the code information to be synchronized in the configuration file and converting the conversion instruction, and the conversion instruction is used for converting the information to be synchronized into information matched with a second code management system;
the pushing unit is used for pushing the converted code information to the second code management system;
wherein, the acquisition unit is further used for:
analyzing code logic, code writing language and code environment compatible information in version management operation code information and business project code information in the first code management system;
establishing a mapping relation corresponding to a code conversion interface matched with the second code management system according to the analyzed code logic, code writing language and code environment compatibility information, and determining a conversion instruction, wherein the conversion instruction is a code instruction corresponding to the code conversion interface matched with the code logic, code writing language and code environment compatibility information of the code information;
and generating a configuration file according to the conversion instruction.
7. A storage medium having stored therein at least one executable instruction for causing a processor to perform operations corresponding to the synchronization method of a code management system according to any one of claims 1-5.
8. A terminal, comprising: the device comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete communication with each other through the communication bus;
the memory is configured to store at least one executable instruction that causes the processor to perform operations corresponding to the synchronization method of the code management system according to any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810434490.4A CN109725927B (en) | 2018-05-08 | 2018-05-08 | Synchronization method and device of code management system, storage medium and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810434490.4A CN109725927B (en) | 2018-05-08 | 2018-05-08 | Synchronization method and device of code management system, storage medium and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109725927A CN109725927A (en) | 2019-05-07 |
CN109725927B true CN109725927B (en) | 2023-07-21 |
Family
ID=66294522
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810434490.4A Active CN109725927B (en) | 2018-05-08 | 2018-05-08 | Synchronization method and device of code management system, storage medium and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109725927B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110389755B (en) * | 2019-07-24 | 2023-09-08 | 网易(杭州)网络有限公司 | Code processing method and device, electronic equipment and computer readable storage medium |
CN111930411B (en) * | 2020-09-30 | 2020-12-29 | 腾讯科技(深圳)有限公司 | Code upgrading method and device, computer equipment and storage medium |
CN113391840B (en) * | 2021-06-30 | 2024-08-02 | 中国工商银行股份有限公司 | Synchronization method and device for automatically identifying synchronization conflict and resolving conflict |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103677765A (en) * | 2012-08-31 | 2014-03-26 | 腾讯科技(深圳)有限公司 | Version automatic issuing method, device and storage medium |
CN104125480A (en) * | 2013-04-26 | 2014-10-29 | 英特尔公司 | Improved transcoding management techniques |
US9430229B1 (en) * | 2013-03-15 | 2016-08-30 | Atlassian Pty Ltd | Merge previewing in a version control system |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2005069125A2 (en) * | 2003-12-15 | 2005-07-28 | Evolveware Information Technology (India) Pvt. Ltd. | An apparatus for migration and conversion of software code from any source platform to any target platform |
US8037451B2 (en) * | 2006-10-03 | 2011-10-11 | International Business Machines Corporation | Method for tracking code revisions with a checksum data value being automatically appended to source files |
CN104346146B (en) * | 2013-07-29 | 2016-05-04 | 腾讯科技(深圳)有限公司 | A kind of method of cross-platform transformation applications code and device |
CN104536751B (en) * | 2014-12-26 | 2018-04-06 | 小米科技有限责任公司 | Webpage source code moving method and device |
CN105867895A (en) * | 2015-11-20 | 2016-08-17 | 乐视致新电子科技(天津)有限公司 | Method for realizing code management and need management information synchronization and device thereof |
CN106775714B (en) * | 2016-12-15 | 2020-10-16 | 武汉斗鱼网络科技有限公司 | Code synchronization method and system |
-
2018
- 2018-05-08 CN CN201810434490.4A patent/CN109725927B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103677765A (en) * | 2012-08-31 | 2014-03-26 | 腾讯科技(深圳)有限公司 | Version automatic issuing method, device and storage medium |
US9430229B1 (en) * | 2013-03-15 | 2016-08-30 | Atlassian Pty Ltd | Merge previewing in a version control system |
CN104125480A (en) * | 2013-04-26 | 2014-10-29 | 英特尔公司 | Improved transcoding management techniques |
Non-Patent Citations (1)
Title |
---|
基于代码自动生成技术的管理信息系统的实现;陈清 等;计算机与数字工程(02);第120-122页 * |
Also Published As
Publication number | Publication date |
---|---|
CN109725927A (en) | 2019-05-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1988535B (en) | Synchronous method, system for file storage and customer terminal | |
CN107665233B (en) | Database data processing method and device, computer equipment and storage medium | |
US8825750B2 (en) | Application server management system, application server management method, management apparatus, application server and computer program | |
CN109800207B (en) | Log analysis method, device and equipment and computer readable storage medium | |
CN109725927B (en) | Synchronization method and device of code management system, storage medium and terminal | |
KR20210040874A (en) | Mini app processing method, server, device, storage medium, and program | |
CN110543297B (en) | Method and apparatus for generating source code | |
JP2010117957A (en) | Configuration management server, name specification method, and name specification program | |
CN105278972A (en) | A system and method using a dynamic install package to allow users to fast become friends | |
CN111683066A (en) | Heterogeneous system integration method and device, computer equipment and storage medium | |
CN112131224A (en) | Application installation package processing and installation source determining method, device and traceability system | |
CN106603593A (en) | HTTP calling method and device based on adaption | |
CN112887451B (en) | Domain name resolution method and device and computer equipment | |
CN112769706A (en) | Componentized routing method and system | |
CN116414774A (en) | File migration method, device, equipment and storage medium | |
CN105094787B (en) | Method and device for processing enterprise internet application | |
CN111488286B (en) | Method and device for independently developing Android modules | |
CN104717280A (en) | Data synchronism marking method and device | |
CN112732265A (en) | Data processing method and related device | |
CN117130990A (en) | Data processing method and device | |
AU2018313995B2 (en) | Systems and methods for providing globalization features in a service management application interface | |
CN111352742B (en) | APP-based componentization information transmission method and apparatus | |
CN114647688A (en) | Service data sharing method and device and computer storage medium | |
CN112217852A (en) | Platform-as-a-service system and method based on workflow engine | |
CN113535221A (en) | Method and device for managing application version |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |