Unlock instant, AI-driven research and patent intelligence for your innovation.

A code synchronization method and system

A technology for synchronizing systems and codes, which is applied in the field of communication, and can solve problems such as Git management, unusable developers, and inability to realize synchronous code management.

Active Publication Date: 2020-10-16
WUHAN DOUYU NETWORK TECH CO LTD
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Many developers are accustomed to using Git for code management, but many companies use SVN as a code management tool, and currently Git and SVN cannot achieve synchronous code management, so developers of companies using SVN cannot use Git to manage code

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
  • A code synchronization method and system
  • A code synchronization method and system
  • A code synchronization method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0050] An embodiment of the present invention provides a code synchronization method.

[0051] The system on which the method is based includes a first manager, an intermediate server, and a second manager. Just because an intermediate server is added between the first manager and the second manager, it is possible to achieve Code synchronization between two managers. Before performing the code synchronization operation, the intermediate server needs to generate a digital certificate, which is used for communicating with the first manager and the second manager. After the intermediate server generates the digital certificate, it configures the digital certificate on the first manager and the second manager. Afterwards, each time the intermediate server communicates with the first manager and the second manager, it will carry the digital certificate, and the certificate communication between the first manager and the second manager will be carried out through the digital certifi...

Embodiment 2

[0089] see image 3 , the embodiment of the present invention provides a code synchronization method, the execution subject of the method is the intermediate server in the code synchronization method provided in the above-mentioned embodiment 1, and the method specifically includes the following steps:

[0090] Step 201: Receive a synchronization notification sent by the first manager, the synchronization notification carrying the identifier of the first manager, the identifier of the second manager, the project identifier and the commit log.

[0091] Step 202: Obtain the project file corresponding to the project identifier according to the identifier of the second manager and the project identifier.

[0092] Step 203: Obtain the code to be synchronized from the first manager according to the identifier of the first manager.

[0093] Step 204: Add the code to be synchronized to the project file to obtain the synchronized file, and send the commit log and the synchronized file...

Embodiment 3

[0105] see Figure 4 , the embodiment of the present invention provides a code synchronization method, the execution subject of the method is the first manager in the code synchronization method provided in Embodiment 1, and the method specifically includes the following steps:

[0106] Step 301: Sending a synchronization notification to the intermediate server, the synchronization notification carrying the ID of the first manager, the ID of the second manager, the ID of the project and the commit log.

[0107] Step 302: When receiving an acquisition request from the intermediate server to obtain the code, transmit the code to be synchronized to the intermediate server, so that the intermediate server synchronizes the code to be synchronized to the second manager.

[0108] The code to be synchronized in the first manager is synchronized to the second manager in the above manner. In the embodiment of the present invention, the code to be synchronized in the second manager can ...

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 invention provides a method and a system for synchronizing codes. The method includes receiving synchronization notification transmitted by a first manager; acquiring item files corresponding to item identifiers according to identifiers of a second manager and the item identifiers; acquiring the to-be-synchronized codes from the first manager according to identifiers of the first manager, adding the to-be-synchronized codes into the item files to obtain synchronization files and transmitting commitment log and the synchronization files to the second manager. The synchronization notification carries the identifiers of the first manager, the identifiers of the second manager, the item identifiers and the commitment log. The method and the system have the advantages that a middle server is additionally arranged between the first manager and the second manger, the codes between the first manager and the second manager can be synchronized by the middle server, accordingly, the codes between GiT and SVN can be synchronized, and the GiT can be used by developers in companies with the SVN as code management tools.

Description

technical field [0001] The present invention relates to the technical field of communications, and in particular, to a code synchronization method and system. Background technique [0002] Currently, SVN (Subversion, open source version control system) and Git (distributed version control system) are two commonly used version control tools for code development. [0003] Git is a version control tool for Linux kernel development. It adopts a distributed version library and does not require server-side software support, making the release and exchange of source code extremely convenient. SVN adopts a branch management system for multiple people to jointly develop the same project, so that multiple people who develop the same project can share resources. For developers who are familiar with code development, the flexibility and versatility of Git are unmatched by SVN. Many developers are accustomed to using Git for code management, but many companies use SVN as a code managem...

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/70
CPCG06F8/70
Inventor 丁鹏
Owner WUHAN DOUYU NETWORK TECH CO LTD