[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN113821249A - Project development configuration method and device, electronic equipment and readable storage medium - Google Patents

Project development configuration method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN113821249A
CN113821249A CN202111113979.XA CN202111113979A CN113821249A CN 113821249 A CN113821249 A CN 113821249A CN 202111113979 A CN202111113979 A CN 202111113979A CN 113821249 A CN113821249 A CN 113821249A
Authority
CN
China
Prior art keywords
local
remote
branch code
project
component
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111113979.XA
Other languages
Chinese (zh)
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.)
Guahao Net Hangzhou Technology Co Ltd
Original Assignee
Guahao Net Hangzhou 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 Guahao Net Hangzhou Technology Co Ltd filed Critical Guahao Net Hangzhou Technology Co Ltd
Priority to CN202111113979.XA priority Critical patent/CN113821249A/en
Publication of CN113821249A publication Critical patent/CN113821249A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming

Landscapes

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

Abstract

The embodiment provides a method, a device, electronic equipment and a readable storage medium for project development configuration, which relate to the technical field of computers, and the method comprises the following steps: the method comprises the steps of pulling a target far-end branch code in a project to be developed from a far-end server, updating a local branch code to be synchronized according to the target far-end branch code to obtain an updated local branch code, obtaining a project configuration file of the project to be developed from the far-end server, obtaining a local configuration file of the updated local branch code, updating the local configuration file according to the project configuration file, and obtaining an updated local configuration file. Thus, when the project development configuration is carried out, the project development configuration efficiency is improved.

Description

Project development configuration method and device, electronic equipment and readable storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, an apparatus, an electronic device, and a readable storage medium for project development configuration.
Background
With the advance of mobile operating system (iOS) project development and the continuous introduction of new business requirements, a large number of developers are generally required to perform iterative development on each branch in the project in cooperation.
At present, developers usually develop through a third class library management tool (CocoaPods) and an open-source distributed version control system (Git). Before development, a developer usually pulls a remote branch of a project from a remote server, and updates a local configuration file based on a remote project configuration file in a manual manner, and loads a local resource according to the updated configuration file configuration, thereby completing configuration work before development.
However, when the project development configuration is performed, different management tools are usually required to pull, synchronize and update the configuration file of the local branch of the project, which obviously reduces the development configuration efficiency, increases the error rate of synchronization of the configuration file of the local branch, and further reduces the development configuration efficiency.
Therefore, when project development configuration is carried out, how to improve project development configuration efficiency is a problem to be solved.
Disclosure of Invention
The embodiment of the application aims to provide a project development configuration method, a project development configuration device, an electronic device and a readable storage medium, which are used for improving project development configuration efficiency when project development configuration is carried out.
In a first aspect, an embodiment of the present application provides a method for project development configuration, where the method includes:
and pulling a target remote branch code in the project to be developed from a remote server, wherein the project to be developed comprises at least one remote branch code.
And updating the local branch code to be synchronized according to the target remote branch code to obtain the updated local branch code.
And acquiring a project configuration file of the project to be developed from a remote server, wherein the project configuration file comprises configuration files of all remote branch codes of the project to be developed.
And acquiring the updated local configuration file of the local branch code.
And updating the local configuration file according to the project configuration file to obtain the updated local configuration file.
In the implementation process, the target remote branch code is pulled from the remote server, and the local branch code is updated, so that the local branch code is synchronized with the corresponding remote latest branch code, further, the local configuration file is updated according to the project configuration file, so that automatic configuration before project development is realized, a user does not need to switch different management tools in development configuration, and the user does not need to manually synchronize and update the configuration file, the error rate of development configuration is reduced, and the efficiency and accuracy of project development configuration are further improved.
With reference to the first aspect, in an implementation manner, before updating the local branch code to be synchronized according to the target remote branch code and obtaining the updated local branch code, the method further includes:
if the local branch code has branch code modification information to be submitted to the remote server, displaying reminding information for reminding whether to abandon the branch code modification submission to a user, wherein the branch code modification information is used for modifying the local branch code;
if a user instruction is received instructing to abort the branch code modification submission, the branch code modification information is deleted.
In the implementation process, before the local branch code is updated, whether the local branch code has a code which is not synchronized to the far end is detected, the detection result is displayed to a user, and the code which is not synchronized to the far end is further deleted according to the indication of the user, so that the misoperation of updating the local branch code can be effectively reduced.
With reference to the first aspect, in an implementation manner, updating a local configuration file according to a project configuration file to obtain an updated local configuration file includes:
and analyzing the project configuration file to respectively obtain a remote branch component set which is depended by each remote branch code in the project to be developed, wherein the remote branch component set which is depended by each remote branch code comprises the remote component version identification of each remote component.
And analyzing the local configuration file to obtain a local branch component set which is depended by the local branch code, wherein the local branch component set comprises local component version identifications of all local components.
For each local component in the set of local breakout components, respectively, performing the following steps:
a matching remote component of a local component is determined among the remote components in the remote breakout component sets.
And updating the local component version identification of one local component according to the remote component version identification of the matched remote component.
And obtaining an updated local configuration file according to each local component and the updated version identifier of each local component.
In the implementation process, the dependent component of the local branch configuration file is matched with the dependent component of the project configuration file to match out the same dependent component, and further, the version identification of the same dependent component of the local branch configuration file is updated, so that the updating of the local configuration file is realized.
With reference to the first aspect, in an implementation manner, after obtaining the updated local configuration file, the method further includes:
updating the configuration resource directory of the local branch according to the updated local configuration file to obtain an updated configuration resource directory;
and loading the resources in the updated configuration resource catalog into the local branched resource library.
In the implementation process, the configuration resource directory of the local branch is updated through the updated local configuration file, and the resources in the updated configuration resource directory are loaded into the resource library of the local branch, so that the update of the local branch resource library is realized.
In a second aspect, an embodiment of the present application provides an apparatus for project development configuration, where the apparatus includes:
the system comprises a pulling module and a processing module, wherein the pulling module is used for pulling a target remote branch code in a project to be developed from a remote server, and the project to be developed comprises at least one remote branch code.
And the updating module is used for updating the local branch code to be synchronized according to the target far-end branch code to obtain the updated local branch code.
The acquisition module is used for acquiring a project configuration file of the project to be developed from the remote server, wherein the project configuration file comprises configuration files of all remote branch codes of the project to be developed.
The obtaining module is further configured to obtain the updated local configuration file of the local branch code.
The updating module is further used for updating the local configuration file according to the project configuration file to obtain the updated local configuration file.
With reference to the second aspect, in an embodiment, before the updating module is configured to update the local branch code to be synchronized according to the target remote branch code, and obtain the updated local branch code, the updating module is further configured to:
if the local branch code has branch code modification information to be submitted to the remote server, reminding information for reminding whether to abandon the branch code modification submission is displayed to a user, wherein the branch code modification information is used for modifying the local branch code.
If a user instruction is received instructing to abort the branch code modification submission, the branch code modification information is deleted.
With reference to the second aspect, in an embodiment, the update module is specifically configured to:
and analyzing the project configuration file to respectively obtain a remote branch component set which is depended by each remote branch code in the project to be developed, wherein the remote branch component set which is depended by each remote branch code comprises the remote component version identification of each remote component.
And analyzing the local configuration file to obtain a local branch component set which is depended by the local branch code, wherein the local branch component set comprises local component version identifications of all local components.
For each local component in the set of local breakout components, respectively, performing the following steps:
a matching remote component of a local component is determined among the remote components in the remote breakout component sets.
And updating the local component version identification of one local component according to the remote component version identification of the matched remote component.
And obtaining an updated local configuration file according to each local component and the updated version identifier of each local component.
With reference to the second aspect, in an embodiment, the updating module, after being configured to update the local configuration file according to the project configuration file, and obtain an updated local configuration file, is further configured to:
and updating the configuration resource directory of the local branch according to the updated local configuration file to obtain the updated configuration resource directory.
And loading the resources in the updated configuration resource catalog into the local branched resource library.
In a third aspect, an embodiment of the present application provides an electronic device, including:
the system comprises a processor, a memory and a bus, wherein the processor is connected with the memory through the bus, and the memory stores computer readable instructions for implementing the steps of the method provided by any one of the embodiments of the first aspect.
In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps in the method as provided in any one of the implementation manners of the first aspect.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a flowchart of a method for project development configuration according to an embodiment of the present disclosure;
FIG. 2 is a schematic diagram illustrating operation of a configuration interface according to an embodiment of the present disclosure;
FIG. 3 is a block diagram of an apparatus for project development configuration according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
First, some terms referred to in the embodiments of the present application will be described to facilitate understanding by those skilled in the art.
The terminal equipment: may be a mobile terminal, a fixed terminal, or a portable terminal such as a mobile handset, station, unit, device, multimedia computer, multimedia tablet, internet node, communicator, desktop computer, laptop computer, notebook computer, netbook computer, tablet computer, personal communication system device, personal navigation device, personal digital assistant, audio/video player, digital camera/camcorder, positioning device, television receiver, radio broadcast receiver, electronic book device, gaming device, or any combination thereof, including the accessories and peripherals of these devices, or any combination thereof. It is also contemplated that the terminal device can support any type of interface to the user (e.g., wearable device), and the like.
A server: the cloud server can be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, and can also be a cloud server for providing basic cloud computing services such as cloud service, a cloud database, cloud computing, cloud functions, cloud storage, network service, cloud communication, middleware service, domain name service, security service, big data and artificial intelligence platform and the like.
When developers develop through CocoaPods and Git, remote branches are usually pulled from their respective modules, dependent versions of the project to be developed are manually synchronized, and then configuration files are updated and installed, thereby completing the configuration work before development.
However, the above steps of developing configuration are performed separately, each step requires switching different management tools, which affects the efficiency of developing configuration, and the configuration file of the project master project is easily mistaken by manual synchronization, which causes repeated modification, thereby resulting in low configuration efficiency before development.
Therefore, the application provides a method, an apparatus, an electronic device and a readable storage medium for project development configuration, so as to improve the efficiency of project development configuration when the project development configuration is performed.
In this embodiment of the present application, an execution subject of the method may be an electronic device, and optionally, the electronic device may be a server or a terminal device, but the present application is not limited thereto.
The method is developed based on CocoaPods and Git, and during development, a developer inputs corresponding configuration information on a configuration interface, and the electronic equipment executes the following method according to the configuration information.
Referring to fig. 1, fig. 1 is a flowchart of a method for project development configuration according to an embodiment of the present application, and a specific implementation flow of the method shown in fig. 1 is as follows:
step 101: and pulling the target remote branch code in the project to be developed from the remote server.
Specifically, according to the input of a user on a configuration page, a target remote branch code in a project to be developed is pulled from a remote server, wherein the project to be developed comprises at least one remote branch code.
As an embodiment, the to-be-developed project includes a plurality of remote branch codes, when a user adds a service requirement to a remote branch code, the user inputs configuration information corresponding to the service requirement on a configuration page of the terminal, and the electronic device obtains the configuration information input by the user and pulls a target remote branch code in the to-be-developed project from the remote server according to the configuration information.
It should be noted that the configuration information includes a name of the project to be developed, a branch name corresponding to the service requirement, a local configuration file path, a remote branch of the project to be developed, and other operation options. The user is a developer or other worker, and is not limited herein.
As shown in fig. 2, fig. 2 is an operation schematic diagram of a configuration interface provided in the embodiment of the present application, and a user may perform the following operations on the configuration interface of a terminal:
(1) a project name to be developed is selected, for example, the project name is iOS-Module/WYSearch (tag: 1.8.1).
(2) Filling a branch name corresponding to the service requirement, for example, the branch name filled by the user is Test/dev, wherein the creation source of the branch name is a main trunk (Master).
(3) For Example, the User selects the option "check out local branch synchronization profile" in the configuration interface, that is, the selected local profile path is "/User/weiyi/Documents/Code/WYSearch/Example".
(4) For example, the user selects "Project/dev" in "user edition" in the configuration interface, that is, the selected remote branch of the Project to be developed is "Project/dev".
(5) Other operational options, such as the user selecting "update" and "install" and clicking "one-click pull".
Further, according to the branch name input by the user in the configuration interface, the target remote branch code in the project to be developed is pulled from the remote server to be the code under Test/dev, and the pulled target remote branch code is temporarily stored to the local.
It should be noted that the to-be-developed project may be an Application (APP), such as a micro blog, a wechat, a panning, or the like, and the target remote branch may be a module in the application, such as a personal center under the micro blog, a home page, a message, or the like, without limitation.
Step 102: and updating the local branch code to be synchronized according to the target remote branch code to obtain the updated local branch code.
Specifically, in the development, test and operation process of the local branch code, a developer may modify the local branch code and generate modification information, so before updating the local branch code, it is further required to detect whether there is modification information that is not synchronized to the remote end in the local branch code, that is, before executing step 102, it is further required to detect whether there is modification information that is not synchronized to the remote end in the local branch code, and a specific detection process may include the following steps:
s1021: and if the local branch code has the branch code modification information to be submitted to the remote server, displaying reminding information for prompting whether to abandon the branch code modification submission to the user.
Wherein the branch code modification information is used to modify the local branch code.
Specifically, it is determined whether the local branch code has branch code modification information to be submitted to the remote server.
If so, displaying a reminding message for prompting whether to abandon the modification submission of the branch code to the user, otherwise, executing the step 102.
It should be noted that the modification information may be a code that the user modifies the original local branch code, or may be a code that is newly added to the original local branch code, which is not limited herein.
In one embodiment, the electronic device detects whether branch code modification information to be submitted to a remote server exists in local branch codes of a local temporary storage area and a working area.
And if the local branch code has the branch code modification information to be submitted to the remote server, the electronic equipment displays reminding information for judging whether to give up the modification submission of the branch code to the user.
S1023: the branch code modification information is deleted.
Specifically, if a user instruction is received to instruct to abort the branch code modification submission, the branch code modification information is deleted.
According to the embodiment, the user selects whether to give up the branch code modification information to the remote server or not according to the displayed reminding information.
If yes, namely the user chooses to abandon submitting the branch code modification information to the remote server, the electronic equipment receives a user instruction for indicating to abandon the submission of the branch code modification, and further the electronic equipment deletes the branch code modification information from the local branch code.
If not, namely the user chooses to submit the branch code modification information to the remote server, the electronic equipment receives a user instruction indicating that the branch code modification submission is not abandoned, and further, the electronic equipment synchronously submits the branch code modification information to the remote server and stores the modification information into the local target remote branch code.
For example, whether the local branch codes of the local temporary storage area and the local work area have branch code modification information to be submitted to the remote server is detected.
And if so, displaying a reminding message for the user whether to abandon the modification of the branch code for submission in a bullet box mode.
If the user chooses to abort, then the git reset-hard instruction is executed, i.e., the delete modify information instruction, will delete the branch code modify information from the local branch code.
If the user chooses not to give up, synchronously submitting the modification information of the branch code to the remote server, and storing the modification information into the local target remote branch code.
It should be noted that, the application is only described by taking the example of displaying the reminding information to the user in the form of a pop-up box, and in the actual application process, the reminding information may also be in the form of voice or text message, which is not limited herein.
In the implementation process, before the local branch code is updated, whether the local branch code has modification information which is not submitted to the remote server is detected, a detection result is displayed to a user, and the modification information is further submitted to the remote server according to the instruction operation of the user, so that misoperation during updating the local branch code can be reduced, and the accuracy and the integrity of updating the local branch code are improved.
Further, step 102 is executed to update the local branch code to be synchronized according to the pulled target remote branch code, so as to obtain an updated local branch code.
Specifically, the target remote branch code is compared with the local branch code to be synchronized to obtain codes of different parts of the target remote branch code and the local branch code, the content of the codes of the different parts in the local branch code is replaced by the corresponding content in the target remote branch code, and the content which exists in the target remote branch code but does not exist in the local branch code is added to the local branch code to obtain the updated local branch code.
Or the local branch code is completely replaced by the target remote branch code, so that the updated local branch code is obtained.
Step 103: and acquiring a project configuration file of the project to be developed from a remote server.
The project configuration file comprises configuration files of all remote branch codes of the project to be developed.
Specifically, a communication interface is called, and a project configuration file corresponding to a remote branch of the project to be developed, which is input by a user in a configuration interface, is obtained from a remote server.
As an embodiment, an interface of the GitLab is called to obtain a configuration file of all remote branches of the project to be developed from a remote server, wherein the GitLab is software for managing codes developed based on git.
In the present application, the communication interface is described as an example of a GitLab interface, but in practical applications, the communication interface may be a Github interface, and the present application is not limited thereto.
Step 104: and acquiring the updated local configuration file of the local branch code.
Specifically, the updated local configuration file of the local branch code is obtained locally according to the local configuration file path input by the user on the configuration interface.
As an embodiment, the local configuration file of the updated local branch Code is obtained under the path/User/weiyi/Documents/Code/WYSearch/Example.
Step 105: and updating the local configuration file according to the project configuration file to obtain the updated local configuration file.
Specifically, when step 105 is executed, the following steps may be adopted:
s105 a: and analyzing the project configuration file to respectively obtain a remote branch component set which is depended by each remote branch code in the project to be developed, wherein the remote branch component set which is depended by each remote branch code comprises the remote component version identification of each remote component.
Specifically, the configuration files of all the remote branch codes of the acquired project to be developed are analyzed, and a remote branch component set which is depended by each remote branch code in the project to be developed is acquired.
S105 b: and analyzing the local configuration file to obtain a local branch component set which is depended by the local branch code.
The local branch component set comprises local component version identifications of the local components.
S105 c: for each local component in the set of local breakout components, respectively, performing the following steps:
s105c 1: a matching remote component of a local component is determined among the remote components in the remote breakout component sets.
Specifically, a matching remote component that matches one local component is determined among all remote components in all remote branch component sets.
S105c 2: and updating the local component version identification of one local component according to the remote component version identification of the matched remote component.
Specifically, if the version identifier of the remote component matched with the version identifier of the local component is different from the version identifier of the local component, the version identifier of the local component is replaced with the version identifier of the remote component matched with the local component.
After the steps S105c1-S105c2 are performed for each local component in the local breakout component set, updated local component version identifications are obtained.
S105 d: and obtaining an updated local configuration file according to each local component and the updated version identifier of each local component.
Wherein, all the dependent components of the updated local configuration file are the current latest version.
And storing the updated local configuration file into the corresponding path.
As an embodiment, the project configuration file is parsed, and keywords (keys) of all dependencies of the project to be developed and branches or tags (tags) pointed to by each dependency are obtained.
And analyzing the local configuration file to obtain the key of the local dependency and the branch or tag pointed by each local dependency.
And matching the local dependency with all the dependencies of the project to be developed through keys, and if the same keys are matched but the corresponding tags are different, replacing the locally dependent tags with the corresponding tags in the project to be developed, thereby obtaining the updated local configuration file.
Further, the updated local configuration file is stored in the path "/User/weiyi/Documents/Code/WYSearch/Example".
In the implementation process, the dependent component of the local branch configuration file is matched with the dependent component of the project configuration file to match out the same dependent component, and further, the component version identification of the same dependent component of the local branch configuration file is updated, so that the updating of the local configuration file is realized.
Further, after step 105, the following steps may be further included:
step 1051: and updating the configuration resource directory of the local branch according to the updated local configuration file to obtain the updated configuration resource directory.
Specifically, after the updated local configuration file is obtained, the configuration resource directory of the local branch is updated according to the obtained updated local configuration file, so as to obtain the updated configuration resource directory.
In one embodiment, the configuration resource directory of the local branch is updated by executing a pod ready update instruction, and the updated configuration resource directory is obtained.
Step 1052: and loading the resources in the updated configuration resource catalog into the local branched resource library.
In one embodiment, the resources in the updated configured resource directory are loaded into the updated local branch resource pool by executing a pod install instruction.
In the implementation process, the configuration resource directory of the local branch is updated through the updated local configuration file, and the resources in the updated configuration resource directory are loaded into the local branch resource library, so that the update of the local branch resource library is realized.
In the implementation process, the target remote branch code is pulled from the remote server, and the local branch code is updated, so that the local branch code is synchronized with the corresponding remote latest branch code, further, the local configuration file is updated according to the project configuration file, so that automatic configuration before project development is realized, a user does not need to switch different management tools in development configuration, and the user does not need to manually synchronize and update the configuration file, the error rate of development configuration is reduced, and the efficiency and accuracy of project development configuration are further improved.
Referring to fig. 3, fig. 3 is a block diagram of a device for project development configuration according to an embodiment of the present application, where the device 300 includes:
the pulling module 301 is configured to pull a target remote branch code in a to-be-developed project from a remote server, where the to-be-developed project includes at least one remote branch code.
An updating module 302, configured to update the local branch code to be synchronized according to the target remote branch code, so as to obtain an updated local branch code.
The obtaining module 303 is configured to obtain a project configuration file of the to-be-developed project from the remote server, where the project configuration file includes configuration files of all remote branch codes of the to-be-developed project.
The obtaining module 303 is further configured to obtain the updated local configuration file of the local branch code.
The updating module 302 is further configured to update the local configuration file according to the project configuration file, so as to obtain an updated local configuration file.
In an embodiment, before the updating module 302 is configured to update the local branch code to be synchronized according to the target remote branch code, and obtain an updated local branch code, further configured to:
if the local branch code has branch code modification information to be submitted to the remote server, reminding information for reminding whether to abandon the branch code modification submission is displayed to a user, wherein the branch code modification information is used for modifying the local branch code.
If a user instruction is received instructing to abort the branch code modification submission, the branch code modification information is deleted.
In an embodiment, the update module 302 is specifically configured to:
and analyzing the project configuration file to respectively obtain a remote branch component set which is depended by each remote branch code in the project to be developed, wherein the remote branch component set which is depended by each remote branch code comprises the remote component version identification of each remote component.
And analyzing the local configuration file to obtain a local branch component set which is depended by the local branch code, wherein the local branch component set comprises local component version identifications of all local components.
For each local component in the set of local breakout components, respectively, performing the following steps:
a matching remote component of a local component is determined among the remote components in the remote breakout component sets.
And updating the local component version identification of one local component according to the remote component version identification of the matched remote component.
And obtaining an updated local configuration file according to each local component and the updated version identifier of each local component.
In an embodiment, the updating module 302, after being configured to update the local configuration file according to the project configuration file, and obtain an updated local configuration file, is further configured to:
and updating the configuration resource directory of the local branch according to the updated local configuration file to obtain the updated configuration resource directory.
And loading the resources in the updated configuration resource catalog into the local branched resource library.
It should be noted that the apparatus 300 shown in fig. 3 can implement the processes of the method in the embodiment of the method in fig. 1. The operations and/or functions of the respective units in the apparatus 300 are respectively for implementing the corresponding flows in the method embodiment in fig. 1. Reference may be made specifically to the description of the above method embodiments, and a detailed description is appropriately omitted herein to avoid redundancy.
Referring to fig. 4, fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure, where the electronic device 400 shown in fig. 4 may include: at least one processor 410, such as a CPU, at least one communication interface 420, at least one memory 430, and at least one communication bus 440. Wherein the communication bus 440 is used to enable direct connection communication of these components. In this embodiment, the communication interface 420 of the device in this application is used for performing signaling or data communication with other node devices. The memory 430 may be a high-speed RAM memory or a non-volatile memory (e.g., at least one disk memory). The memory 430 may optionally be at least one memory device located remotely from the aforementioned processor. The memory 430 stores computer readable instructions, which when executed by the processor 410, cause the electronic device to perform the method processes described above with reference to fig. 1.
An embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the method process shown in fig. 1.
In the several embodiments provided in the present application, it should be understood that the disclosed system and method may be implemented in other ways. The above-described system embodiments are merely illustrative, and for example, the division of the system apparatus into only one logical functional division may be implemented in other ways, and for example, a plurality of apparatuses or components may be combined or integrated into another system, or some features may be omitted, or not implemented.
In addition, units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. A method of project development configuration, the method comprising:
pulling a target remote branch code in a project to be developed from a remote server, wherein the project to be developed comprises at least one remote branch code;
updating the local branch code to be synchronized according to the target remote branch code to obtain an updated local branch code;
acquiring a project configuration file of the project to be developed from the remote server, wherein the project configuration file comprises configuration files of all remote branch codes of the project to be developed;
obtaining a local configuration file of the updated local branch code;
and updating the local configuration file according to the project configuration file to obtain the updated local configuration file.
2. The method according to claim 1, wherein before the updating the local branch code to be synchronized according to the target remote branch code to obtain an updated local branch code, the method further comprises:
if the local branch code has branch code modification information to be submitted to the remote server, displaying reminding information for reminding whether to abandon the branch code modification submission to a user, wherein the branch code modification information is used for modifying the local branch code;
deleting the branch code modification information if a user instruction is received instructing to abort the branch code modification submission.
3. The method according to claim 1 or 2, wherein the updating the local configuration file according to the project configuration file to obtain an updated local configuration file comprises:
analyzing the project configuration file to respectively obtain a remote branch component set which is depended by each remote branch code in the project to be developed, wherein the remote branch component set which is depended by each remote branch code comprises a remote component version identifier of each remote component;
analyzing the local configuration file to obtain a local branch component set which is depended by the local branch code, wherein the local branch component set comprises local component version identifiers of all local components;
for each local component in the set of local breakout components, respectively, performing the following steps:
determining a matching remote component of a local component among the remote components in the remote branch component sets;
updating the local component version identification of the local component according to the remote component version identification of the matched remote component;
and obtaining the updated local configuration file according to each local component and the updated version identifier of each local component.
4. The method of claim 1 or 2, wherein after the obtaining the updated local profile, the method further comprises:
updating the configuration resource directory of the local branch according to the updated local configuration file to obtain an updated configuration resource directory;
and loading the resources in the updated configuration resource catalog into a local branched resource library.
5. An apparatus for project development configuration, the apparatus comprising:
the system comprises a pulling module, a judging module and a processing module, wherein the pulling module is used for pulling a target remote branch code in a project to be developed from a remote server, and the project to be developed comprises at least one remote branch code;
the updating module is used for updating the local branch code to be synchronized according to the target remote branch code to obtain an updated local branch code;
the acquisition module is used for acquiring a project configuration file of the project to be developed from the remote server, wherein the project configuration file comprises configuration files of all remote branch codes of the project to be developed;
the obtaining module is further configured to obtain a local configuration file of the updated local branch code;
the updating module is further configured to update the local configuration file according to the project configuration file, and obtain an updated local configuration file.
6. The apparatus of claim 5, wherein the update module, before being configured to update the local branch code to be synchronized according to the target remote branch code to obtain the updated local branch code, is further configured to:
if the local branch code has branch code modification information to be submitted to the remote server, displaying reminding information for reminding whether to abandon the branch code modification submission to a user, wherein the branch code modification information is used for modifying the local branch code;
deleting the branch code modification information if a user instruction is received instructing to abort the branch code modification submission.
7. The apparatus according to claim 5 or 6, wherein the update module is specifically configured to:
analyzing the project configuration file to respectively obtain a remote branch component set which is depended by each remote branch code in the project to be developed, wherein the remote branch component set which is depended by each remote branch code comprises a remote component version identifier of each remote component;
analyzing the local configuration file to obtain a local branch component set which is depended by the local branch code, wherein the local branch component set comprises local component version identifiers of all local components;
for each local component in the set of local breakout components, respectively, performing the following steps:
determining a matching remote component of a local component among the remote components in the remote branch component sets;
updating the local component version identification of the local component according to the remote component version identification of the matched remote component;
and obtaining the updated local configuration file according to each local component and the updated version identifier of each local component.
8. The apparatus according to claim 5 or 6, wherein the updating module, after being configured to update the local configuration file according to the project configuration file, is further configured to:
updating the configuration resource directory of the local branch according to the updated local configuration file to obtain an updated configuration resource directory;
and loading the resources in the updated configuration resource catalog into a local branched resource library.
9. An electronic device, comprising:
a processor, a memory, and a bus, the processor being connected to the memory through the bus, the memory storing computer readable instructions for implementing the method of any one of claims 1-4 when the computer readable instructions are executed by the processor.
10. A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the method according to any one of claims 1 to 4.
CN202111113979.XA 2021-09-18 2021-09-18 Project development configuration method and device, electronic equipment and readable storage medium Pending CN113821249A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111113979.XA CN113821249A (en) 2021-09-18 2021-09-18 Project development configuration method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111113979.XA CN113821249A (en) 2021-09-18 2021-09-18 Project development configuration method and device, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN113821249A true CN113821249A (en) 2021-12-21

Family

ID=78915210

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111113979.XA Pending CN113821249A (en) 2021-09-18 2021-09-18 Project development configuration method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN113821249A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114780641A (en) * 2022-05-07 2022-07-22 湖南长银五八消费金融股份有限公司 Multi-library multi-table synchronization method and device, computer equipment and storage medium
CN118132119A (en) * 2024-05-06 2024-06-04 海马云(天津)信息技术有限公司 Code updating method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102902558A (en) * 2012-09-11 2013-01-30 新浪网技术(中国)有限公司 Project script file updating system and method as well as script file merging method and device
CN105760184A (en) * 2014-12-18 2016-07-13 深圳云之家网络有限公司 Method and device for loading component
US10768929B1 (en) * 2019-11-13 2020-09-08 Atlassian Pty Ltd. Automatically updating source code in version control systems via a pull request
CN112799716A (en) * 2021-02-09 2021-05-14 广州锦行网络科技有限公司 Code management method and system
CN113098961A (en) * 2021-03-31 2021-07-09 北京自如信息科技有限公司 Component uploading method, device and system, computer equipment and readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102902558A (en) * 2012-09-11 2013-01-30 新浪网技术(中国)有限公司 Project script file updating system and method as well as script file merging method and device
CN105760184A (en) * 2014-12-18 2016-07-13 深圳云之家网络有限公司 Method and device for loading component
US10768929B1 (en) * 2019-11-13 2020-09-08 Atlassian Pty Ltd. Automatically updating source code in version control systems via a pull request
CN112799716A (en) * 2021-02-09 2021-05-14 广州锦行网络科技有限公司 Code management method and system
CN113098961A (en) * 2021-03-31 2021-07-09 北京自如信息科技有限公司 Component uploading method, device and system, computer equipment and readable storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114780641A (en) * 2022-05-07 2022-07-22 湖南长银五八消费金融股份有限公司 Multi-library multi-table synchronization method and device, computer equipment and storage medium
CN114780641B (en) * 2022-05-07 2023-07-14 湖南长银五八消费金融股份有限公司 Multi-library multi-table synchronization method, device, computer equipment and storage medium
CN118132119A (en) * 2024-05-06 2024-06-04 海马云(天津)信息技术有限公司 Code updating method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN110221872B (en) Page jump method and device, electronic equipment and storage medium
CN109814854B (en) Project framework generation method, device, computer equipment and storage medium
CN111068328B (en) Game advertisement configuration form generation method, terminal equipment and medium
CN110688305B (en) Test environment synchronization method, device, medium and electronic equipment
US12014170B2 (en) Mini program batch processing method and apparatus, electronic device, and readable storage medium
CN111752587B (en) Batch processing method and device for small programs, electronic equipment and readable storage medium
CN107644075B (en) Method and device for collecting page information
CN113821249A (en) Project development configuration method and device, electronic equipment and readable storage medium
CN111104108B (en) Display interface WPF generation method and device
CN111796851B (en) Client base library updating method and device, electronic equipment and storage medium
CN110704122A (en) Plug-in loading method and device
US9703848B2 (en) Caching linked queries for optimized compliance management
CN115291935A (en) Component updating method, component updating device, equipment and storage medium
CN110737458A (en) code updating method and related device
CN111104125B (en) Intelligent integrated version management method, device, medium and electronic equipment
CN116048609A (en) Configuration file updating method, device, computer equipment and storage medium
CN111181836B (en) Message pushing method and device
CN111080250B (en) Flow backspacing compensation method and device, storage medium and electronic equipment
CN113535221B (en) Method and device for managing application version
CN111176718B (en) Script online method and device, storage medium and electronic equipment
CN113312900A (en) Data verification method and device
CN113806327A (en) Database design method and device and related equipment
CN113011858A (en) Audit project configuration and execution method and device
CN112422668B (en) Storage method and device for network community, electronic equipment and readable medium
CN112905388B (en) Page configuration information processing method and device

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