CN106681783A - Detection method and system for SVN code - Google Patents

Detection method and system for SVN code Download PDF

Info

Publication number
CN106681783A
CN106681783A CN201611158995.XA CN201611158995A CN106681783A CN 106681783 A CN106681783 A CN 106681783A CN 201611158995 A CN201611158995 A CN 201611158995A CN 106681783 A CN106681783 A CN 106681783A
Authority
CN
China
Prior art keywords
svn
codes
code
instruction
submit
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
CN201611158995.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.)
Shenzhen Hengxin Data Ltd By Share Ltd
Original Assignee
Shenzhen Hengxin Data Ltd By Share 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 Shenzhen Hengxin Data Ltd By Share Ltd filed Critical Shenzhen Hengxin Data Ltd By Share Ltd
Priority to CN201611158995.XA priority Critical patent/CN106681783A/en
Publication of CN106681783A publication Critical patent/CN106681783A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/43Checking; Contextual analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Stored Programmes (AREA)

Abstract

The invention relates to a detection method and system for an SVN code. The method includes the following steps: conducting deferred processing on an SVN code submitting command sent by a user; receiving the SVN code submitting command input by the user after deferred processing; reading the SVN code corresponding to the SVN code submitting command; calling a pre-configured static code detection tool to detect the SVN code; according to the detection result, determining whether the SVN code submitting command is executed or not. According to the detecting method and system, when the user uploads the code in an SVN system, the submitted code is actively detected, and according to the detection result, whether uploading is executed or not is judged, so that the problems that detection needs to be actively executed by the user and a large quantity of error code files are accumulated in a code database in the SVN system, and the correctness and accuracy of the submitted SVN code are improved.

Description

A kind of SVN code detection methods and its system
Technical field
The invention belongs to code detection field, more particularly to a kind of SVN code detection methods and its system.
Background technology
Subversion (hereinafter referred to as SVN) is a kind of version control system of open source code, and user is by SVN systems Under system, can multi-user identical code is entered edlin and modification operation, so as to substantially increase the progress of software development.Cause This, causes the code file under SVN systems frequently to be submitted to because many people compile simultaneously, and submits to would be possible to as code every time New mistake is introduced, and user actively carries out self-inspection to code every time before submission, then greatly reduce the work effect of user Rate.On the other hand, the code that user writes for itself is often difficult to find mistake therein, therefore after self-inspection or will can wrap Containing substantial amounts of error code files passe, the code library for causing SVN systems accumulates substantial amounts of error code file, increases modification Difficulty.
The content of the invention
The purpose of the embodiment of the present invention is the detection method and its system for providing a kind of SVN codes, it is intended to solve due to When by many people simultaneously to code carrying out write under SVN systems completes and submit to, detection operation needs user actively to implement, and drops The low submission efficiency of user, and when error code is not submitted in SVN systems through detection, mistake will be caused tired Meter so that the modification difficulty increase in later stage.
The embodiment of the present invention is achieved in that a kind of detection method of SVN codes, and methods described includes:
Instruction is submitted to carry out delay disposal the SVN codes that user sends;
SVN codes after the delayed process of receiving user's input submit instruction to;
Read the SVN codes and submit the corresponding SVN codes of instruction to;
The static code checking tool being pre-configured with is called to test the SVN codes;
Determine whether that performing the SVN submits instruction to according to assay.
Second aspect, the embodiment of the present invention provides a kind of detecting system of SVN codes, and the detecting system includes:
Submit instruction delay module to, the SVN codes for sending to user submit to instruction to carry out delay disposal;
Submit command reception module to, for the SVN codes after the delayed process of receiving user's input instruction is submitted to;
SVN code read modules, for reading the SVN codes the corresponding SVN codes of instruction are submitted to;
SVN code detection modules, for calling the static code checking tool being pre-configured with to examine the SVN codes Test;
Result determining module is submitted to, for determining whether that performing the SVN submits instruction to according to assay.
The detection method and its system for implementing a kind of SVN codes provided in an embodiment of the present invention has the advantages that:
When the embodiment of the present invention enters line code upload operation by user in SVN systems, actively the code to submitting to enters Row detection, and judged whether to perform upload operation according to testing result, need user actively to perform so as to solve detection operation, And the code library under SVN systems may add up the problem of substantial amounts of error code file.Compared with prior art, the present invention is real Apply in example when carrying out submitting to operation to code file under SVN systems, be no longer directly to carry out submission operation, but carry receiving After interdigital order, system carries out detection function automatically, it is ensured that the file of submission be it is correct, so as to improve upload file just True property.On the other hand, because code detection is successfully just uploaded, it is to avoid random submission and wrong situation about submitting to, and cause The code library of SVN systems adds up substantial amounts of mistake, is unfavorable for the modification in later stage, it is seen then that the embodiment of the present invention is effectively reduced the later stage The difficulty of code revision so that translator and compiler easily find the leak of code file.
Description of the drawings
Technical scheme in order to be illustrated more clearly that the embodiment of the present invention, below will be to embodiment or description of the prior art Needed for the accompanying drawing to be used be briefly described, it should be apparent that, drawings in the following description be only the present invention some Embodiment, for those of ordinary skill in the art, without having to pay creative labor, can be with according to these Accompanying drawing obtains other accompanying drawings.
Fig. 1 is a kind of flow chart of the detection method of SVN codes provided in an embodiment of the present invention;
Fig. 2 is a kind of flow chart of the detection method of SVN codes that another embodiment of the present invention is provided;
Fig. 3 is a kind of structured flowchart of the detecting system of SVN codes provided in an embodiment of the present invention;
Fig. 4 is a kind of structured flowchart of the detecting system of SVN codes that another embodiment of the present invention is provided.
Specific embodiment
In order that the objects, technical solutions and advantages of the present invention become more apparent, it is right below in conjunction with drawings and Examples The present invention is further elaborated.It should be appreciated that specific embodiment described herein is only to explain the present invention, and It is not used in the restriction present invention.
The embodiment of the present invention is by the way that when user carries out upload code in SVN systems, actively the code to submitting to is carried out Detection, and judged whether to perform upload operation according to testing result, need user actively to perform so as to solve detection, and Code library under SVN systems adds up the problem of substantial amounts of error code file, so as to improve submission SVN codes correctness with And accuracy.
In embodiments of the present invention, the executive agent of flow process is the detecting system of SVN codes.The detection of the SVN codes System can be an application program, in being installed on SVN systems;Also can be attached with SVN control systems as an external device, it is right Its SVN code submitted to carries out automatic detection.Fig. 1 shows the reality of the detection method of SVN codes provided in an embodiment of the present invention Existing flow chart, details are as follows:
In S101, instruction is submitted to carry out delay disposal the SVN codes that user sends.
In the present embodiment, the SVN codes are the code file in SVN systems.
In the present embodiment, when carrying out submitting to operation under SVN systems due to user, by by the name of input submiting command Claim to call the submiting command, and the corresponding script of the submiting command directly to perform submission operation.In order to realize that user initiates During submission, code detection is carried out automatically, need to instruct corresponding script to modify the submission, grasp so as to Delay-Code is submitted to The opportunity of work.
Alternatively, SVN codes are submitted to the filename modification of the corresponding submission script of instruction, illustratively, the submission foot This file entitled " upload ", then be " delay-upload " by the name modifications of the script.And it is newly-built one perform this flow process Script, its filename with submit to script old file name it is consistent, be in this example " upload ".Therefore, user is calling When SVN codes submit instruction to, the script steps flow chart after directly execution is renamed, so that submitting to operation to be postponed.
In S102, the SVN codes after the delayed process of receiving user's input submit instruction to.
In the present embodiment, user will call SVN codes to submit instruction to after the completion of compiling, and the SVN codes are submitted to and referred to Make and submit instruction to for the SVN codes after delayed process, the detecting system of SVN codes is received after the instruction, not right immediately SVN codes carry out submission operation, but the method started described in the present embodiment is further verified to SVN codes.
In S103, read the SVN codes and submit the corresponding SVN codes of instruction to.
In the present embodiment, the SVN codes that user submits to can be multiple code files, and detection client will read SVN generations Code submits the corresponding all SVN codes of instruction to.
In S104, the static code checking tool being pre-configured with is called to test the SVN codes.
In the present embodiment, the SVN codes to obtaining carry out detection operation, using matching somebody with somebody in advance in SVN code detection systems The static code detection instrument put, verifies, whether to judge SVN codes to the correctness and integrity of SVN codes It is wrong.
Illustratively, the static code detection instrument being pre-configured with is that cppcheck detects instrument, the SVN codes Compiler language be C language or C Plus Plus.When detection client receives the SVN codes, instrument will be detected by cppcheck Static Detection is carried out to the code, i.e. the traversal operation SVN codes, judge whether correctly run and draw accordingly result.
In S105, determine whether that performing the SVN submits instruction to according to assay.
In the present embodiment, when SVN codes find mistake after the detection of detection algorithm, not, then the SVN is judged Code is correct, can carry out upload operation.Pass through when there are multiple SVN code detections, then make all SVN codes by detecting Uploaded for an entirety.
In the present embodiment, the code library SVN codes being committed in SVN systems.Code library is used as public generation Code resources bank, each user obtains code and submits to and writes the code for finishing in the code library, so as to realize that multi-user compiles simultaneously Collect the function of SVN codes.
Alternatively, the code library to submit to SVN codes detect, in order to the detection of the SVN codes visitor Family end sends examining report.If the SVN codes are correct, code right instructions are sent;If the SVN code errors, send out Send code error to instruct and upload failed message.
In the present embodiment, further SVN codes are detected in code library, so as to improve the accuracy rate of SVN codes. Because SVN codes have the situation that many people compile simultaneously, therefore during submission, other codes in code library are also possible to Changed, with the SVN codes for uploading the part that conflicts is had.Therefore, by being detected in code library, then effectively keep away Exempt from the generation of such case, it is ensured that the code of code library is on the whole consistent errorless.
The detection method for implementing a kind of SVN codes provided in an embodiment of the present invention has the advantages that:It is of the invention real When applying example and entering line code upload operation in SVN systems by user, actively the code to submitting to is detected, and according to detection As a result judge whether to perform upload operation, need user actively to perform so as to solve detection operation, and the generation under SVN systems Code storehouse may add up the problem of substantial amounts of error code file.Compared with prior art, it is right under SVN systems in the embodiment of the present invention No longer it is directly to carry out submission operation when code file carries out submitting to operation, but after submission instruction is received, system is automatic Carry out detection function, it is ensured that the file of submission is correct, so as to improve the correctness of the file of upload.On the other hand, by Successfully just uploaded in code detection, it is to avoid random submission and wrong situation about submitting to, and the code library of SVN systems is tired out Substantial amounts of mistake is counted, is unfavorable for the modification in later stage, it is seen then that the embodiment of the present invention effectively reduces the difficulty of later stage code revision, makes Obtain the leak that translator and compiler easily find code file.
Further, as another embodiment of the present invention, the reading SVN codes submit the corresponding SVN of instruction to After code, SVN code servers will be directly uploaded to, detect instrument to upload using default static code in server end Code is detected, and exports testing result.The detecting system of SVN codes, receives the testing result that the server sends, root Judge whether the SVN codes are submitted to successfully according to the testing result.
In the present embodiment, detection operation is not carried out in the detection client of SVN codes, but the clothes by uploading Business device is detected by default algorithm after SVN codes are received to it.The detection client of SVN codes is by receiving Whether examining report is successful to judge this submission operation.Compared with prior art, due to the difference of each translation and compiling environment, may Some systems are not supported locally carrying out detecting SVN codes, or home environment computing resource it is not enough need it is logical The step of crossing server and detected, therefore, the embodiment of the present invention can improve the accuracy of the SVN codes submitted to, moreover it is possible to subtract The calculating pressure of light user machine system, improves detection speed.
Fig. 2 shows a kind of flow chart of the detection method of SVN codes that another embodiment of the present invention is provided.Referring to Fig. 2 Described, a kind of detection method of the SVN codes provided relative to a upper embodiment, the present embodiment is further comprising the steps of, describes in detail It is as follows:
Further, it is described to determine whether that performing the SVN carries according to assay as another embodiment of the present invention Interdigital order includes:
In S206, if check not made a mistake in the SVN codes, perform the SVN and submit instruction to.
In the present embodiment, because SVN codes are after the static code detection instrument verification of preset configuration, confirming should SVN is errorless, therefore executable submission to operates.
In S207, if check to be made a mistake in the SVN codes, terminate performing the SVN submissions instruction.
In the present embodiment, when detection algorithm finds that SVN code checks do not pass through, then judge that the SVN codes are present wrong By mistake, when the code error that user submits to, in order to avoid the code library server for uploading accumulates substantial amounts of mistake, the upload will be terminated Operation, until SVN codes are by detection.
In embodiments of the present invention, uploaded by preventing the SVN codes of mistake, further avoid error code from flowing into clothes In business device or SVN code libraries.SVN codes are detected due to being provided with detection algorithm, when the SVN codes cannot pass through school Test, then directly terminate upload operation, ensure that the correctness of the code of server and code library.
Further, as another embodiment of the present invention, if described inspection is made a mistake in the SVN codes, eventually Only performing the SVN and submitting to also includes after instruction:
In S208, the mistake found in the SVN codes is shown to into user.
In the present embodiment, because it have been observed that including mistake in SVN codes, therefore modify for the ease of user, will Inform that user this time uploads certain or certain several SVN codes error, and cause the code cannot be by detection.
Preferably, will show that SVN code errors are reported, the SVN code errors described in the SVN code errors report Content, and be highlighted, modify in order to user.
Preferably, the wrong content of the SVN codes has been corrected in the SVN code errors report, and points out user to this Amendment content is confirmed.By automatic correction algorithm, simple syntax error in self-healing SVN codes is further improved User's writes efficiency.
In embodiments of the present invention, in order to further improve the compiling efficiency of user, for the SVN code files of mistake are removed Prevention user submits to, also shows wrong content, and so as to allow user more intuitively to learn, on earth those contents are wrong in code By mistake, consequently facilitating user's amendment.
Further, it is described to submit to instruction to prolong the SVN codes that user sends as another embodiment of the present invention Processing late includes:
In S201, the svn orders that code is used will be submitted under Linux environment to be revised as sys_svn orders, and newly-increased second Svn orders.
In the present embodiment, because SVN systems are generally mounted under Linux operating environments, and SVN systems in Linux environment The code of system submits instruction to for svn orders, for delayed submission operation, thus submits the SVN codes to instruction corresponding svn lives Order is revised as sys_svn orders, and the filename of svn orders is revised as " sys_svn ", and newly-increased 2nd svn orders, replaces Former svn orders.When user needs for calling svn orders, what now system was responded would is that the 2nd svn orders, rather than Svn orders originally, because the command name has been modified to sys_svn orders.
In embodiments of the present invention, it is replaced by the submission instruction by user input, so that user input is same The instruction name of sample, you can directly perform the flow process of the automatic SVN code detections of the embodiment of the present invention, therefore do not need user's weight Newly learn new code command, improve the wide usage and the popularization difficulty for reducing the embodiment of the present invention of the embodiment of the present invention.
Further, as another embodiment of the present invention, the reading SVN codes submit the corresponding SVN of instruction to Code is specially:
In S203, parse the SVN codes and submit the corresponding path of instruction to, obtain the SVN code columns under the path Table.
In the present embodiment, after detecting that client terminates to the submission instruction of SVN codes, the instruction will be analyzed and will initiate file The file directory at place, the path then for this document catalogue address in memory.
In the present embodiment, one or more SVN code file is included under the path, the SVN code files Set will constitute SVN code listings.The detecting system of SVN codes, recognizing that SVN codes are submitted to indicated path is instructed Afterwards, by the unified all code files obtained in SVN code listings, in order to further analyze below.
In S204, the submission state eigenvalue of the SVN codes in the SVN code listings under the path is detected;According to The submission state eigenvalue determines that SVN codes submit the corresponding SVN codes of instruction to.
In the present embodiment, user has confirmed that the code is completed during SVN code compilations, can call SVN generations Code submits to instruction to submit the SVN codes to.And the SVN code files have submission state eigenvalue, the submission state is special Value indicative is used to indicate that the SVN codes are in state to be committed.
In the present embodiment, submission state eigenvalue of the client by the identification code is detected, then can determine whether SVN generations Which SVN code file is state to be committed in code list, therefore can determine that SVN codes submit instruction referred to SVN generations to Which code is, after recognizing the submission state eigenvalue, by the content for reading the SVN codes in state to be committed.
Alternatively, if SVN codes are state to be committed, the submission eigenvalue is 1.Read the submission state eigenvalue After for 1 SVN codes, by the SVN codes in submission state eigenvalue set to 0.For the ease of submission operation next time, Read every time after finishing, the submission filling eigenvalue is removed, this SVN generation for needing to submit to can be correctly found next time when submitting to Code.
Alternatively, the submission state eigenvalue changes with the call number that the SVN codes under the path submit instruction to Become.SVN codes are called to submit instruction to every time, the submission state eigenvalue is by difference.Illustratively, if first under the path Secondary to call SVN codes to submit instruction to, then the submission state eigenvalue is 1;When the 5th calls the submission of SVN codes to refer under the path Order, then the submission state eigenvalue is 5.
In the present embodiment, submit to state eigenvalue to be one-to-one relation with submission number of times, by reading shape is submitted to State eigenvalue, then can learn which this SVN code submitted to is, and which SVN code revision is settled and do not submitted to yet, so as to In the efficiency that the SVN codes for improving user are submitted to.
In embodiments of the present invention, submit the pointed path of instruction to by analyzing SVN codes, and read under the path The submission state eigenvalue of all SVN codes, so as to the code for quickly recognizing the need for from numerous code files submitting to, from And improve the efficiency of the detection client process data of SVN codes.
It should be noted that S202 and S205 is due to concrete with S102, the S104 in embodiment illustrated in fig. 1 in the present embodiment Realize that process is identical, therefore repeat no more in this embodiment.
It should be understood that the size of the sequence number of each step is not meant to the priority of execution sequence, each process in above-described embodiment Execution sequence should be determined with its function and internal logic, and any limit should not be constituted to the implementation process of the embodiment of the present invention It is fixed.
Fig. 3 shows the structured flowchart of the detecting system of SVN codes provided in an embodiment of the present invention, and the SVN codes are The method united for performing embodiment illustrated in fig. 1 offer.For convenience of description, illustrate only part related to the present embodiment.
Referring to Fig. 3, the detecting system of the SVN codes includes:
Submit instruction delay module 31 to, the SVN codes for sending to user submit to instruction to carry out delay disposal;
Submit command reception module 32 to, for the SVN codes after the delayed process of receiving user's input instruction is submitted to;
SVN codes read module 33, for reading the SVN codes the corresponding SVN codes of instruction are submitted to;
SVN code detection modules 34, for calling the static code checking tool being pre-configured with to carry out the SVN codes Inspection;
Result determining module 35 is submitted to, for determining whether that performing the SVN submits instruction to according to assay.
Alternatively, shown in Figure 4, in another embodiment, the system of the SVN codes in the embodiment is used for service chart The method that 2 illustrated embodiments are provided, details are as follows:
Alternatively, the submission result determining module is specifically included:
Submit successfully module 46 to, if not making a mistake in for checking the SVN codes, perform the SVN submissions and refer to Order;
Submit failure module 47 to, if making a mistake in for checking the SVN codes, terminate performing the SVN submissions Instruction.
Alternatively, the submission result determining module also includes:
Error reporting display module 48, for the mistake found in the SVN codes to be shown to into user.
Alternatively, the submission instruction delay module includes:
Order replacement module 41, for the svn orders that code is used will to be submitted to replace with sys_svn lives under Linux environment Order.
Alternatively, the SVN codes read module is specifically included:
Submit path parsing module 43 to, for parsing the SVN codes the corresponding path of instruction is submitted to, obtain the path Under SVN code listings;
Submit to state detection module 44, for detecting the path under SVN code listings in SVN codes submission shape State eigenvalue;Determine that SVN codes submit the corresponding SVN codes of instruction to according to the submission state eigenvalue.
It should be noted that in the present embodiment 32 and 35 due to embodiment illustrated in fig. 4 in 42 and 44 concrete structures The function of making and realize is identical, therefore repeats no more in this embodiment.
Therefore, the detecting system of SVN codes provided in an embodiment of the present invention equally can be carried out generation with user in SVN systems During code upload operation, actively the code to submitting to is detected, and is judged whether to perform upload operation according to testing result, so as to Solving detection operation needs user actively to perform, and the code library under SVN systems may add up substantial amounts of error code text The problem of part.Compared with prior art, when carrying out submitting to operation to code file under SVN systems in the embodiment of the present invention, no longer It is directly to carry out submission operation, but after submission instruction is received, system carries out detection function automatically, it is ensured that the file of submission It is correct, so as to improve the correctness of the file of upload.On the other hand, because code detection is successfully just uploaded, keep away Exempt from random submission and wrong situation about submitting to, and caused the code library of SVN systems to add up substantial amounts of mistake, be unfavorable for repairing for later stage Change, it is seen then that the embodiment of the present invention effectively reduces the difficulty of later stage code revision so that translator and compiler easily find code file Leak.
Those skilled in the art can be understood that, for convenience of description and succinctly, only with above-mentioned each work( Energy unit, the division of module are illustrated, and in practical application, as desired can distribute above-mentioned functions by different Functional unit, module are completed, will the internal structure of described device be divided into different functional unit or module, to complete the above The all or part of function of description.Each functional unit, module in embodiment can be integrated in a processing unit, also may be used Being that unit is individually physically present, it is also possible to which two or more units are integrated in a unit, above-mentioned integrated Unit both can be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.In addition, each function list Unit, the specific name of module are also only to facilitate mutually differentiation, is not limited to the protection domain of the application.Said system The specific work process of middle unit, module, may be referred to the corresponding process in preceding method embodiment, will not be described here.
Those of ordinary skill in the art are it is to be appreciated that the list of each example with reference to the embodiments described herein description Unit and algorithm steps, being capable of being implemented in combination in electronic hardware or computer software and electronic hardware.These functions are actually Performed with hardware or software mode, depending on the application-specific and design constraint of technical scheme.Professional and technical personnel Each specific application can be used different methods to realize described function, but this realization it is not considered that exceeding The scope of the present invention.
In embodiment provided by the present invention, it should be understood that disclosed apparatus and method, can pass through other Mode is realized.For example, system embodiment described above is only schematic, for example, the division of the module or unit, It is only a kind of division of logic function, there can be other dividing mode when actually realizing, such as multiple units or component can be with With reference to or be desirably integrated into another system, or some features can be ignored, or not perform.It is another, it is shown or discussed Coupling each other or direct-coupling or communication connection can be INDIRECT COUPLING by some interfaces, device or unit or Communication connection, can be electrical, mechanical or other forms.
The unit as separating component explanation can be or may not be it is physically separate, it is aobvious as unit The part for showing can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can according to the actual needs be selected to realize the mesh of this embodiment scheme 's.
In addition, each functional module in each embodiment of the invention can be integrated in a processing unit, it is also possible to It is that modules are individually physically present, it is also possible to which two or more modules are integrated in a unit.Above-mentioned integrated list Unit both can be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
If the integrated unit is realized using in the form of SFU software functional unit and as independent production marketing or used When, during a computer read/write memory medium can be stored in.Based on such understanding, the technical scheme of the embodiment of the present invention The part for substantially contributing to prior art in other words or all or part of the technical scheme can be with software products Form embody, the computer software product is stored in a storage medium, including some instructions use so that one Computer equipment (can be personal computer, server, or network equipment etc.) or processor (processor) perform this The all or part of step of bright embodiment each embodiment methods described.And aforesaid storage medium includes:USB flash disk, portable hard drive, Read only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic Dish or CD etc. are various can be with the medium of store program codes.
Embodiment described above only to illustrate technical scheme, rather than a limitation;Although with reference to aforementioned reality Apply example to be described in detail the present invention, it will be understood by those within the art that:It still can be to aforementioned each Technical scheme described in embodiment is modified, or carries out equivalent to which part technical characteristic;And these are changed Or replace, the spirit and scope of the essence disengaging various embodiments of the present invention technical scheme of appropriate technical solution are not made, all should It is included within protection scope of the present invention.

Claims (10)

1. a kind of detection method of SVN codes, it is characterised in that the detection method of the SVN codes includes:
Instruction is submitted to carry out delay disposal the SVN codes that user sends;
SVN codes after the delayed process of receiving user's input submit instruction to;
Read the SVN codes and submit the corresponding SVN codes of instruction to;
The static code checking tool being pre-configured with is called to test the SVN codes;
Determine whether that performing the SVN submits instruction to according to assay.
2. the detection method of SVN codes according to claim 1, it is characterised in that it is described determined according to assay be It is no to perform the SVN and submit to instruction to include:
If check not made a mistake in the SVN codes, perform the SVN and submit instruction to;
If check to be made a mistake in the SVN codes, terminate performing the SVN submissions instruction.
3. the detection method of SVN codes according to claim 2, it is characterised in that if described check in the SVN codes Make a mistake, then terminate performing the SVN and submitting to also including after instruction:
The mistake found in the SVN codes is shown to into user.
4. the detection method of the SVN codes according to claim 1-3, it is characterised in that the SVN generations that user is sent Code submits to instruction to carry out delay disposal to be included:
The svn orders that code is used will be submitted under Linux environment to be revised as sys_svn orders, and newly-increased 2nd svn orders.
5. the detection method of SVN codes according to claim 4, it is characterised in that the reading SVN codes are submitted to Corresponding SVN codes are instructed to be specially:
Parse the SVN codes and submit the corresponding path of instruction to, obtain the SVN code listings under the path;
Detect the submission state eigenvalue of the SVN codes in the SVN code listings under the path;It is special according to the submission state Value indicative determines that SVN codes submit the corresponding SVN codes of instruction to.
6. a kind of detecting system of SVN codes, it is characterised in that the detecting system of the SVN codes includes:
Submit instruction delay module to, the SVN codes for sending to user submit to instruction to carry out delay disposal;
Submit command reception module to, for the SVN codes after the delayed process of receiving user's input instruction is submitted to;
SVN code read modules, for reading the SVN codes the corresponding SVN codes of instruction are submitted to;
SVN code detection modules, for calling the static code checking tool being pre-configured with to test the SVN codes;
Result determining module is submitted to, for determining whether that performing the SVN submits instruction to according to assay.
7. the detecting system of SVN codes according to claim 6, it is characterised in that the submission result determining module tool Body includes:
Submit successfully module to, if not making a mistake in for checking the SVN codes, perform the SVN and submit instruction to;
Submit failure module to, if making a mistake in for checking the SVN codes, terminate performing the SVN submissions instruction.
8. the detecting system of SVN codes according to claim 7, it is characterised in that the submission result determining module is also Including:
Error reporting display module, for the mistake found in the SVN codes to be shown to into user.
9. the detecting system of the SVN codes according to claim 6-8, it is characterised in that the submission instruction delay module Including:
Order replacement module, for the svn orders that use of code will to be submitted to be revised as sys_svn orders under Linux environment, and newly Increase the 2nd svn orders.
10. the detecting system of SVN codes according to claim 9, it is characterised in that the SVN codes read module tool Body includes:
Submit path parsing module to, the corresponding path of instruction is submitted to for parsing the SVN codes, under obtaining the path SVN code listings;
Submit to state detection module, for detecting the path under SVN code listings in SVN codes submission state feature Value;Determine that SVN codes submit the corresponding SVN codes of instruction to according to the submission state eigenvalue.
CN201611158995.XA 2016-12-13 2016-12-13 Detection method and system for SVN code Pending CN106681783A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611158995.XA CN106681783A (en) 2016-12-13 2016-12-13 Detection method and system for SVN code

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611158995.XA CN106681783A (en) 2016-12-13 2016-12-13 Detection method and system for SVN code

Publications (1)

Publication Number Publication Date
CN106681783A true CN106681783A (en) 2017-05-17

Family

ID=58868105

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611158995.XA Pending CN106681783A (en) 2016-12-13 2016-12-13 Detection method and system for SVN code

Country Status (1)

Country Link
CN (1) CN106681783A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108762803A (en) * 2018-04-17 2018-11-06 平安科技(深圳)有限公司 A kind of configuring management method, device, terminal device and storage medium
CN109871230A (en) * 2019-01-10 2019-06-11 珠海金山网络游戏科技有限公司 A kind of method for edition management and its device based on svn
CN109918286A (en) * 2018-12-28 2019-06-21 北京奇安信科技有限公司 A kind of processing method and processing device of static code analysis
WO2019184159A1 (en) * 2018-03-30 2019-10-03 平安科技(深圳)有限公司 Application program code detection method, device, server and medium
CN110825427A (en) * 2019-10-12 2020-02-21 重庆金融资产交易所有限责任公司 Code management method, device, server and storage medium
CN111338940A (en) * 2020-02-21 2020-06-26 中国建设银行股份有限公司 Code processing method, device and system
CN112835676A (en) * 2021-01-27 2021-05-25 北京远盟普惠健康科技有限公司 Deployment method and device of containerized application, computer equipment and medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101982815A (en) * 2010-11-03 2011-03-02 北京世纪高通科技有限公司 Software test system and method
CN106095681A (en) * 2016-06-14 2016-11-09 深圳市彬讯科技有限公司 A kind of SVN integrated JSHint code detection method and system thereof

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101982815A (en) * 2010-11-03 2011-03-02 北京世纪高通科技有限公司 Software test system and method
CN106095681A (en) * 2016-06-14 2016-11-09 深圳市彬讯科技有限公司 A kind of SVN integrated JSHint code detection method and system thereof

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019184159A1 (en) * 2018-03-30 2019-10-03 平安科技(深圳)有限公司 Application program code detection method, device, server and medium
CN108762803A (en) * 2018-04-17 2018-11-06 平安科技(深圳)有限公司 A kind of configuring management method, device, terminal device and storage medium
WO2019200701A1 (en) * 2018-04-17 2019-10-24 平安科技(深圳)有限公司 Configuration management method and apparatus, terminal device and storage medium
CN108762803B (en) * 2018-04-17 2021-09-10 平安科技(深圳)有限公司 Configuration management method, device, terminal equipment and storage medium
CN109918286A (en) * 2018-12-28 2019-06-21 北京奇安信科技有限公司 A kind of processing method and processing device of static code analysis
CN109871230A (en) * 2019-01-10 2019-06-11 珠海金山网络游戏科技有限公司 A kind of method for edition management and its device based on svn
CN110825427A (en) * 2019-10-12 2020-02-21 重庆金融资产交易所有限责任公司 Code management method, device, server and storage medium
CN110825427B (en) * 2019-10-12 2024-01-26 天航长鹰(江苏)科技有限公司 Code management method, device, server and storage medium
CN111338940A (en) * 2020-02-21 2020-06-26 中国建设银行股份有限公司 Code processing method, device and system
CN112835676A (en) * 2021-01-27 2021-05-25 北京远盟普惠健康科技有限公司 Deployment method and device of containerized application, computer equipment and medium

Similar Documents

Publication Publication Date Title
CN106681783A (en) Detection method and system for SVN code
WO2021098148A1 (en) Software compiling method and apparatus, and electronic device and storage medium
CN103226485B (en) Code dissemination method, code issue machine and code delivery system
US8954930B2 (en) System and method for reducing test effort by object risk analysis
US9158514B2 (en) Method and apparatus for providing change-related information
KR100868762B1 (en) Method of error detecting method for embedded sofeware
Hassan et al. Rudsea: recommending updates of dockerfiles via software environment analysis
US10049031B2 (en) Correlation of violating change sets in regression testing of computer software
US8209658B2 (en) Method of creating signatures for classifying program failures
US20120331449A1 (en) Device, method and computer program product for evaluating a debugger script
US20020059561A1 (en) Software package verification
US9959199B2 (en) Diagnosis of test failures in software programs
Santana et al. RAIDE: a tool for Assertion Roulette and Duplicate Assert identification and refactoring
US20100162217A1 (en) Debugging System Using Static Analysis
US8495629B2 (en) Virtual machine relocation system and associated methods
CN102968371B (en) The method of test JAVA API unit component and device
US9317254B1 (en) Fault tolerance model, methods, and apparatuses and their validation techniques
US20030088810A1 (en) Methods and apparatus for determining software component sizes associated with errors
US20140208297A1 (en) Validation of revised computer programs
WO2012052215A1 (en) Software development
CN109032631A (en) Application program service packs acquisition methods, device, computer equipment and storage medium
CN103186463B (en) Determine the method and system of the test specification of software
CN106933591A (en) The method and device that code merges
CN111831554B (en) Code checking method and device
CN105677394A (en) Method and apparatus for upgrading application on terminal 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20170517

RJ01 Rejection of invention patent application after publication