CN104199667A - Method and system for newly establishing MTK project and submitting codes - Google Patents

Method and system for newly establishing MTK project and submitting codes Download PDF

Info

Publication number
CN104199667A
CN104199667A CN201410457167.0A CN201410457167A CN104199667A CN 104199667 A CN104199667 A CN 104199667A CN 201410457167 A CN201410457167 A CN 201410457167A CN 104199667 A CN104199667 A CN 104199667A
Authority
CN
China
Prior art keywords
branch
function
code
git
newly
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
CN201410457167.0A
Other languages
Chinese (zh)
Other versions
CN104199667B (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.)
Zhangzhou Malata Technology Co., Ltd.
Original Assignee
NANJING MALATA 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 NANJING MALATA TECHNOLOGY Co Ltd filed Critical NANJING MALATA TECHNOLOGY Co Ltd
Priority to CN201410457167.0A priority Critical patent/CN104199667B/en
Publication of CN104199667A publication Critical patent/CN104199667A/en
Application granted granted Critical
Publication of CN104199667B publication Critical patent/CN104199667B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a method for newly establishing an MTK project and submitting codes. The method comprises the following steps that the codes of all parts of a product are collected, and a frame of the project is established in the form of a function; packaging is carried out on gitpush, and a malatapush function is used for substitution; branches are submitted by operating a shell script resource, branch judgment is carried out before the branches are submitted, submitting is carried out when the branches are correct, and an alarm is given and submitting is stopped when the branches are wrong. The invention further provides a system for newly establishing the MTK project and submitting the codes. The project is newly established efficiently, and it can be guaranteed that the wrong branches are not submitted.

Description

The method and system of a kind of newly-built MTK engineering and submission code
Technical field
The present invention relates to the method and system of a kind of newly-built MTK engineering and submission code.
Background technology
When newly-built MTK engineering, newly-built to large-engineering, code is more, be not easy to read and when later maintenance, need to carry out mistake on a large scale searches and revises, cannot carry out specific aim modification, on the other hand, because an engineering is conventionally divided into a plurality of parts and transfers to different people to be responsible for, this just needs version control tool to manage code, what use was more at present is that distributed version control tool git manages, but when the propelling data order git push that uses git submits to branch, can be because code branches be more, and easily occur that error code is submitted to the situation of other branches, submission code efficiency is low.
Summary of the invention
One of the technical problem to be solved in the present invention, a kind of method that is to provide newly-built MTK engineering and submits code to, realizes efficient new project, and guarantees that wrong branch can be not submitted.
One of the technical problem to be solved in the present invention is achieved in that a kind of newly-built MTK engineering and submits the method for code to, comprises the steps:
The each several part code of step 10, collection product, with the form of function, build the framework of project, the code of product is divided into various piece, for engineering refinement, to can carry out specific aim modification during later stage modify, reduce change scope, and the structure of framework, improve readability, and only need can complete new construction by an order;
Step 20, the propelling data order git push of distributed version control tool git is encapsulated, by malatapush function, replace git push, malatapush function is according to the current configuration in git warehouse, require git to create a local branch of the same name with long-range merge branch, obtain remote warehouse name, long-range merge branch name simultaneously;
Step 30, by operation shell script resource, with malatapush function, judge that whether branch correct, if correct, submit to, otherwise, with the form prompting mistake of warning, and stop the action of submission.
Further, the framework that builds project with the form of function in described step 1 is specially: by moving the creat function in shell script one time, and import two parameters into, be respectively the ProductName of structure and the ProductName of dependence, complete the structure of framework.
Further, described step 30 further comprises:
Step 31, the operation shell script resource of passing through, with malatapush function, automatically detect current branch and remote branch, by judging that the corresponding relation of current branch and remote branch judges that whether branch is correct, if correct, enter step 32, otherwise, stop the action of submission, and point out mistake with the form of warning;
Step 32, by the long-range merge of the git push < remote warehouse name > HEAD:refs/for/< name > of branch, specifically specify, accurately push, complete submission.
Further, when not needing product, by clean function, find the code of product various piece and product is deleted.
Two of the technical problem to be solved in the present invention, the system that is to provide a kind of newly-built MTK engineering and submits code to, realizes efficient new project, and guarantees that wrong branch can be not submitted.
Two of the technical problem to be solved in the present invention is achieved in that a kind of newly-built MTK engineering and submits the system of code to, comprising:
Newly-built module: for collecting the each several part code of product, build the framework of project with the form of function;
Package module: encapsulate for the propelling data order git push to distributed version control tool git, by malatapush function, replace git push, malatapush function is according to the current configuration in git warehouse, require git to create a local branch of the same name with long-range merge branch, obtain remote warehouse name, long-range merge branch name simultaneously;
Submission module: by operation shell script resource, with malatapush function, judge that whether branch is correct, if correct, submit to, otherwise, with the form of warning, point out mistake, and stop the action of submission.
Pushing module: for specifically specifying by the long-range merge of the git push < remote warehouse name > HEAD:refs/for/< name > of branch, accurately push, complete submission.
Further, the framework that builds project with the form of function in described newly-built module is specially: by moving the creat function in shell script one time, and import two parameters into, be respectively the ProductName of structure and the ProductName of dependence, complete the structure of framework.
Further, described submission module further comprises:
Branch's judge module: by operation shell script resource, with malatapush function, automatically detect current branch and remote branch, by judging that the corresponding relation of current branch and remote branch judges that whether branch is correct, if correct, enter step 32, otherwise, stop the action of submission, and point out mistake with the form of warning;
Further, when not needing product, by clean function, find the code of product various piece and product is deleted.
Tool of the present invention has the following advantages: the present invention is newly-built fast the engineering of refinement by construction framework, greatly shorten the time, improve the efficiency of MTK new project, and judge by the branch before code is encapsulated and submitted to, avoid error code to be submitted in wrong branch, greatly improved the accuracy that code is submitted to.
Accompanying drawing explanation
The present invention is further illustrated in conjunction with the embodiments with reference to the accompanying drawings.
Fig. 1 is the inventive method flowchart.
Embodiment
As shown in Figure 1, a kind of method of newly-built MTK engineering and submission code, comprises the steps:
Step 10, collect the each several part code of product, with the form of function, build the framework of project, by moving the creat function in shell script one time, and import two parameters into, be respectively the ProductName of structure and the ProductName of dependence, complete the structure of framework; The code of product is divided into various piece, is for engineering refinement, to can carry out specific aim modification during later stage modify, reduces change scope, and the structure of framework, improves readablely, and only need can complete new construction by an order;
Step 20, the propelling data order git push of distributed version control tool git is encapsulated, by malatapush function, replace git push, malatapush function is according to the current configuration in git warehouse, require git to create a local branch of the same name with long-range merge branch, obtain remote warehouse name, long-range merge branch name simultaneously;
Step 30, by operation shell script resource, with malatapush function, judge that whether branch correct, if correct, submit to, otherwise, with the form prompting mistake of warning, and stop the action of submission, step 30 further comprises:
Step 31, the operation shell script resource of passing through, with malatapush function, automatically detect current branch and remote branch, by judging that the corresponding relation of current branch and remote branch judges that whether branch is correct, if correct, enter step 32, otherwise, stop the action of submission, and point out mistake with the form of warning;
Step 32, by the long-range merge of the git push < remote warehouse name > HEAD:refs/for/< name > of branch, specifically specify, accurately push, complete submission.
When not needing product, by clean function, find the code of product various piece and product is deleted.
A system for newly-built MTK engineering and submission code, comprising:
Newly-built module: for collecting the each several part code of product, the framework that builds project with the form of function, by moving the creat function in shell script one time, and imports two parameters into, be respectively the ProductName of structure and the ProductName of dependence, complete the structure of framework; The code of product is divided into various piece, is for engineering refinement, to can carry out specific aim modification during later stage modify, reduces change scope, and the structure of framework, improves readablely, and only need can complete new construction by an order;
Package module: encapsulate for the propelling data order git push to distributed version control tool git, by malatapush function, replace git push, malatapush function is according to the current configuration in git warehouse, require git to create a local branch of the same name with long-range merge branch, obtain remote warehouse name, long-range merge branch name simultaneously;
Submission module: by operation shell script resource, with malatapush function, judge that whether branch is correct, if correct, submit to, otherwise, with the form of warning, point out mistake, and stop the action of submission, submit to module further to comprise:
Branch's judge module: by operation shell script resource, with malatapush function, automatically detect current branch and remote branch, by judging that the corresponding relation of current branch and remote branch judges that whether branch is correct, if correct, enter step 32, otherwise, stop the action of submission, and point out mistake with the form of warning.
When not needing product, by clean function, find product various piece code and product is deleted.
Although more than described the specific embodiment of the present invention; but being familiar with those skilled in the art is to be understood that; our described specific embodiment is illustrative; rather than for the restriction to scope of the present invention; those of ordinary skill in the art are in equivalent modification and the variation done according to spirit of the present invention, all should be encompassed in the scope that claim of the present invention protects.

Claims (8)

1. a method for newly-built MTK engineering and submission code, is characterized in that: comprise the steps:
Step 10, collect the each several part code of product, with the form of function, build the framework of project;
Step 20, the propelling data order git push of distributed version control tool git is encapsulated, by malatapush function, replace git push, malatapush function is according to the current configuration in git warehouse, require git to create a local branch of the same name with long-range merge branch, obtain remote warehouse name, long-range merge branch name simultaneously;
Step 30, by operation shell script resource, with malatapush function, judge that whether branch correct, if correct, submit to, otherwise, with the form prompting mistake of warning, and stop the action of submission.
2. a kind of newly-built MTK engineering according to claim 1 and submit the method for code to, it is characterized in that: the framework that builds project with the form of function in described step 1 is specially: by moving the creat function in shell script one time, and import two parameters into, be respectively the ProductName of structure and the ProductName of dependence, complete the structure of framework.
3. a kind of newly-built MTK engineering according to claim 1 and submit the method for code to, is characterized in that: described step 30 further comprises:
Step 31, the operation shell script resource of passing through, with malatapush function, automatically detect current branch and remote branch, by judging that the corresponding relation of current branch and remote branch judges that whether branch is correct, if correct, enter step 32, otherwise, stop the action of submission, and point out mistake with the form of warning;
Step 32, by the long-range merge of the git push < remote warehouse name > HEAD:refs/for/< name > of branch, specifically specify, accurately push, complete submission.
4. a kind of newly-built MTK engineering according to claim 1 and submit the method for code to, is characterized in that: when not needing product, by clean function, find product various piece code and product is deleted.
5. newly-built MTK engineering and submit the system of code to, is characterized in that: comprising:
Newly-built module: for collecting the each several part code of product, build the framework of project with the form of function;
Package module: encapsulate for the propelling data order git push to distributed version control tool git, by malatapush function, replace git push, malatapush function is according to the current configuration in git warehouse, require git to create a local branch of the same name with long-range merge branch, obtain remote warehouse name, long-range merge branch name simultaneously;
Submission module: by operation shell script resource, with malatapush function, judge that whether branch is correct, if correct, submit to, otherwise, with the form of warning, point out mistake, and stop the action of submission.
6. a kind of newly-built MTK engineering according to claim 5 and submit the system of code to, it is characterized in that: the framework that builds project with the form of function in described newly-built module is specially: by moving the creat function in shell script one time, and import two parameters into, be respectively the ProductName of structure and the ProductName of dependence, complete the structure of framework.
7. a kind of newly-built MTK engineering according to claim 5 and submit the system of code to, is characterized in that: described submission module further comprises:
Branch's judge module: by operation shell script resource, with malatapush function, automatically detect current branch and remote branch, by judging that the corresponding relation of current branch and remote branch judges that whether branch is correct, if correct, enter step 32, otherwise, stop the action of submission, and point out mistake with the form of warning;
Pushing module: for specifically specifying by the long-range merge of the git push < remote warehouse name > HEAD:refs/for/< name > of branch, accurately push, complete submission.
8. a kind of newly-built MTK engineering according to claim 5 and submit the system of code to, is characterized in that: when not needing product, by clean function, find product various piece code and product is deleted.
CN201410457167.0A 2014-09-10 2014-09-10 Method and system for newly building MTK project and submitting codes Active CN104199667B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410457167.0A CN104199667B (en) 2014-09-10 2014-09-10 Method and system for newly building MTK project and submitting codes

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410457167.0A CN104199667B (en) 2014-09-10 2014-09-10 Method and system for newly building MTK project and submitting codes

Publications (2)

Publication Number Publication Date
CN104199667A true CN104199667A (en) 2014-12-10
CN104199667B CN104199667B (en) 2020-04-07

Family

ID=52084964

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410457167.0A Active CN104199667B (en) 2014-09-10 2014-09-10 Method and system for newly building MTK project and submitting codes

Country Status (1)

Country Link
CN (1) CN104199667B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105487912A (en) * 2015-11-30 2016-04-13 西安闻泰电子科技有限公司 Public problem modification multi-branch maintenance system and method
CN105760184A (en) * 2014-12-18 2016-07-13 深圳云之家网络有限公司 Method and device for loading component
CN107025112A (en) * 2017-04-10 2017-08-08 丹露成都网络技术有限公司 A kind of supervision and tracking based on git hooks and bug management tool
CN108062232A (en) * 2017-12-14 2018-05-22 上海钢联电子商务股份有限公司 A kind of system and method for automatically creating branch
CN108647010A (en) * 2018-04-27 2018-10-12 武汉斗鱼网络科技有限公司 A kind of method, terminal device and the storage medium of projects initialization
CN110058860A (en) * 2019-03-16 2019-07-26 平安城市建设科技(深圳)有限公司 A kind of automatic delivery method of code, device, equipment and computer storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103207779A (en) * 2012-01-16 2013-07-17 国际商业机器公司 Apparatus And Method Useful For Source Code Patches
CN103309804A (en) * 2013-04-08 2013-09-18 中国电子科技集团公司第十研究所 Automatic code rule checking platform
CN103336688A (en) * 2013-06-20 2013-10-02 中标软件有限公司 Software integrating method and system oriented to cloud computing software research and development process
CN103729195A (en) * 2014-01-15 2014-04-16 北京奇虎科技有限公司 Control method and system for software version

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103207779A (en) * 2012-01-16 2013-07-17 国际商业机器公司 Apparatus And Method Useful For Source Code Patches
CN103309804A (en) * 2013-04-08 2013-09-18 中国电子科技集团公司第十研究所 Automatic code rule checking platform
CN103336688A (en) * 2013-06-20 2013-10-02 中标软件有限公司 Software integrating method and system oriented to cloud computing software research and development process
CN103729195A (en) * 2014-01-15 2014-04-16 北京奇虎科技有限公司 Control method and system for software version

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105760184A (en) * 2014-12-18 2016-07-13 深圳云之家网络有限公司 Method and device for loading component
CN105760184B (en) * 2014-12-18 2019-07-23 深圳云之家网络有限公司 A kind of method and apparatus of charging assembly
CN105487912A (en) * 2015-11-30 2016-04-13 西安闻泰电子科技有限公司 Public problem modification multi-branch maintenance system and method
CN107025112A (en) * 2017-04-10 2017-08-08 丹露成都网络技术有限公司 A kind of supervision and tracking based on git hooks and bug management tool
CN108062232A (en) * 2017-12-14 2018-05-22 上海钢联电子商务股份有限公司 A kind of system and method for automatically creating branch
CN108647010A (en) * 2018-04-27 2018-10-12 武汉斗鱼网络科技有限公司 A kind of method, terminal device and the storage medium of projects initialization
CN108647010B (en) * 2018-04-27 2021-11-26 武汉斗鱼网络科技有限公司 Project engineering initialization method, terminal equipment and storage medium
CN110058860A (en) * 2019-03-16 2019-07-26 平安城市建设科技(深圳)有限公司 A kind of automatic delivery method of code, device, equipment and computer storage medium

Also Published As

Publication number Publication date
CN104199667B (en) 2020-04-07

Similar Documents

Publication Publication Date Title
CN104199667A (en) Method and system for newly establishing MTK project and submitting codes
CN101789171B (en) Method and system for changing data transfer bus
CN102624685A (en) Encodable protocol processing method for intelligent equipment
CN105260816A (en) Aircraft full-life-cycle configuration management system
CN105354036A (en) Database operation code generating method and apparatus
CN104614601A (en) Terminal fault positioning method, device and system
CN105032774B (en) A kind of material realized for the register guide of materials-sorting system and using the indicator positions indicating means
CN107294778A (en) A kind of method that industrial equipment collection is realized based on cloud Internet of Things platform
CN103631627A (en) Equipment configuration method, configuration-file generation method and configuration system
CN110795583A (en) Intelligent management method for pump station trash remover
CN104021500A (en) Product quality tracing device based on two-dimensional bar code technology
CN104657554A (en) Rapid rocket three-dimensional model design information extraction system
CN105527920A (en) B/S-based numerical control machine tool fault diagnosis system
CN106649097B (en) A kind of movement automation test method based on object separation management
CN105468836A (en) XSTEEL-based large steel structure technology information extraction method
CN103631228A (en) Control system virtualization method
CN204360179U (en) A kind of device of injection machine production of intelligent watch-dog
CN106342297B (en) A kind of satellite modeling method with stand-alone device modeling
CN107992995A (en) A kind of method and system for creating technological process title
CN210201871U (en) Intelligent networking auxiliary transportation system for welding wire spool
US20170337644A1 (en) Data driven invocation of realtime wind market forecasting analytics
CN103400219A (en) Statistical form intelligent management method applied to packaging production line
CN204314754U (en) The data collector of power distribution cabinet automatic control system
CN106067071B (en) Multi-state model management method based on segmented coding
CN204178391U (en) A kind of laboratory equipment management devices based on RFID

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20180906

Address after: 363000 a factory building of Jingcheng Malata Industrial Park, Nanjing County, Zhangzhou, Fujian.

Applicant after: Zhangzhou Malata Technology Co., Ltd.

Address before: 363000 Malata Nanjing Industrial Park, Zhangzhou, Fujian

Applicant before: Nanjing Malata Technology Co., Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant