CN106055334A - Code management system and method - Google Patents

Code management system and method Download PDF

Info

Publication number
CN106055334A
CN106055334A CN201610387755.0A CN201610387755A CN106055334A CN 106055334 A CN106055334 A CN 106055334A CN 201610387755 A CN201610387755 A CN 201610387755A CN 106055334 A CN106055334 A CN 106055334A
Authority
CN
China
Prior art keywords
code
amendment
modified
file
row
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.)
Granted
Application number
CN201610387755.0A
Other languages
Chinese (zh)
Other versions
CN106055334B (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.)
Nubia Technology Co Ltd
Original Assignee
Nubia 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201610387755.0A priority Critical patent/CN106055334B/en
Publication of CN106055334A publication Critical patent/CN106055334A/en
Application granted granted Critical
Publication of CN106055334B publication Critical patent/CN106055334B/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/70Software maintenance or management
    • G06F8/73Program documentation

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Library & Information Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a code management method, which comprises the following steps of obtaining a patch pack generated by a modification file to be modified on the basis of source code; resolving the patch pack to obtain a path of the modification file; obtaining a corresponding original file in the source code according to the path of the modification file; resolving the patch pack to obtain a modification mark; performing corresponding modification on the original file according to the modification mark and the preset matched modification rule; and obtaining the modified source code. The invention also discloses a code management system. The accuracy rate and the efficiency of obtaining the modified source code according to the patch pack of the modified file are improved.

Description

Code management system and method
Technical field
The present invention relates to technical field of software development, particularly relate to a kind of code management system and method.
Background technology
In software development process, it is generally required to multiple developer coordinates cooperation, each developer is responsible for not Same Development of Module, finally synthesizes the code of each developer and completes exploitation.With Android complete machine software development As a example by, in board suppot package (Board Support Package, BSP), framework (framework) and the merit of application (app) side Strange land, the coordination of each department developer is needed when can develop.During program joint debugging, need at local source code In be incorporated into the service packs (patch bag) of other developers, owing to being the exploitation of same module, different developers may The diverse location of the same function of same source file can be revised.When on the one hand using order to be incorporated into patch bag, code can be caused Conflict, accuracy rate is relatively low;On the other hand manual modification code, had both reduced the development efficiency of software, cannot ensure again to be incorporated into The correctness of function.
Summary of the invention
Present invention is primarily targeted at a kind of code management system of offer and method, it is intended to improve according to amendment file Service packs obtains efficiency and the accuracy rate of amended source code.
For achieving the above object, the invention provides a kind of code management system, including:
Service packs acquisition module, for obtaining the service packs generated based on the amendment file being modified in source code;
Original document acquisition module, obtains the path of amendment file for resolving described service packs, according to described amendment literary composition The path of part obtains original document corresponding in source code;
Modified module, is used for resolving described service packs and obtains modified logo, revise according to modified logo and preset coupling Described original document is revised by rule accordingly, obtains amended source code.
Alternatively, described code management system also includes:
Amendment file acquisition module, for obtaining the amendment file revised for described source code;
First setting module, for obtaining the field started in described amendment file with the first mark, by described first mark The row at the field place knowing beginning is set as initial amendment row;
Logging modle, for record described initial amendment row before nominated bank's code, the path of described amendment file and The code being modified in described amendment file, and record the class being modified in described amendment file, the method being modified and The behavior being modified;
Second setting module, for obtaining the field started in described amendment file with the second mark, by described second mark The row at the field place knowing beginning is set as terminating amendment row, and records the described nominated bank's code terminated after amendment row;
Generation module, for the content recorded being stored, generates service packs.
Alternatively, described modified module includes:
Resolution unit, is used for resolving described service packs, obtains the nominated bank's code before described initial amendment row, described knot The code being modified in nominated bank's code after Shu Xiugai row, described amendment file, and described amendment file is modified Class, the method being modified and the behavior being modified;
Determine unit, for determining described original according to the class, the method being modified and the behavior being modified that are modified The position of file, according to the nominated bank's code before the initial amendment row in described amendment file in described position, described Original document determines the initial row of correspondence, and according to the described nominated bank's code terminated after amendment row, described original File determines the end line of correspondence;
Amendment unit, for according to the code being modified in described amendment file, revises described former in described source code Code between initial row and the end line of beginning file.
Alternatively, described amendment unit is additionally operable to, and the code being modified in described amendment file is increased to described source generation Between initial row and the end line of original document described in Ma;Or,
By between initial row and the end line of original document described in described source code, it is modified in described amendment file The identical code deletion of code;Or,
The code being modified in described amendment file is replaced initial row and the knot of original document described in described source code Code between bundle row.
Alternatively, described code management system also includes:
More new module, is used for deleting described service packs, obtains the new service packs generated based on amended source code, The path of new amendment file is obtained, after obtaining amendment according to the path of described new amendment file from described new service packs Source code in corresponding file;Resolve described new service packs and obtain new modified logo, according to described new modified logo And described file revised by preset coupling alteration ruler accordingly.
Additionally, for achieving the above object, present invention also offers a kind of code administration method, including:
Obtain the service packs generated based on the amendment file being modified in source code;
Resolving described service packs and obtain the path of amendment file, it is right to obtain in source code according to the path of described amendment file The original document answered;
Resolve described service packs and obtain modified logo, according to modified logo and preset coupling alteration ruler to described original File is revised accordingly, obtains amended source code.
Alternatively, described acquisition includes based on before the amendment service packs that generated of file being modified in source code:
Obtain the amendment file revised for described source code;
Obtain the field with the first mark beginning in described amendment file, by the field place of described first mark beginning Row is set as initial amendment row;
Record in nominated bank's code, the path of described amendment file and the described amendment file before described initial amendment row The code being modified, and record the class being modified in described amendment file, the method being modified and the behavior being modified;
Obtain the field with the second mark beginning in described amendment file, by the field place of described second mark beginning Row is set as terminating amendment row, and records the described nominated bank's code terminated after amendment row;
The content recorded is stored, generates service packs.
Alternatively, the described service packs of described parsing obtains modified logo, revises rule according to modified logo and preset coupling Then described original document is revised accordingly and includes:
Resolve described service packs, after obtaining the nominated bank's code before described initial amendment row, described end amendment row Nominated bank's code, the code that is modified in described amendment file, and described amendment file is modified class, be modified Method and the behavior being modified;
Determine in the position of described original document according to the class being modified, the method being modified and the behavior being modified, According to the nominated bank's code before the initial amendment row in described amendment file in described position, determine in described original document Corresponding initial row, and according to the described nominated bank's code terminated after amendment row, in described original document, determine correspondence End line;
According to the code being modified in described amendment file, described source code is revised the initial row of described original document And the code between end line.
Alternatively, according to the code being modified in described amendment file, described source code is revised described original document Initial row and end line between code include:
The code being modified in described amendment file is increased to the initial row of original document described in described source code with Between end line;Or,
By between initial row and the end line of original document described in described source code, it is modified in described amendment file The identical code deletion of code;Or,
The code being modified in described amendment file is replaced initial row and the knot of original document described in described source code Code between bundle row.
Alternatively, the described service packs of described parsing obtains modified logo, revises rule according to modified logo and preset coupling Then described original document is revised accordingly, includes after obtaining amended source code:
Delete described service packs, obtain the new service packs generated based on amended source code, from described new benefit Obtaining the path of new amendment file in fourth bag, it is right to obtain in amended source code according to the path of described new amendment file The file answered;
Resolve described new service packs and obtain new modified logo, repair according to described new modified logo and preset coupling Change rule described file is revised accordingly.
The code management system of embodiment of the present invention offer and method, by resolving based on the amendment being modified in source code The service packs that file is generated, according to the content of record in service packs, it is right that the path of acquisition amendment file obtains in source code The original document answered, and original document is revised accordingly according to preset coupling alteration ruler according to modified logo, with Obtain amended source code.Make by modified logo record modification file is modified position, can be exactly in correspondence Original document in reduction amendment file, relative to manually comparison amendment original document, improve the patch according to amendment file Bag obtains efficiency and the accuracy rate of amended source code.
Accompanying drawing explanation
Fig. 1 is the high-level schematic functional block diagram of code management system first embodiment of the present invention;
Fig. 2 is the high-level schematic functional block diagram of code management system the second embodiment of the present invention;
Fig. 3 is the high-level schematic functional block diagram of code management system the 3rd embodiment of the present invention;
Fig. 4 is the schematic flow sheet of code administration method first embodiment of the present invention;
Fig. 5 is the schematic flow sheet of code administration method the second embodiment of the present invention;
Fig. 6 is the schematic flow sheet of code administration method the 3rd embodiment of the present invention.
The realization of the object of the invention, functional characteristics and advantage will in conjunction with the embodiments, are described further referring to the drawings.
Detailed description of the invention
Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
As shown in Figure 1, it is shown that one code management system first embodiment of the present invention.The code administration system of this embodiment System includes:
Service packs acquisition module 100, for obtaining the service packs generated based on the amendment file being modified in source code;
In the present embodiment, code administration is applied to multiple functional modules in software development and carries out the occasion of joint debugging, such as, and can To be applied in Android complete machine software development, to functional module exploitations such as BSP, framework and app.
First, be responsible for each functional module developer file corresponding in source code is modified, complete right The amendment of file and after obtaining revising file, according to patch bag (the i.e. patch of amendment this amendment file of file generated being modified Bag).When needs carry out joint debugging to source code, it is corresponding that the code management system of this locality, joint debugging side needs to obtain other functional modules The patch bag of amendment side, such as, patch bag is sent to joint debugging side local by amendment side.Make service packs acquisition module 100 The service packs generated based on the amendment file being modified in source code can be got.
It is understood that owing to each functional module there may be multiple file, when a functional module exists When multiple amendment files are modified, can be for each amendment file generated multiple patch bag, it is also possible to be for this function mould Block generates a patch bag.
Original document acquisition module 200, obtains the path of amendment file, according to described amendment for resolving described service packs The path of file obtains original document corresponding in source code;
During program joint debugging, loading after patch bag, needing to resolve record in patch bag acquisition patch bag interior Hold.First original document acquisition module 200 resolves patch bag and obtains the path of corresponding amendment file, according to amendment file Path obtains original document corresponding in source code, in order to modify this original document, reduction amendment file.
Modified module 300, is used for resolving described service packs and obtains modified logo, repair according to modified logo and preset coupling Change rule described original document is revised accordingly, obtain amended source code.
After obtaining revising original document corresponding in source code before file corresponds to amendment, modified module 300 continues Resolving patch bag, obtain the modified logo of record in patch bag, this modified logo can be initial amendment row, terminate amendment Row, the code being modified, the class being modified, the method being modified and the behavior etc. being modified.Then modified module 300 is according to repairing Changing mark and preset coupling alteration ruler is revised accordingly to positioning the original document obtained, coupling alteration ruler can basis Practical situation is configured, and such as, coupling alteration ruler is to utilize context matches to add code, need deleting of context matches Except code etc..Specifically, replace code (modify) according to the behavior of code revision, increase code (addCode) or delete generation Code (delCode), it is judged that the rule of contextual modifications: replace, increase or delete and original document is modified.Such as, if It is to increase code line, then the nominated bank's code content before relatively more initial amendment row, navigates to the position of original document, amendment Class, the method for amendment, increase to corresponding position in original document by the code being modified.
When being resolved to end line mark " // ##featrueEnd " field and terminating to revise the nominated bank's content after row, Determine that the amendment to original document terminates, obtain amended source code and preserve, and run debugging.
Below will be, in Android complete machine software development, to enter as a example by the functional development of BSP, framework and app side Row illustrates.The coordination of each department developer is needed, after source code completes, respectively for these three functional development The code of individual functional module needs to modify, and when being carried out joint debugging by a certain developer, by using script, then by difference Amendment file in functional module is incorporated in source code, i.e. runs PerfectPatch parsing script and amendment file is joined source In code.Wherein, PerfectPatch is by a series of keyword and specifications of annotation, defines a new function Feature。
PerfectPatch series of tools comprise PerfectPatch generate script, PerfectPatch more new script and PerfectPatch installation script.Wherein, PerfectPatch generates script for generating the patch bag of a New function; PerfectPatch more new script is for the patch bag of new and old function code amendment;PerfectPatch installation script is used for The amendment file that patch bag is corresponding is incorporated in code.
Feature specifications of annotation is as follows:
(1) Feature head:
//##featrueStart##feature_name##action(##matchrule)
Wherein, comprise three parts (or four parts), fixing start with // ##featureStart, after successively with Feature name, action (type of amendment), need to write out during special matched rule last field, if do not write out silent Think 3#3, mate the most forward three row, mate three row backward.
(2) Feature content:
//##delStart
// delete code
//##delEnd
// newly-increased code
If desired code is deleted then using // ##delStart as the beginning label deleted, using // ##delEnd as deletion End mark.Code between two labellings is the code needing to delete.
(3) Feature tail:
//##featrueEnd
Must end up with this.
In one embodiment, if certain file in BSP only adds partial code, need to enter in framework side Row joint debugging, then can previously generate in BSP the patch bag revising file, sends the patch bag of BSP to framework side code This locality of management system.In the code management system of framework side, load and resolve the patch bag of BSP, obtain amendment literary composition Corresponding original document is carried out in locating source code in the path of part, continue to resolve the patch bag of BSP obtain initial revise line identifier, Nominated bank's code before initial amendment row, the code terminating amendment line identifier, being modified, and be modified class, be modified Method and the modified logo such as the behavior that is modified, according to modified logo the code being modified increased in original document with repair Change between initial row corresponding to file and end line.
In another embodiment, if certain file in app only deletes partial code, need to join in BSP side Adjust, then can previously generate in app the patch bag revising file, the patch bag of app is loaded onto BSP side code management system Local.Resolving the patch bag of app in the code management system of BSP side, the path obtaining amendment file is come in locating source code Corresponding original document, the patch bag continuing to resolve app obtains the nominated bank before initial amendment line identifier, initial amendment row Code, the code terminating amendment line identifier, being modified, and class, the method being modified and the behavior etc. being modified being modified Modified logo, by between the initial row in original document and end line, the code identical with the code being modified in amendment file Delete.
In another embodiment, if respectively the file in BSP and framework being modified, need to enter in app side Row joint debugging, then can previously generate in BSP and revise the patch bag revising file in the patch bag of file and framework, by BSP Patch bag and the patch bag of framework send to this locality of app side code management system, the code administration system of app side System can load the patch bag generated based on the amendment file being modified in source code, resolves BSP and framework respectively Patch bag, revise in source code correspondence original document.Make PerfectPatch strategy can help developer more Easy and convenient generation Patch bag, more fresh code, for joint debugging with safeguard that code can save the substantial amounts of duplication of labour, reduce Workload.It addition, PerfectPatch strategy is while reduction even eliminates code conflicts, improve again the standard of amendment code Really rate, and then ensure that the stability of program function.
The embodiment of the present invention is by resolving the service packs generated based on the amendment file being modified in source code, according to benefit The content of record in fourth bag, the path obtaining amendment file obtains original document corresponding in source code, and according to amendment Original document is revised accordingly, to obtain amended source code by mark according to preset coupling alteration ruler.Make to lead to Cross in modified logo record modification file and be modified position, can reduce in corresponding original document exactly and revise file, Relative to manually comparison amendment original document, improve the service packs according to amendment file and obtain the efficiency of amended source code And accuracy rate.
Further, as in figure 2 it is shown, based on above-mentioned code management system first embodiment, it is proposed that dematron of the present invention Reason system the second embodiment, the present embodiment with the difference of code management system first embodiment of the present invention is, in the present embodiment on State code management system also to include:
Amendment file acquisition module 400, for obtaining the amendment file revised for described source code;
First setting module 500, for obtaining the field started in described amendment file with the first mark, by described first The row at the field place of mark beginning is set as initial amendment row;
Logging modle 600, for record described initial amendment row before nominated bank's code, the path of described amendment file With the code being modified in described amendment file, and the method recording the class being modified in described amendment file, being modified With the behavior being modified;
Second setting module 700, for obtaining the field started in described amendment file with the second mark, by described second The row at the field place of mark beginning is set as terminating amendment row, and records the described nominated bank's code terminated after amendment row;
Generation module 800, for the content recorded being stored, generates service packs.
In the present embodiment, before program is carried out joint debugging, need the amendment file generated being modified based on source code Patch bag, by using script and defining according to keyword, annotation rule and action, generates the patch bag of certain function:
(1) amendment file acquisition module 400 obtains the amendment file revised for source code;
The word started with the first mark " // ##featrueStart " in (2) first setting module 500 search amendment files Section, as initial amendment row, the beginning i.e. revised;
(3) the nominated bank's content before the path of logging modle 600 record modification file and initial amendment row start, example As, 3 row contents;
(4) class of logging modle 600 record modification, if anonymous class, then records full line;
(5) method of logging modle 600 record modification, when method is when there is currently no case of heavy load, then without parameter; When there is heavy duty, then write out the type of the method parameter;
(6) behavior of logging modle 600 record code amendment, i.e. the rule of context matches, at modify, addCode, This field is there will be during delCode;
(7) code of logging modle 600 record modification, increases, is deleted or modified;
The field started with the second mark " // ##featrueEnd " in (8) second setting module 700 search amendment files, As terminating amendment row, the end i.e. revised;
Nominated bank's content after (9) second setting module 700 record end amendment row, such as, this nominated bank's content can To be 3 row contents;
The content of above-mentioned record is write and preserves the file of an entitled .perfectPatch of suffix by generation module 800 In, generate patch bag.
Illustrating patch bag form below, the patch file generated by instrument is * .PerfectPatch file, Form is as follows:
@start
@path
@classname
@method
@rule
@code
(The code to match)
Part I
$
(The code to delete)
Part II
$
(The code to add)
Part III
@end
Wherein ,@start represents the beginning of a part;
@path represents the path wanting operation file;
@classname represents the class that needs operate, and when operation in anonymous class, this part is full line;
@method represents the method that needs operate, when method is when there is currently no case of heavy load, without parameter, when depositing When heavy duty, the type of parameter can be write out;
@rule represents the rule of context matches, at modify, there will be this field when addCode, delCode;
@code
Part I represents that this part is the code for context matches;
Part II represents that this part is intended to the code deleted;
Part III represents that this part is code to be added;
@end represents the end of a part.
The service packs that the present embodiment is generated based on the amendment file being modified in source code, in order to service packs is solved Analysis obtains modified logo, revises original document reduction amendment file, the problem solving code conflicts, improve in source code Service packs according to amendment file obtains efficiency and the accuracy rate of amended source code.
Further, as it is shown on figure 3, based on above-mentioned code management system the second embodiment, it is proposed that dematron of the present invention Reason system the 3rd embodiment, the present embodiment with the difference of code management system the second embodiment of the present invention is, in the present embodiment on State modified module 300 to include:
Resolution unit 310, is used for resolving described service packs, obtains the nominated bank's code before described initial amendment row, institute State the code being modified in the nominated bank's code after terminating amendment row, described amendment file, and quilt in described amendment file Class, the method being modified and the behavior being modified of amendment;
Determine unit 320, for determining described former according to the class, the method being modified and the behavior being modified that are modified The position of beginning file, according to the nominated bank's code before the initial amendment row in described amendment file in described position, in institute State the initial row determining correspondence in original document, and according to the described nominated bank's code terminated after amendment row, described former Beginning file determines the end line of correspondence;
Amendment unit 330, for according to the code being modified in described amendment file, in described source code, amendment is described Code between initial row and the end line of original document.
In the present embodiment, mistake original document revised accordingly according to modified logo and preset coupling alteration ruler Cheng Zhong, first resolution unit 310 resolve patch bag and obtain the class being modified, the method being modified and the row being modified of record For the nominated bank's code before, initial amendment row, terminate the contents such as nominated bank's code after amendment row, by determining unit 320 Determining behind the position of original document, at this position root according to class, the method being modified and the behavior being modified being modified According to the initial row that the nominated bank's Code location before initial amendment row is corresponding in original document.Determine that unit 320 is according to end Nominated bank's code after amendment row, end line corresponding in the original document of location.Amendment unit 330 is according in amendment file The code being modified, revises the code between the initial row of original document and end line in source code.
This amendment includes increasing, deletes, replacement etc., and alternatively, in the present embodiment, above-mentioned amendment unit 330 is additionally operable to, will The code being modified in described amendment file increases between initial row and the end line of original document described in described source code; Or, by between initial row and the end line of original document described in described source code, it is modified in described amendment file The code deletion that code is identical;Or, the code being modified in described amendment file is replaced described in described source code original Code between initial row and the end line of file.
Hereinafter the use of type action to amendment is explained in detail, the behavior of action code revision, mainly there are 6 Action:
(1) addDef: at C, C++ defmacro;
(2) modify: be used for increasing, revise, delete code;
(3) addInclude: for increasing quoting of header file in C, C++;
(4) addImport: for introducing class in Java;
(5) addCodeAtTail: the beginning at file increases code;
(6) addCodeAtHead: the ending at file increases code.
According to the code being modified in amendment file, revise between the initial row of original document and end line in source code Code include:
(1)addCode
Context matches is utilized to add code
//##featureStart##feature_name##addCode
(addCode)
//##featureEnd
(2)addMethod
Need not the adding method of context matches
//##featureStart##feature_name##addMethod
(addMethod)
//##featureEnd
(3)addCodeAtHead
Need not context matches and add code, add code in the beginning of present scope
//##featureStart##feature_name##addCodeAtHead
(addCode)
//##featureEnd
(4)addCodeAtTail
Need not the adding method of context matches, at the end in current scope, add code
//##featureStart##feature_name##addCodeAtTail
(addCode)
//##featureEnd
(5)addDef
Need not the interpolation #def of context matches, only support C language
//##featureStart##feature_name##addDef
(addCode)
//##featureEnd
(6)addInclude
Need not the interpolation #include of context matches, only support C language
//##featureStart##feature_name##addDef
(addCode)
//##featureEnd
(7)addImport
Need not the interpolation import of context matches, only support Java
//##featureStart##feature_name##addDef
(addCode)
//##featureEnd
(8)modify
Context matches is utilized to revise code
//##featureStart##feature_name##modify
//##delStart
(DeleteCode)
//##delEnd
(ModifiedCode)
//##featureEnd
(9)modifyWC
Need not the amendment of context
//##featureStart##feature_name##modifyWC
//##delStart
(DeleteCode)
//##delEnd
(ModifiedCode)
//##featureEnd
(10)delCode
Need the deletion code of context matches
//##featureStart##feature_name##delCode
(DeleteCode)
//##delEnd
//##featureEnd
(11)delMethod
Need not context matches delet method
//##featureStart##feature_name##delMethod
//##delStart
(DeleteCode)
//##delEnd
//##featureEnd
(12)replaceMethod
//##featureStart##feature_name##replaceMethod
//##delStart
(DeleteCode)
//##delEnd
(ModifiedCode)
//##featureEnd
The present embodiment, by resolving the modified logo needed for service packs acquisition, revises the corresponding of original document in source code Position amendment code, it is achieved assure the original document really revising in source code according to the patch of amendment file, improve acquisition and repair The convenience of the source code after changing and reliability.
Further, based on above-mentioned code management system any embodiment, it is proposed that code management system the 4th of the present invention Embodiment, the present embodiment with the difference of code management system any embodiment of the present invention is, above-mentioned code administration in the present embodiment System also includes:
More new module, is used for deleting described service packs, obtains the new service packs generated based on amended source code, The path of new amendment file is obtained, after obtaining amendment according to the path of described new amendment file from described new service packs Source code in corresponding file;Resolve described new service packs and obtain new modified logo, according to described new modified logo And described file revised by preset coupling alteration ruler accordingly.
In the present embodiment, during program debugging, when certain functional module also needs to modify code, need Updating the Patch bag of this functional module, more new module updates the step of Patch bag and includes: delete original .perfectPatch File, i.e. deletes original Patch bag, then according to the step generation one of above-mentioned generation .perfectPatch file is of the same name .perfectPatch file.
Specifically, after deleting original Patch bag, based on the above-mentioned amended source code file to certain functional module After modifying, regenerate new Patch bag.More new module loads new Patch bag at code management system, resolves new Patch bag, obtains the path of new amendment file from new Patch bag, obtains amendment according to the path of new amendment file File corresponding in rear source code.Continue to resolve the modified logo that the acquisition of new Patch bag is new, according to new modified logo and on State preset coupling alteration ruler file is revised accordingly.
The present embodiment, by being updated Patch bag, improves joint debugging and safeguards the convenience of code, and improve It is incorporated into the accuracy rate of code, it is ensured that the stability of program function.
Accordingly, as shown in Figure 4, one code administration method first embodiment of the present invention is proposed.The present embodiment dematron Reason method is corresponding with above-mentioned code management system first embodiment, and the code administration method of this embodiment includes:
The service packs that step S10, acquisition are generated based on the amendment file being modified in source code;
In the present embodiment, code administration is applied to multiple functional modules in software development and carries out the occasion of joint debugging, such as, and can To be applied in Android complete machine software development, to functional module exploitations such as BSP, framework and app.
First, be responsible for each functional module developer file corresponding in source code is modified, complete right The amendment of file and after obtaining revising file, according to patch bag (the i.e. patch of amendment this amendment file of file generated being modified Bag).When needs carry out joint debugging to source code, it is corresponding that the code management system of this locality, joint debugging side needs to obtain other functional modules The patch bag of amendment side, such as, patch bag is sent to joint debugging side local by amendment side.Make the code administration system of joint debugging side System can get the service packs generated based on the amendment file being modified in source code.
It is understood that owing to each functional module there may be multiple file, when a functional module exists When multiple amendment files are modified, can be for each amendment file generated multiple patch bag, it is also possible to be for this function mould Block generates a patch bag.
Step S20, resolve described service packs obtain amendment file path, according to the acquisition source, path of described amendment file Original document corresponding in code;
During program joint debugging, loading after patch bag, needing to resolve record in patch bag acquisition patch bag interior Hold.First resolve patch bag and obtain the path of corresponding amendment file, obtain in source code corresponding according to the path of amendment file Original document, in order to this original document is modified, reduction amendment file.
Step S30, resolve described service packs obtain modified logo, according to modified logo and preset coupling alteration ruler pair Described original document is revised accordingly, obtains amended source code.
After obtaining revising original document corresponding in source code before file corresponds to amendment, code management system continues Resolving patch bag, obtain the modified logo of record in patch bag, this modified logo can be initial amendment row, terminate amendment Row, the code being modified, the class being modified, the method being modified and the behavior etc. being modified.Then according to modified logo and pre- The original document that location is obtained by the coupling alteration ruler put is revised accordingly, and coupling alteration ruler can enter according to practical situation Row is arranged, and such as, coupling alteration ruler is to utilize context matches to add code, need the deletion code etc. of context matches. Specifically, replace code (modify) according to the behavior of code revision, increase code (addCode) or delete code (delCode), it is judged that the rule of contextual modifications: replace, increase or delete and original document is modified.Such as, if Increase code line, then the nominated bank's code content before relatively more initial amendment row, navigate to the position of original document, amendment Class, the method for amendment, increase to corresponding position in original document by the code being modified.
When being resolved to end line mark " // ##featrueEnd " field and terminating to revise the nominated bank's content after row, Determine that the amendment to original document terminates, obtain amended source code and preserve, and run debugging.
Below will be, in Android complete machine software development, to enter as a example by the functional development of BSP, framework and app side Row illustrates.The coordination of each department developer is needed, after source code completes, respectively for these three functional development The code of individual functional module needs to modify, and when being carried out joint debugging by a certain developer, by using script, then by difference Amendment file in functional module is incorporated in source code, i.e. runs PerfectPatch parsing script and amendment file is joined source In code.Wherein, PerfectPatch is by a series of keyword and specifications of annotation, defines a new function Feature。
PerfectPatch series of tools comprise PerfectPatch generate script, PerfectPatch more new script and PerfectPatch installation script.Wherein, PerfectPatch generates script for generating the patch bag of a New function; PerfectPatch more new script is for the patch bag of new and old function code amendment;PerfectPatch installation script is used for The amendment file that patch bag is corresponding is incorporated in code.
Feature specifications of annotation is as follows:
(1) Feature head:
//##featrueStart##feature_name##action(##matchrule)
Wherein, comprise three parts (or four parts), fixing start with // ##featureStart, after successively with Feature name, action (type of amendment), need to write out during special matched rule last field, if do not write out silent Think 3#3, mate the most forward three row, mate three row backward.
(2) Feature content:
//##delStart
// delete code
//##delEnd
// newly-increased code
If desired code is deleted then using // ##delStart as the beginning label deleted, using // ##delEnd as deletion End mark.Code between two labellings is the code needing to delete.
(3) Feature tail:
//##featrueEnd
Must end up with this.
In one embodiment, if certain file in BSP only adds partial code, need to enter in framework side Row joint debugging, then can previously generate in BSP the patch bag revising file, sends the patch bag of BSP to framework side code This locality of management system.In the code management system of framework side, load and resolve the patch bag of BSP, obtain amendment literary composition Corresponding original document is carried out in locating source code in the path of part, continue to resolve the patch bag of BSP obtain initial revise line identifier, Nominated bank's code before initial amendment row, the code terminating amendment line identifier, being modified, and be modified class, be modified Method and the modified logo such as the behavior that is modified, according to modified logo the code being modified increased in original document with repair Change between initial row corresponding to file and end line.
In another embodiment, if certain file in app only deletes partial code, need to join in BSP side Adjust, then can previously generate in app the patch bag revising file, the patch bag of app is loaded onto BSP side code management system Local.Resolving the patch bag of app in the code management system of BSP side, the path obtaining amendment file is come in locating source code Corresponding original document, the patch bag continuing to resolve app obtains the nominated bank before initial amendment line identifier, initial amendment row Code, the code terminating amendment line identifier, being modified, and class, the method being modified and the behavior etc. being modified being modified Modified logo, by between the initial row in original document and end line, the code identical with the code being modified in amendment file Delete.
In another embodiment, if respectively the file in BSP and framework being modified, need to enter in app side Row joint debugging, then can previously generate in BSP and revise the patch bag revising file in the patch bag of file and framework, by BSP Patch bag and the patch bag of framework send to this locality of app side code management system, the code administration system of app side System can load the patch bag generated based on the amendment file being modified in source code, resolves BSP and framework respectively Patch bag, revise in source code correspondence original document.Make PerfectPatch strategy can help developer more Easy and convenient generation Patch bag, more fresh code, for joint debugging with safeguard that code can save the substantial amounts of duplication of labour, reduce Workload.It addition, PerfectPatch strategy is while reduction even eliminates code conflicts, improve again the standard of amendment code Really rate, and then ensure that the stability of program function.
The embodiment of the present invention is by resolving the service packs generated based on the amendment file being modified in source code, according to benefit The content of record in fourth bag, the path obtaining amendment file obtains original document corresponding in source code, and according to amendment Original document is revised accordingly, to obtain amended source code by mark according to preset coupling alteration ruler.Make to lead to Cross in modified logo record modification file and be modified position, can reduce in corresponding original document exactly and revise file, Relative to manually comparison amendment original document, improve the service packs according to amendment file and obtain the efficiency of amended source code And accuracy rate.
Further, as it is shown in figure 5, based on above-mentioned code administration method first embodiment, it is proposed that dematron of the present invention Reason method the second embodiment, the present embodiment code administration method is corresponding with above-mentioned code management system the second embodiment.This enforcement Example is to include before above-mentioned steps S10 in the present embodiment with the difference of code administration method first embodiment of the present invention:
Step S40, obtain for the amendment file revised of described source code;
Step S50, obtain in described amendment file with first mark beginning field, by described first mark beginning word The row at section place is set as initial amendment row;
Step S60, record described initial amendment row before nominated bank's code, the path of described amendment file and described repair Change the code being modified in file, and record the class being modified in described amendment file, the method being modified and be modified Behavior;
Step S70, obtain in described amendment file with second mark beginning field, by described second mark beginning word The row at section place is set as terminating amendment row, and records the described nominated bank's code terminated after amendment row;
Step S80, the content recorded is stored, generate service packs.
In the present embodiment, before program is carried out joint debugging, need the amendment file generated being modified based on source code Patch bag, by using script and defining according to keyword, annotation rule and action, generates the patch bag of certain function, raw Become step as follows:
(1) the amendment file revised for source code is obtained;
(2) field started with the first mark " // ##featrueStart " in search amendment file, as initial amendment OK, the beginning i.e. revised;
(3) the nominated bank's content before the path of record modification file and initial amendment row start, such as, 3 row contents;
(4) class of record modification, if anonymous class, then records full line;
(5) method of record modification, when method is when there is currently no case of heavy load, then without parameter;When there is heavy duty Time, then write out the type of the method parameter;
(6) behavior of record code amendment, i.e. the rule of context matches, at modify, meeting when addCode, delCode This field occurs;
(7) code of record modification, increases, is deleted or modified;
(8) field started with the second mark " // ##featrueEnd " in search amendment file, as terminating amendment row, The end i.e. revised;
(9) the nominated bank's content after record end amendment row, such as, this nominated bank's content can be 3 row contents;
The content of above-mentioned record is write and preserves in the file of an entitled .perfectPatch of suffix, generate patch Bag.
Illustrating patch bag form below, the patch file generated by instrument is * .PerfectPatch file, Form is as follows:
@start
@path
@classname
@method
@rule
@code
(The code to match)
Part I
$
(The code to delete)
Part II
$
(The code to add)
Part III
@end
Wherein ,@start represents the beginning of a part;
@path represents the path wanting operation file;
@classname represents the class that needs operate, and when operation in anonymous class, this part is full line;
@method represents the method that needs operate, when method is when there is currently no case of heavy load, without parameter, when depositing When heavy duty, the type of parameter can be write out;
@rule represents the rule of context matches, at modify, there will be this field when addCode, delCode;
@code
Part I represents that this part is the code for context matches;
Part II represents that this part is intended to the code deleted;
Part III represents that this part is code to be added;
@end represents the end of a part.
The service packs that the present embodiment is generated based on the amendment file being modified in source code, in order to service packs is solved Analysis obtains modified logo, revises original document reduction amendment file, the problem solving code conflicts, improve in source code Service packs according to amendment file obtains efficiency and the accuracy rate of amended source code.
Further, as shown in Figure 6, based on above-mentioned code administration method the second embodiment, it is proposed that dematron of the present invention Reason method the 3rd embodiment, the present embodiment code administration method is corresponding with above-mentioned code management system the 3rd embodiment.This enforcement Example is that in the present embodiment, above-mentioned steps S30 includes with the difference of code administration method the second embodiment of the present invention:
Step S31, resolving described service packs, nominated bank's code, described end before obtaining described initial amendment row are repaiied The code being modified in nominated bank's code after changing one's profession, described amendment file, and described amendment file is modified class, The method being modified and the behavior being modified;
Class, the method being modified and the behavior being modified that step S32, basis are modified determine at described original document Position, according to the nominated bank's code before the initial amendment row in described amendment file in described position, at described original literary composition Part determines the initial row of correspondence, and according to the described nominated bank's code terminated after amendment row, in described original document Determine the end line of correspondence;
Step S33, according to the code being modified in described amendment file, described source code is revised described original document Initial row and end line between code.
In the present embodiment, mistake original document revised accordingly according to modified logo and preset coupling alteration ruler Cheng Zhong, first resolves patch bag and obtains the class being modified, the method being modified and the behavior being modified of record, initial amendment Nominated bank's code before row, terminate the contents such as nominated bank's code after amendment row, according to the class being modified, be modified Method and the behavior being modified determine behind the position of original document, in this position according to the nominated bank's generation before initial amendment row Code is positioned in original document the initial row of correspondence.And according to the nominated bank's code terminated after amendment row, original in location End line corresponding in file.According to the code being modified in amendment file, source code is revised the initial row of original document And the code between end line.
This amendment includes increasing, deletes, replacement etc., and alternatively, in the present embodiment, above-mentioned steps S33 includes: repair described Change between initial row and the end line that the code being modified in file increases to original document described in described source code;Or, By between initial row and the end line of original document described in described source code, with the code phase that is modified in described amendment file Same code deletion;Or, the code being modified in described amendment file is replaced original document described in described source code Code between initial row and end line.
Hereinafter the use of type action to amendment is explained in detail, the behavior of action code revision, mainly there are 6 Action:
(1) addDef: at C, C++ defmacro;
(2) modify: be used for increasing, revise, delete code;
(3) addInclude: for increasing quoting of header file in C, C++;
(4) addImport: for introducing class in Java;
(5) addCodeAtTail: the beginning at file increases code;
(6) addCodeAtHead: the ending at file increases code.
According to the code being modified in amendment file, revise between the initial row of original document and end line in source code Code include:
(1)addCode
Context matches is utilized to add code
//##featureStart##feature_name##addCode
(addCode)
//##featureEnd
(2)addMethod
Need not the adding method of context matches
//##featureStart##feature_name##addMethod
(addMethod)
//##featureEnd
(3)addCodeAtHead
Need not context matches and add code, add code in the beginning of present scope
//##featureStart##feature_name##addCodeAtHead
(addCode)
//##featureEnd
(4)addCodeAtTail
Need not the adding method of context matches, at the end in current scope, add code
//##featureStart##feature_name##addCodeAtTail
(addCode)
//##featureEnd
(5)addDef
Need not the interpolation #def of context matches, only support C language
//##featureStart##feature_name##addDef
(addCode)
//##featureEnd
(6)addInclude
Need not the interpolation #include of context matches, only support C language
//##featureStart##feature_name##addDef
(addCode)
//##featureEnd
(7)addImport
Need not the interpolation import of context matches, only support Java
//##featureStart##feature_name##addDef
(addCode)
//##featureEnd
(8)modify
Context matches is utilized to revise code
//##featureStart##feature_name##modify
//##delStart
(DeleteCode)
//##delEnd
(ModifiedCode)
//##featureEnd
(9)modifyWC
Need not the amendment of context
//##featureStart##feature_name##modifyWC
//##delStart
(DeleteCode)
//##delEnd
(ModifiedCode)
//##featureEnd
(10)delCode
Need the deletion code of context matches
//##featureStart##feature_name##delCode
(DeleteCode)
//##delEnd
//##featureEnd
(11)delMethod
Need not context matches delet method
//##featureStart##feature_name##delMethod
//##delStart
(DeleteCode)
//##delEnd
//##featureEnd
(12)replaceMethod
//##featureStart##feature_name##replaceMethod
//##delStart
(DeleteCode)
//##delEnd
(ModifiedCode)
//##featureEnd
The present embodiment, by resolving the modified logo needed for service packs acquisition, revises the corresponding of original document in source code Position amendment code, it is achieved assure the original document really revising in source code according to the patch of amendment file, improve acquisition and repair The convenience of the source code after changing and reliability.
Further, based on above-mentioned code administration method any embodiment, it is proposed that code administration method the 4th of the present invention Embodiment, the present embodiment code administration method is corresponding with above-mentioned code management system the 4th embodiment.The present embodiment and the present invention The difference of code administration method any embodiment is to include after above-mentioned steps S40 in the present embodiment:
Delete described service packs, obtain the new service packs generated based on amended source code, from described new benefit Obtaining the path of new amendment file in fourth bag, it is right to obtain in amended source code according to the path of described new amendment file The file answered;
Resolve described new service packs and obtain new modified logo, repair according to described new modified logo and preset coupling Change rule described file is revised accordingly.
In the present embodiment, during program debugging, when certain functional module also needs to modify code, need Updating the Patch bag of this functional module, the step updating Patch bag includes: delete original .perfectPatch file, i.e. Delete original Patch bag, then according to the step of above-mentioned generation .perfectPatch file generate one of the same name .perfectPatch file.
Specifically, after deleting original Patch bag, based on the above-mentioned amended source code file to certain functional module After modifying, regenerate new Patch bag.Load new Patch bag at code management system, resolve new Patch bag, From new Patch bag, obtain the path of new amendment file, obtain amended source generation according to the path of new amendment file File corresponding in Ma.Continue to resolve the modified logo that the acquisition of new Patch bag is new, according to new modified logo and above-mentioned preset Coupling alteration ruler file is revised accordingly.
The present embodiment, by being updated Patch bag, improves joint debugging and safeguards the convenience of code, and improve It is incorporated into the accuracy rate of code, it is ensured that the stability of program function.
Through the above description of the embodiments, those skilled in the art is it can be understood that arrive above-described embodiment side Method can add the mode of required general hardware platform by software and realize, naturally it is also possible to by hardware, but a lot of in the case of The former is more preferably embodiment.Based on such understanding, prior art is done by technical scheme the most in other words The part going out contribution can embody with the form of software product, and this computer software product is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions with so that a station terminal equipment (can be mobile phone, computer, take Business device, air-conditioner, or the network equipment etc.) perform the method described in each embodiment of the present invention.
These are only the alternative embodiment of the present invention, not thereby limit the scope of the claims of the present invention, every utilize this Equivalent structure or equivalence flow process that bright description and accompanying drawing content are made convert, or are directly or indirectly used in other relevant skills Art field, is the most in like manner included in the scope of patent protection of the present invention.

Claims (10)

1. a code management system, it is characterised in that described code management system includes:
Service packs acquisition module, for obtaining the service packs generated based on the amendment file being modified in source code;
Original document acquisition module, obtains the path of amendment file, according to described amendment file for resolving described service packs Path obtains original document corresponding in source code;
Modified module, is used for resolving described service packs and obtains modified logo, according to modified logo and preset coupling alteration ruler Described original document is revised accordingly, obtains amended source code.
2. code management system as claimed in claim 1, it is characterised in that described code management system also includes:
Amendment file acquisition module, for obtaining the amendment file revised for described source code;
First setting module, for obtaining the field started in described amendment file with the first mark, opens described first mark The row at the field place of head is set as initial amendment row;
Logging modle, for recording nominated bank's code before described initial amendment row, the path of described amendment file and described The code being modified in amendment file, and record the class being modified in described amendment file, the method being modified and repaiied The behavior changed;
Second setting module, for obtaining the field started in described amendment file with the second mark, opens described second mark The row at the field place of head is set as terminating amendment row, and records the described nominated bank's code terminated after amendment row;
Generation module, for the content recorded being stored, generates service packs.
3. code management system as claimed in claim 2, it is characterised in that described modified module includes:
Resolution unit, is used for resolving described service packs, and nominated bank's code, described end before obtaining described initial amendment row are repaiied The code being modified in nominated bank's code after changing one's profession, described amendment file, and described amendment file is modified class, The method being modified and the behavior being modified;
Determine unit, for determining at described original document according to the class, the method being modified and the behavior being modified that are modified Position, in described position according in described amendment file initial amendment row before nominated bank's code, described original File determines the initial row of correspondence, and according to the described nominated bank's code terminated after amendment row, at described original document The middle end line determining correspondence;
Amendment unit, for according to the code being modified in described amendment file, revises described original literary composition in described source code Code between initial row and the end line of part.
4. code management system as claimed in claim 3, it is characterised in that described amendment unit is additionally operable to, by described amendment The code being modified in file increases between initial row and the end line of original document described in described source code;Or,
By between initial row and the end line of original document described in described source code, with generation of being modified in described amendment file The code deletion that code-phase is same;Or,
The code being modified in described amendment file is replaced initial row and the end line of original document described in described source code Between code.
5. the code management system as described in any one of claim 1-4, it is characterised in that described code management system also wraps Include:
More new module, is used for deleting described service packs, obtains the new service packs generated based on amended source code, from institute State the path obtaining new amendment file in new service packs, obtain amended source according to the path of described new amendment file File corresponding in code;Resolve described new service packs and obtain new modified logo, according to described new modified logo and pre- Described file is revised by coupling alteration ruler accordingly that put.
6. a code administration method, it is characterised in that described code administration method comprises the following steps:
Obtain the service packs generated based on the amendment file being modified in source code;
Resolve described service packs and obtain the path of amendment file, obtain correspondence in source code according to the path of described amendment file Original document;
Resolve described service packs and obtain modified logo, according to modified logo and preset coupling alteration ruler to described original document Revise accordingly, obtain amended source code.
7. code administration method as claimed in claim 6, it is characterised in that described acquisition is based on repairing of being modified in source code Include before changing the service packs that file is generated:
Obtain the amendment file revised for described source code;
Obtain the field with the first mark beginning in described amendment file, the row at the field place of described first mark beginning is set It is set to initial amendment row;
Nominated bank's code, the path of described amendment file and described amendment file before recording described initial amendment row is repaiied The code changed, and record the class being modified in described amendment file, the method being modified and the behavior being modified;
Obtain the field with the second mark beginning in described amendment file, the row at the field place of described second mark beginning is set It is set to end amendment row, and records the described nominated bank's code terminated after amendment row;
The content recorded is stored, generates service packs.
8. code administration method as claimed in claim 7, it is characterised in that the described service packs of described parsing obtains amendment mark Know, according to modified logo and preset coupling alteration ruler described original document revised accordingly and include:
Resolve described service packs, obtain the nominated bank's code before described initial amendment row, the finger after described end amendment row Determine the code being modified in line code, described amendment file, and described amendment file is modified class, the method that is modified With the behavior being modified;
Determine in the position of described original document, described according to the class being modified, the method being modified and the behavior being modified According to the nominated bank's code before the initial amendment row in described amendment file in position, in described original document, determine correspondence Initial row, and according to described terminate amendment row after nominated bank's code, determine in described original document correspondence knot Shu Hang;
According to the code being modified in described amendment file, described source code is revised initial row and the knot of described original document Code between bundle row.
9. code administration method as claimed in claim 8, it is characterised in that described according to being modified in described amendment file Code, the code revised in described source code between initial row and the end line of described original document includes:
The code being modified in described amendment file is increased to initial row and the end of original document described in described source code Between row;Or,
By between initial row and the end line of original document described in described source code, with generation of being modified in described amendment file The code deletion that code-phase is same;Or,
The code being modified in described amendment file is replaced initial row and the end line of original document described in described source code Between code.
10. the code administration method as described in any one of claim 6-9, it is characterised in that the described service packs of described parsing obtains Take modified logo, according to modified logo and preset coupling alteration ruler, described original document is revised accordingly, repaiied Include after source code after changing:
Delete described service packs, obtain the new service packs generated based on amended source code, from described new service packs The path of the amendment file that middle acquisition is new, obtains correspondence in amended source code according to the path of described new amendment file File;
Resolve described new service packs and obtain new modified logo, revise rule according to described new modified logo and preset coupling Then described file is revised accordingly.
CN201610387755.0A 2016-06-01 2016-06-01 Code management system and method Active CN106055334B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610387755.0A CN106055334B (en) 2016-06-01 2016-06-01 Code management system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610387755.0A CN106055334B (en) 2016-06-01 2016-06-01 Code management system and method

Publications (2)

Publication Number Publication Date
CN106055334A true CN106055334A (en) 2016-10-26
CN106055334B CN106055334B (en) 2019-05-31

Family

ID=57172592

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610387755.0A Active CN106055334B (en) 2016-06-01 2016-06-01 Code management system and method

Country Status (1)

Country Link
CN (1) CN106055334B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106933591A (en) * 2017-03-15 2017-07-07 东软集团股份有限公司 The method and device that code merges
CN107145351A (en) * 2017-05-02 2017-09-08 山东浪潮通软信息科技有限公司 A kind of method, device, computer-readable recording medium and storage control for changing Digital signature Java bag
CN108241499A (en) * 2018-01-05 2018-07-03 金行家(深圳)文化传播有限公司 Update method, device and the computer readable storage medium of field value annotation
CN109189400A (en) * 2018-08-07 2019-01-11 北京趣拿软件科技有限公司 Program dissemination method and device, storage medium, processor
CN109597620A (en) * 2018-08-08 2019-04-09 北京字节跳动网络技术有限公司 A kind of data processing method, device, equipment and storage medium
CN109726213A (en) * 2018-12-10 2019-05-07 网易无尾熊(杭州)科技有限公司 A kind of program code conversion method, device, medium and calculate equipment
CN110471694A (en) * 2019-07-11 2019-11-19 平安普惠企业管理有限公司 Annotation information processing method, device, computer equipment and storage medium
CN110704298A (en) * 2019-08-23 2020-01-17 北京奇艺世纪科技有限公司 Code verification method and device, terminal equipment and storage medium
CN113900680A (en) * 2020-07-06 2022-01-07 ***通信集团重庆有限公司 Code management method and device and computing equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101566967A (en) * 2009-06-03 2009-10-28 哈尔滨工程大学 Quick automatic amendment method aimed at java byte code files
CN102831056A (en) * 2012-07-31 2012-12-19 东南大学 Regression testing sample generating method based on modification impact analysis
CN104461578A (en) * 2014-12-26 2015-03-25 广州唯品会信息科技有限公司 Automatic code merging method and system
CN105512021A (en) * 2014-09-25 2016-04-20 阿里巴巴集团控股有限公司 Method and device for Diff analysis used for software testing

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101566967A (en) * 2009-06-03 2009-10-28 哈尔滨工程大学 Quick automatic amendment method aimed at java byte code files
CN102831056A (en) * 2012-07-31 2012-12-19 东南大学 Regression testing sample generating method based on modification impact analysis
CN105512021A (en) * 2014-09-25 2016-04-20 阿里巴巴集团控股有限公司 Method and device for Diff analysis used for software testing
CN104461578A (en) * 2014-12-26 2015-03-25 广州唯品会信息科技有限公司 Automatic code merging method and system

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106933591A (en) * 2017-03-15 2017-07-07 东软集团股份有限公司 The method and device that code merges
CN107145351A (en) * 2017-05-02 2017-09-08 山东浪潮通软信息科技有限公司 A kind of method, device, computer-readable recording medium and storage control for changing Digital signature Java bag
CN108241499A (en) * 2018-01-05 2018-07-03 金行家(深圳)文化传播有限公司 Update method, device and the computer readable storage medium of field value annotation
CN109189400A (en) * 2018-08-07 2019-01-11 北京趣拿软件科技有限公司 Program dissemination method and device, storage medium, processor
CN109597620A (en) * 2018-08-08 2019-04-09 北京字节跳动网络技术有限公司 A kind of data processing method, device, equipment and storage medium
CN109597620B (en) * 2018-08-08 2022-04-01 北京字节跳动网络技术有限公司 Data processing method, device, equipment and storage medium
CN109726213A (en) * 2018-12-10 2019-05-07 网易无尾熊(杭州)科技有限公司 A kind of program code conversion method, device, medium and calculate equipment
CN110471694A (en) * 2019-07-11 2019-11-19 平安普惠企业管理有限公司 Annotation information processing method, device, computer equipment and storage medium
CN110704298A (en) * 2019-08-23 2020-01-17 北京奇艺世纪科技有限公司 Code verification method and device, terminal equipment and storage medium
CN113900680A (en) * 2020-07-06 2022-01-07 ***通信集团重庆有限公司 Code management method and device and computing equipment

Also Published As

Publication number Publication date
CN106055334B (en) 2019-05-31

Similar Documents

Publication Publication Date Title
CN106055334A (en) Code management system and method
US7739679B2 (en) Object ordering tool for facilitating generation of firmware update friendly binary image
CN102609328B (en) System difference upgrade method and device and mobile terminal
CN101930400B (en) SDK (Software Development Kit) automatic test system and method
US7614042B1 (en) System and method for selecting applicable tests in an automation testing system
US20070073724A1 (en) System and method for automatic or semi-automatic software integration
CN102279749B (en) Method and equipment for merging codes
CN106293664A (en) Code generating method and device
CN103399734A (en) Method for generating REST service and achieving REST and corresponding equipment
CN108614702B (en) Byte code optimization method and device
CN112882700A (en) iOS application program construction method and device, electronic equipment and storage medium
CN102866944A (en) Pressure testing system and method
CN108021415A (en) Automatic packaging method, apparatus, computer equipment and storage medium
CN108897547A (en) A kind of software automatic deployment and device
CN108776592A (en) A kind of method, apparatus of page makeup, equipment and storage medium
CN109032631A (en) Application program service packs acquisition methods, device, computer equipment and storage medium
CN106095501A (en) A kind of application section arranging method and device
CN107797823A (en) Business Rule Management method, apparatus, storage medium and computer equipment
CN107608663A (en) A kind of development approach and device of Mobile solution plug-in unit and Mobile solution
US10019345B2 (en) Executing multi-version tests against a multi-version application
CN104881311A (en) Method and apparatus for judging version compatibility
CN114020323B (en) Model processing method, code obtaining method, device and electronic equipment
CN101944061B (en) Method and device for debugging codes
CN111722841A (en) Software componentization implementation method under IOS platform
KR101599471B1 (en) Apparatus, system, method and readable recording medium of managing a project file

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant