CN110688140B - Code management method and terminal - Google Patents

Code management method and terminal Download PDF

Info

Publication number
CN110688140B
CN110688140B CN201910964097.0A CN201910964097A CN110688140B CN 110688140 B CN110688140 B CN 110688140B CN 201910964097 A CN201910964097 A CN 201910964097A CN 110688140 B CN110688140 B CN 110688140B
Authority
CN
China
Prior art keywords
code
target
development
terminal
branch
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
Application number
CN201910964097.0A
Other languages
Chinese (zh)
Other versions
CN110688140A (en
Inventor
杨海燕
黄雪梅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Chuanggong Telecom Technology Co Ltd
Original Assignee
Shanghai Chuanggong Telecom Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Chuanggong Telecom Technology Co Ltd filed Critical Shanghai Chuanggong Telecom Technology Co Ltd
Priority to CN201910964097.0A priority Critical patent/CN110688140B/en
Publication of CN110688140A publication Critical patent/CN110688140A/en
Application granted granted Critical
Publication of CN110688140B publication Critical patent/CN110688140B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a code management method and a terminal, which are used for improving the efficiency of processing codes. The code management method comprises the following steps: the terminal downloads the development code from the server through a pre-stored guide file; the terminal determines a target development branch and a development branch code; the terminal downloads a baseline branch code from the server, wherein the baseline branch code is a source code branch of a target development branch; the terminal merges the development branch code and the baseline branch code to obtain a target development code; the terminal updates the guide file according to the target development code to obtain a target guide file, wherein the target guide file points to the target development code; the terminal submits the target development code to the server to update the code of the target development branch. In this way, the terminal downloads the development code from the server through the pre-stored guide file, and combines the development branch code and the baseline branch code to obtain the target development code, so that the updating of the code can be realized, and the code processing efficiency is improved.

Description

Code management method and terminal
Technical Field
The present invention relates to the field of information processing technologies, and in particular, to a code management method and a terminal.
Background
The existing code upgrading mode mainly depends on manual completion.
When the codes are updated, the user needs to manually download the codes, process the newly added and deleted library and the like every time, and at this time, the workload of the user is large, the time is long, and the code storage server is required to be occupied continuously for a long time. This results in a slow pace of development and a lower efficiency in processing code.
Disclosure of Invention
The invention aims to provide a code management method and a terminal, which are used for improving the efficiency of processing codes.
To achieve the purpose, the embodiment of the invention adopts the following technical scheme:
a code management method, comprising:
the terminal downloads the development code from the server through a pre-stored guide file;
the terminal determines a target development branch and development branch codes, wherein the target development branch is a development branch to be updated on the server, and the development branch codes are codes belonging to the target development branch in the development codes;
the terminal downloads a baseline branch code from the server, wherein the baseline branch code is a source code branch of the target development branch;
the terminal merges the development branch code and the baseline branch code to obtain a target development code;
the terminal updates the guide file according to the target development code to obtain a target guide file, wherein the target guide file points to the target development code;
the terminal submits the target development code to the server to update the code of the target development branch.
Optionally, before the terminal updates the guide file according to the target development code to obtain the target guide file, the method further includes:
judging whether the target development code passes through compiling;
and if the target development code passes the compiling, the terminal executes the step of updating the guide file according to the target development code to obtain a target guide file.
Optionally, the method further comprises:
the terminal downloads an AP part baseline code from the server;
the terminal updates the AP part baseline code to obtain a target AP part baseline code;
pushing the target AP part baseline code to a storage bin by the terminal;
the terminal generates an AP part guide file, wherein the AP part guide file points to the target AP part baseline code;
the terminal downloads BP part baseline codes from the server;
the terminal processes the BP part baseline code to obtain a target BP part baseline code;
the terminal pushes the target BP part baseline code to a storage bin;
the terminal generates a BP part guide file, wherein the BP part guide file points to the target BP part baseline code;
and the terminal generates a baseline guide file according to the AP part guide file and the BP part guide file.
Optionally, the terminal processes the BP part baseline code to obtain a target BP part baseline code, including:
and initializing or iterating the BP part baseline code by the terminal to obtain a target BP part baseline code.
Optionally, the method further comprises:
when the terminal fails to download in the process of downloading the development code from the server, the terminal detects a download state and re-downloads the development code from the server.
Optionally, the terminal applies a Jenkins open source Pipeline technology of a task scheduling server to execute the code management method.
To achieve the purpose, the embodiment of the invention also adopts the following technical scheme:
a terminal, comprising:
the downloading unit is used for downloading development codes from the server through a pre-stored guide file;
the system comprises a determining unit, a processing unit and a processing unit, wherein the determining unit is used for determining a target development branch and development branch codes, the target development branch is a development branch to be updated on the server, and the development branch codes are codes belonging to the target development branch in the development codes;
the downloading unit is further configured to download a baseline branch code from the server, where the baseline branch code is a source code branch of the target development branch;
the merging unit is used for merging the development branch code and the baseline branch code to obtain a target development code;
the updating unit is used for updating the guide file according to the target development code to obtain a target guide file, wherein the target guide file points to the target development code;
and the submitting unit is used for submitting the target development code to the server so as to update the code of the target development branch.
Optionally, the terminal further comprises a judging unit;
the judging unit is used for judging whether the target development code passes through compiling;
and if the target development code passes the compiling, the updating unit executes the step of updating the guide file according to the target development code to obtain a target guide file.
Optionally, the terminal further comprises a pushing unit, a generating unit and a processing unit;
the downloading unit is further used for downloading the AP part baseline code from the server;
the processing unit is used for updating the AP part baseline code to obtain a target AP part baseline code;
the pushing unit is used for pushing the target AP part baseline code to a storage bin;
the generating unit is used for generating an AP part guide file, and the AP part guide file points to the target AP part baseline code;
the downloading unit is further used for downloading BP part baseline codes from the server;
the processing unit is further used for processing the BP part baseline code to obtain a target BP part baseline code;
the pushing unit is further configured to push the target BP part baseline code to a storage bin;
the generating unit is further configured to generate a BP part guide file, where the BP part guide file points to the target BP part baseline code;
the generating unit is further configured to generate a baseline guide file according to the AP part guide file and the BP part guide file.
Optionally, the processing unit is further configured to initialize or iterate the BP part baseline code to obtain a target BP part baseline code.
The invention has the beneficial effects that:
in the code management method of the embodiment of the invention, the terminal downloads the development code from the server through the pre-stored guide file, then the terminal determines a target development branch and a development branch code, the target development branch is a development branch to be updated on the server, and the development branch code is a code belonging to the target development branch in the development code. The terminal downloads the baseline branch code from the server, the baseline branch code being the source code branch of the target development branch. And the terminal merges the development branch code and the baseline branch code to obtain the target development code. Then, the terminal updates the guide file according to the target development code to obtain a target guide file, wherein the target guide file points to the target development code. Thus, the terminal submits the target development code to the server to update the code of the target development branch. In this way, the terminal downloads the development code from the server through the pre-stored guide file, after determining the development branch code from the development code, the development branch code and the baseline branch code are combined to obtain the target development code, and the target development code is submitted to the server, so that the updating of the code can be realized, and the code processing efficiency is improved.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions of the prior art, the drawings which are used in the description of the embodiments or the prior art will be briefly described, it being obvious that the drawings in the description below are only some embodiments of the invention, and that other drawings can be obtained from these drawings without inventive faculty for a person skilled in the art.
FIG. 1 is a flowchart of a code management method according to an embodiment of the present invention;
FIG. 2 is a flowchart of a code management method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a code management method and a terminal, which are used for improving the efficiency of processing codes.
In order to make the objects, features and advantages of the present invention more comprehensible, the technical solutions in the embodiments of the present invention are described in detail below with reference to the accompanying drawings, and it is apparent that the embodiments described below are only some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The technical scheme of the invention is further described below by the specific embodiments with reference to the accompanying drawings.
Fig. 1 is a flowchart of a code management method according to an embodiment of the present invention, where the code management method may be applied to a terminal.
Referring to fig. 1, a code management method according to an embodiment of the present invention includes:
step 101: the terminal downloads the development code from the server through a pre-stored guide file.
A boot file is pre-stored on the terminal, the boot file pointing to certain development code. The terminal can download the development code from the server to the local through the boot file.
In an embodiment of the present invention, the boot file is a manifest library that may contain a plurality of manifest files and a plurality of branches, each of which has a corresponding version. The manifest file is organized in extensible markup language (XML) format. The boot file may contain remote, default, project, copyfile or the like elements. This boot file is dedicated for use with the repo tool for pointing to the corresponding branch code library, and can be used to describe all the information of the current repo management branch.
Step 102: the terminal determines a target development branch and a development branch code.
The target development branch is a development branch to be updated on the server, and the development branch code is a code belonging to the target development branch in the development code. The development code downloaded locally requires a specific development branch to the remote server.
On the server, the codes are managed by one code repository. Each code repository in turn binds many branches of development. The terminal downloads the development codes from the server to the local through the pre-stored boot files, but downloads the code bins to the local, and cannot determine which development branch the codes correspond to. To this end, the terminal determines a target development branch and development branch code, and directs the development branch code to one of the target development branches bound on the server by an instruction. Specifically, this may be accomplished by switching branch instructions.
Step 103: the terminal downloads the baseline branch code from the server.
The baseline branch code is the source code branch of the target development branch.
The terminal downloads the baseline branching code on the server locally for processing.
The development code is another set of development code which is extended based on the base line branch code, and the base line branch code and the development code are synchronous in the beginning stage. During development, developers perform secondary development based on the development code, which increases the difference between the baseline branch code and the development code.
Step 104: and the terminal merges the development branch code and the baseline branch code to obtain the target development code.
The terminal acquires the development code and the baseline branch code, and can combine the development code and the baseline branch code to obtain the target development code.
In some embodiments, because there are many differences between the development code and the baseline branch code, a human decision conflict resolution is required during the merging process to resolve the differences between the development code and the baseline branch code.
Step 105: and the terminal updates the guide file according to the target development code to obtain the target guide file.
Wherein the target boot file points to the target development code.
The terminal updates the guide file according to the target development code, updates and upgrades the guide file of the original development code, and can ensure that the guide file points to the latest code node.
Optionally, before the terminal updates the guide file according to the target development code and obtains the target guide file, the method in the embodiment of the invention further includes: and judging whether the target development code passes the compiling. If the target development code is compiled, the terminal performs step 105.
The terminal merges the development codes and the baseline branch codes to obtain target development codes, and whether the quality of the merged target development codes can pass or not needs to be compiled and verified.
Step 106: the terminal submits the target development code to the server.
After the terminal generates the target development code, the terminal submits the target development code to the server to update the code of the target development branch. Thereby being synchronously used by other developers.
The steps relate to the iterative upgrade of the development code, and the code management method of the embodiment of the invention also relates to the iterative upgrade of the Baseline branch code of the platform Baseline.
As shown in fig. 2, fig. 2 is a flowchart of a code management method according to an embodiment of the present invention. Referring to fig. 2, the code management method according to the embodiment of the present invention further includes:
step 201: the terminal downloads the AP part baseline code from the server.
To enable iterative upgrades to the baseline branch code, the terminal downloads an application processor (Application Processor, AP) portion of the baseline code from the server.
Step 202: and updating the AP part baseline code by the terminal to obtain the target AP part baseline code.
The terminal acquires the AP part baseline code and performs updating operation on the AP part baseline code to obtain the target AP part baseline code.
Step 203: the terminal pushes the target AP part baseline code to a storage bin.
After the AP part baseline codes are acquired, the terminal pushes the AP part baseline codes to a storage bin for storage.
The storage bin is a warehouse for storing codes, and the storage bin can be arranged on a special server.
Step 204: the terminal generates an AP part guide file.
The AP part boot file points to the target AP part baseline code.
To record the AP part baseline code, the terminal generates an AP part boot file that points to the AP part baseline code.
Step 205: the terminal downloads the BP part baseline code from the server.
To enable iterative upgrades to the baseline branch code, the terminal downloads a baseband processor (Baseband Processor, BP) portion of the baseline code from the server.
Wherein the terminal has two processors.
1) The operating system, user interface, and application programs are all executing on the application processor.
2) The radio frequency communication (hardware) control software runs on another separate processor, called the baseband processor.
The code will be split into AP and BP.
Step 206: and the terminal processes the BP part baseline code to obtain the target BP part baseline code.
The terminal may process the BP part baseline code to update the BP part baseline code to obtain the target BP part baseline code.
Specifically, step 205 specifically includes: and initializing or iterating the BP part baseline code by the terminal to obtain the target BP part baseline code.
For example, the BP part baseline code is updated using create, first upgrade the pro-prietary (part code proprietary to the manufacturer), and upgrade the non-basestation (part of code containing the baseband associated with the processing protocol). Then, code initialization is performed. Or upgrading the BP part baseline code by using an update mode, specifically upgrading the prietary, and performing the prietary code iteration; and upgrading the non-hlos, and performing non-hlos code iteration. In both modes, the processing of the BP partial baseline code can be realized.
Step 207: and pushing the target BP part baseline code to a storage bin by the terminal.
After the target BP part baseline code is obtained, the terminal can push the target BP part baseline code to a storage bin for storage.
Optionally, before step 207, the terminal may add descriptive information to the target BP portion baseline code. In other words, for each modification, it is necessary to add descriptive information including: modifying content, modifying date, what questions are resolved, whether there is risk of introduction, whether cross-validation is required, etc. The description information may be added, typically by a git tool.
Alternatively, in some embodiments of the present invention, if there is an added bin, a list may be generated for recording and the list emailed to the relevant personnel to create the bin.
Step 208: the terminal generates a BP part guide file.
The BP portion boot file points to the target BP portion baseline code.
To record the target BP part baseline code, the terminal may also generate a BP part guide file that points to the target BP part baseline code.
It should be understood that the AP part boot file and the BP part boot file are generated in a similar manner, specifically, after a series of upgrades, iterations, compilations, validations, and submissions, it is confirmed that the relevant code is not abnormal, and then all the information of the current code is extracted and written into the corresponding XML file to be used for marking the node. The XML file is the guide file, and the AP part guide file and the BP part guide file belong to the types of the guide files.
Step 209: and the terminal generates a baseline guide file according to the AP part guide file and the BP part guide file.
After the AP part guide file and the BP part guide file are obtained, the terminal generates a baseline guide file according to the AP part guide file and the BP part guide file.
It should be understood that in the embodiment of the present invention, the whole flow of the code management method can be split into two stages: i.e., an iterative upgrade phase of the development code and the Baseline branch code of the platform Baseline.
Optionally, the end application task scheduling server (Jenkins) open source Pipeline technology performs the code management method. Specifically, the Jenkins open source Pipeline technology is adopted, each of the two phases is operated independently to decouple the binding, and whether the operation of the next phase is performed is judged according to the operation result of each phase.
Optionally, the code management method of the embodiment of the present invention further includes: when a download failure occurs in the process of downloading the development code from the server by the terminal, the terminal detects the download state and downloads the development code from the server again.
Specifically, in the method of the embodiment of the invention, a code download detection function is added, if unexpected interruption or failure occurs in the middle of downloading the code and the code is unattended, the terminal can automatically detect the code download state and re-download the code in time, so that the upgrading time can be greatly shortened.
It should be appreciated that in some embodiments, the function of checking detailed modification information of each line of the file may be added, so that a person responsible for the conflicting file may be quickly located, and the development work efficiency may be improved.
It should be appreciated that in some embodiments, the code repository may be automatically checked against the XML format boot file to detect code repository changes and discover code changes in time.
It should be appreciated that in some embodiments, statistical functionality of the data (including research and development effort data, server usage data, efficiency improvement data) may be added to facilitate subsequent data presentation.
Thus, the code management method of the embodiment of the invention can realize high-quality code combination and avoid the condition of manual operation errors of projects; compared with the current mainstream upgrading scheme, the efficiency is improved; moreover, a modification record of a platform baseline is reserved, so that the disc copying is facilitated; and through multi-dimensional data recording, the subsequent optimization points can be fed back, so that the whole system can be continuously evolved.
In summary, in the code management method according to the embodiment of the present invention, the terminal downloads the development code from the server through the pre-stored boot file, and then the terminal determines the target development branch and the development branch code, where the target development branch is the development branch to be updated on the server, and the development branch code is the code belonging to the target development branch in the development code. The terminal downloads the baseline branch code from the server, the baseline branch code being the source code branch of the target development branch. And the terminal merges the development branch code and the baseline branch code to obtain the target development code. Then, the terminal updates the guide file according to the target development code to obtain a target guide file, wherein the target guide file points to the target development code. Thus, the terminal submits the target development code to the server to update the code of the target development branch. In this way, the terminal downloads the development code from the server through the pre-stored guide file, after determining the development branch code from the development code, the development branch code and the baseline branch code are combined to obtain the target development code, and the target development code is submitted to the server, so that the updating of the code can be realized, and the code processing efficiency is improved.
Fig. 3 is a schematic structural diagram of a terminal according to an embodiment of the present invention, where the terminal may be used to execute the code management method shown in fig. 1 and fig. 2.
As shown in fig. 3, a terminal according to an embodiment of the present invention includes:
a downloading unit 301 for downloading development codes from a server through a pre-stored guide file;
a determining unit 302, configured to determine a target development branch and a development branch code, where the target development branch is a development branch to be updated on a server, and the development branch code is a code belonging to the target development branch in the development code;
the downloading unit 301 is further configured to download a baseline branch code from the server, where the baseline branch code is a source code branch of the target development branch.
A merging unit 303, configured to merge the development branch code and the baseline branch code to obtain a target development code;
an updating unit 304, configured to update a guide file according to a target development code to obtain a target guide file, where the target guide file points to the target development code;
and a submitting unit 305, configured to submit the target development code to the server, so as to update the code of the target development branch.
Optionally, the terminal in the embodiment of the present invention further includes a judging unit 306;
a judging unit 306, configured to judge whether the target development code passes through compilation;
if the target development code is compiled, the updating unit 304 performs a step of updating the boot file according to the target development code to obtain the target boot file.
Optionally, the terminal of the embodiment of the present invention further includes a pushing unit 307, a generating unit 308, and a processing unit 309;
a downloading unit 301, configured to download the AP part baseline code from the server;
a processing unit 309, configured to update the AP part baseline code to obtain a target AP part baseline code;
a pushing unit 307, configured to push the target AP part baseline code to a storage bin;
a generating unit 308, configured to generate an AP part guide file, where the AP part guide file points to a target AP part baseline code;
a downloading unit 301, configured to download the BP part baseline code from the server;
the processing unit 309 is further configured to process the BP part baseline code to obtain a target BP part baseline code;
a pushing unit 307, configured to push the target BP part baseline code to a storage bin;
the generating unit 308 is further configured to generate a BP part guide file, where the BP part guide file points to the target BP part baseline code;
the generating unit 308 is further configured to generate a baseline guide file according to the AP part guide file and the BP part guide file.
Optionally, the processing unit 309 is further configured to initialize or iterate the BP part baseline code to obtain a target BP part baseline code.
Optionally, the downloading unit 301 is further configured to detect a download status and re-download the development code from the server when a download failure occurs in a process of downloading the development code from the server by the terminal.
Optionally, the terminal application task scheduling server Jenkins open source Pipeline technology of the embodiment of the invention executes the code management method.
In summary, in the terminal according to the embodiment of the present invention, the download unit 301 downloads the development code from the server through the pre-stored boot file, and then the determination unit 302 determines the target development branch, which is the development branch to be updated on the server, and the development branch code, which is the code belonging to the target development branch in the development code. The downloading unit 301 downloads the baseline branch code from the server, and after the baseline branch code is the source code branch of the target development branch, the merging unit 303 merges the development branch code and the baseline branch code to obtain the target development code. The updating unit 304 updates the guide file according to the target development code to obtain a target guide file, and the target guide file points to the target development code. Thus, the commit unit 305 commits the target development code to the server to update the code of the target development branch. In this way, the terminal downloads the development code from the server through the pre-stored guide file, after determining the development branch code from the development code, the development branch code and the baseline branch code are combined to obtain the target development code, and the target development code is submitted to the server, so that the updating of the code can be realized, and the code processing efficiency is improved.
The above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (8)

1. A code management method, comprising:
the terminal downloads the development code from the server through a pre-stored guide file;
the terminal determines a target development branch and development branch codes, wherein the target development branch is a development branch to be updated on the server, and the development branch codes are codes belonging to the target development branch in the development codes;
the terminal downloads a baseline branch code from the server, wherein the baseline branch code is a source code branch of the target development branch;
the terminal merges the development branch code and the baseline branch code to obtain a target development code;
the terminal updates the guide file according to the target development code to obtain a target guide file, wherein the target guide file points to the target development code;
the terminal submits the target development code to the server to update the code of the target development branch;
the terminal downloads an AP part baseline code of an application processor from the server;
the terminal updates the AP part baseline code to obtain a target AP part baseline code;
pushing the target AP part baseline code to a storage bin by the terminal;
the terminal generates an AP part guide file, wherein the AP part guide file points to the target AP part baseline code;
the terminal downloads a baseband processor BP part baseline code from the server;
the terminal processes the BP part baseline code to obtain a target BP part baseline code;
the terminal pushes the target BP part baseline code to a storage bin;
the terminal generates a BP part guide file, wherein the BP part guide file points to the target BP part baseline code;
and the terminal generates a baseline guide file according to the AP part guide file and the BP part guide file.
2. The method of claim 1, wherein the step of determining the position of the substrate comprises,
the terminal updates the guide file according to the target development code, and before the target guide file is obtained, the method further comprises:
judging whether the target development code passes through compiling;
and if the target development code passes the compiling, the terminal executes the step of updating the guide file according to the target development code to obtain a target guide file.
3. The method of claim 1, wherein the step of determining the position of the substrate comprises,
the terminal processes the BP part baseline code to obtain a target BP part baseline code, and the method comprises the following steps:
and initializing or iterating the BP part baseline code by the terminal to obtain a target BP part baseline code.
4. The method of claim 1, wherein the step of determining the position of the substrate comprises,
the method further comprises the steps of:
when the terminal fails to download in the process of downloading the development code from the server, the terminal detects a download state and re-downloads the development code from the server.
5. The method of claim 1, wherein the step of determining the position of the substrate comprises,
the terminal applies a Jenkins open source Pipeline technology of a task scheduling server to execute the code management method.
6. A terminal, comprising:
the downloading unit is used for downloading development codes from the server through a pre-stored guide file;
the system comprises a determining unit, a processing unit and a processing unit, wherein the determining unit is used for determining a target development branch and development branch codes, the target development branch is a development branch to be updated on the server, and the development branch codes are codes belonging to the target development branch in the development codes;
the downloading unit is further configured to download a baseline branch code from the server, where the baseline branch code is a source code branch of the target development branch;
the merging unit is used for merging the development branch code and the baseline branch code to obtain a target development code;
the updating unit is used for updating the guide file according to the target development code to obtain a target guide file, wherein the target guide file points to the target development code;
a submitting unit, configured to submit the target development code to the server, so as to update the code of the target development branch;
the downloading unit is further used for downloading the AP part baseline code from the server;
the processing unit is used for updating the AP part baseline code to obtain a target AP part baseline code;
the pushing unit is used for pushing the target AP part baseline codes to a storage bin;
the generating unit is used for generating an AP part guide file, wherein the AP part guide file points to the target AP part baseline code;
the downloading unit is further used for downloading BP part baseline codes from the server;
the processing unit is further used for processing the BP part baseline code to obtain a target BP part baseline code;
the pushing unit is further configured to push the target BP part baseline code to a storage bin;
the generating unit is further configured to generate a BP part guide file, where the BP part guide file points to the target BP part baseline code;
the generating unit is further configured to generate a baseline guide file according to the AP part guide file and the BP part guide file.
7. The terminal of claim 6, wherein the terminal comprises a base station,
the terminal also comprises a judging unit;
the judging unit is used for judging whether the target development code passes through compiling;
and if the target development code passes the compiling, the updating unit executes the step of updating the guide file according to the target development code to obtain a target guide file.
8. The terminal of claim 6, wherein the terminal comprises a base station,
the processing unit is further configured to initialize or iterate the BP part baseline code to obtain a target BP part baseline code.
CN201910964097.0A 2019-10-11 2019-10-11 Code management method and terminal Active CN110688140B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910964097.0A CN110688140B (en) 2019-10-11 2019-10-11 Code management method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910964097.0A CN110688140B (en) 2019-10-11 2019-10-11 Code management method and terminal

Publications (2)

Publication Number Publication Date
CN110688140A CN110688140A (en) 2020-01-14
CN110688140B true CN110688140B (en) 2023-11-21

Family

ID=69112085

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910964097.0A Active CN110688140B (en) 2019-10-11 2019-10-11 Code management method and terminal

Country Status (1)

Country Link
CN (1) CN110688140B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111984307A (en) * 2020-08-24 2020-11-24 北京思特奇信息技术股份有限公司 Processing method and device for automatically repairing baseline version
CN113806595B (en) * 2021-08-13 2022-08-12 荣耀终端有限公司 Code search system generation method, code search method and search server

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103250133A (en) * 2010-12-24 2013-08-14 汉阳大学校产学协力团 Software-defined radio terminal device and method for distributing and installing radio application
CN105302554A (en) * 2015-10-23 2016-02-03 深圳市创维电器科技有限公司 Android system automatic program construction method and system
CN108197036A (en) * 2018-02-06 2018-06-22 百度在线网络技术(北京)有限公司 For determining the method and apparatus of the coverage rate information of incremental code
CN108563444A (en) * 2018-03-22 2018-09-21 福州瑞芯微电子股份有限公司 A kind of Android system firmware source code restoring method and storage medium
CN110069455A (en) * 2017-09-21 2019-07-30 北京华为数字技术有限公司 A kind of file mergences method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9934124B2 (en) * 2015-06-05 2018-04-03 Intel Corporation Implementation of processor trace in a processor that supports binary translation

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103250133A (en) * 2010-12-24 2013-08-14 汉阳大学校产学协力团 Software-defined radio terminal device and method for distributing and installing radio application
CN105302554A (en) * 2015-10-23 2016-02-03 深圳市创维电器科技有限公司 Android system automatic program construction method and system
CN110069455A (en) * 2017-09-21 2019-07-30 北京华为数字技术有限公司 A kind of file mergences method and device
CN108197036A (en) * 2018-02-06 2018-06-22 百度在线网络技术(北京)有限公司 For determining the method and apparatus of the coverage rate information of incremental code
CN108563444A (en) * 2018-03-22 2018-09-21 福州瑞芯微电子股份有限公司 A kind of Android system firmware source code restoring method and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
《P2p软件开发项目的配置管理》;徐广欣;《中国优秀硕士学位论文全文数据库 信息科技辑》;全文 *
《The Effect of Code Reordering on Branch Prediction》;Ramirez A et al;《IEEE》;全文 *

Also Published As

Publication number Publication date
CN110688140A (en) 2020-01-14

Similar Documents

Publication Publication Date Title
US10019256B2 (en) Systems and methods for incremental software development
US10114637B1 (en) Automatically updating a shared project build platform
US10579966B1 (en) Adapting a shared project build platform to a developer plugin
US7310801B2 (en) Servicing a component-based software product throughout the software product lifecycle
CN105446712B (en) Application program defect repairing method and device
WO2015176492A1 (en) A system and method thereof for creating dynamically attachable and detachable binary files
EP1803313A4 (en) Method and system for controlling software version updates
CN110688140B (en) Code management method and terminal
US8214810B2 (en) Method of compiling source code, compiler, computer system, and computer program product
CN105389187B (en) System updating method
US20180203776A1 (en) Non-monotonic eventual convergence for desired state configuration
CN112882718B (en) Compiling processing method, device, equipment and storage medium
CN111722868A (en) Method for quickly transplanting high-version linux kernel of Shenwei firewall
CN102486736B (en) Method for automatically upgrading program and generating device for upgrading program
CN108874405B (en) OpenStack environment upgrading method
CN113821228B (en) Method for constructing ROS or ROS-like project based on layered container mirror image
CN111142848A (en) Software program compiling method, software program executing method and software program compiling device
JP2006302066A (en) Maintenance system with remote execution function and method therefor
CN113961260A (en) System control software operation method, system, computer device and storage medium
CN113849181A (en) Cross compiling tool chain construction method and device, electronic equipment and storage medium
CN101236507A (en) Mounting or upgrading method and device
CN112783529B (en) Method and device for controlling pre-release and upgrading of application program and electronic equipment
CN113391829B (en) Debugging method for coping with high-frequency iterative data
US12079617B2 (en) Development system with automatic upgrade function and automatic upgrade method of development system
CN115437762A (en) Android-based Router container and applet creating method

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