CN104320469B - A kind of increment delta data analysis method for down loading and system based on SVN - Google Patents

A kind of increment delta data analysis method for down loading and system based on SVN Download PDF

Info

Publication number
CN104320469B
CN104320469B CN201410594549.8A CN201410594549A CN104320469B CN 104320469 B CN104320469 B CN 104320469B CN 201410594549 A CN201410594549 A CN 201410594549A CN 104320469 B CN104320469 B CN 104320469B
Authority
CN
China
Prior art keywords
svn
file
renewal
module
servers
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410594549.8A
Other languages
Chinese (zh)
Other versions
CN104320469A (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.)
Beijing Si Tech Information Technology Co Ltd
Original Assignee
Beijing Si Tech Information 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 Beijing Si Tech Information Technology Co Ltd filed Critical Beijing Si Tech Information Technology Co Ltd
Priority to CN201410594549.8A priority Critical patent/CN104320469B/en
Publication of CN104320469A publication Critical patent/CN104320469A/en
Application granted granted Critical
Publication of CN104320469B publication Critical patent/CN104320469B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/194Calculation of difference between files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/197Version control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computational Linguistics (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Signal Processing (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present invention relates to a kind of increment delta data analysis method for down loading and system based on SVN, including human-computer interaction interface is created, operating personnel access SVN servers by human-computer interaction interface, and send operation requests to SVN servers;Judge whether the user is to access SVN servers first, if it is the archives in SVN servers are carried out with once detection and is operated, generates a local SVN copy;Otherwise SVN renewal operations are carried out to local work copy, extraction last time updates changed fileinfo in operation to this renewal operating time section;Changed file consolidation is replicated and is transferred in a temporary folder, and carries out compressed storage;The compressed file in temporary folder is exported by network interface, realizes file download.The present invention is automatically extracted changed data, improves efficiency, mitigated the complicated work for manually counting code of reaching the standard grade, save manpower, reduce cost by SVN management codes.

Description

A kind of increment delta data analysis method for down loading and system based on SVN
Technical field
The present invention relates to field of computer technology, more particularly to a kind of increment delta data analysis download side based on SVN Method and system.
Background technology
Or else Subversion (SVN) is the Version gradually to emerge in recent years, is the successor of CVS, can be Run on same platform.
At present, most of company all uses Subversion as code release management software, while the overwhelming majority increases income That software uses is also Subversion.
During the use of SVN, the problem of release code is to production environment and how to issue is frequently encountered.Consider To efficiency, generally when release code, issue caused change code both for the last time and issued, such as This changed code housekeeping of fruit gives developer and carries out independent arrangement, then can form multiple scattered numbers According to, it has not been convenient to manage.
The content of the invention
The technical problems to be solved by the invention are in view of the deficiencies of the prior art, there is provided a kind of increment based on SVN becomes Change data analysis method for down loading and system, allow developer to be freed from cumbersome code housekeeping, the change to code Change carries out unified analysis and arrangement.
The technical solution that the present invention solves above-mentioned technical problem is as follows:Under a kind of increment delta data analysis based on SVN Support method, includes the following steps:
Step 1, human-computer interaction interface is created, operating personnel access SVN servers by human-computer interaction interface, and to SVN Server sends operation requests;
Step 2, judge whether the user is to access SVN servers first, if it is performs step 3;Otherwise step is performed Rapid 4;
Step 3, the archives in SVN servers are carried out with once detection to operate, generates a local SVN copy, perform step Rapid 4;
Step 4, SVN renewal operations are carried out to local work copy, when extraction last time updates operation to this renewal operation Between changed fileinfo in section;
Step 5, changed file consolidation is replicated and be transferred in a temporary folder, and carry out compressed storage;
Step 6, the compressed file in temporary folder is exported by network interface, realizes file download.
The beneficial effects of the invention are as follows:The present invention, in this link for statistics of reaching the standard grade, is carried automatically by SVN management codes Changed data are taken, improve efficiency, mitigates the complicated work for manually counting code of reaching the standard grade, saves manpower, reduce cost.
Based on the above technical solutions, the present invention can also be improved as follows.
Further, human-computer interaction interface is created using jsp technologies in step 1.
Further, step 4 is implemented as:Carried out by the character string produced to network service in SVN renewal operations Analysis, and then extract the fileinfo that last renewal operation sends change into this renewal operation.
Further, changed file consolidation is replicated using java sources life API in step 5 and is transferred to an interim text In part folder.
Another technical solution that the present invention solves above-mentioned technical problem is as follows:A kind of increment delta data point based on SVN Download system is analysed, including Web server and SVN servers, the Web server include request sending module;The SVN services Device includes request receiving module, request processing module, file shift module, file storage module and file output module;
The operation requests sending module, it is used to send logging request and operation requests to SVN servers;
The request receiving module, it is used to receive operation requests, and operation requests are sent to request processing module;
The request processing module, it is used for the operation requests for determining whether that the user accesses SVN servers first, such as Fruit is that then the archives in SVN servers are carried out with once detection to operate, and generates a local SVN copy;Otherwise directly to local Work copy carries out SVN renewal operations, and extraction last time updates changed file in operation to this renewal operating time section Information;
The file shift module, it, which is used to replicate changed file consolidation, is transferred in file storage module, And carry out compressed storage;
The file storage module, is abandoned in the compressed file for storing compressed processing;
The file output module, it is used to export the compressed file in temporary folder by network interface, realizes File download.
Based on the above technical solutions, the present invention can also be improved as follows.
Further, human-computer interaction interface is further included, human-computer interaction interface is created using jsp technologies, operating personnel pass through people Machine interactive interface accesses SVN servers.
Further, request processing module is analyzed by the character string produced to network service in SVN renewal operations, into And extract the fileinfo that last renewal operation sends change into this renewal operation.
Further, changed file consolidation is replicated and is transferred to by the file shift module using java sources life API In file storage module.
Brief description of the drawings
Fig. 1 is that a kind of increment delta data based on SVN of the present invention analyzes method for down loading flow chart;
Fig. 2 is that a kind of increment delta data based on SVN of the present invention analyzes download system block diagram.
In attached drawing, parts list represented by the reference numerals is as follows:
1st, Web server, 2, SVN servers, 11, request sending module, 21, request receiving module, 22, request processing mould Block, 23, file shift module, 24, file storage module, 25, file output module.
Embodiment
The principle and features of the present invention will be described below with reference to the accompanying drawings, and the given examples are served only to explain the present invention, and It is non-to be used to limit the scope of the present invention.
One of characteristic of Subversion is unified version number.Common CVS is to each document order layout version Number, it is different in the version number of sometime each file.And under Subversion, any once submit all can be to All Files Increase to same new version number, even submitting the file being not related to.So version number of each file in certain random time It is identical.The identical file of version number forms a version of software.Based on this characteristic, we can be analyzed a certain The data of period change.
Present invention is generally directed in the return information of SVN network services dynamic analysis go out the data of change, extract change The document entity of change proposes technical solution for downloading.
Make the realization of core logic using the shell command of java language combinations SVN itself, using B S structures, user Member can carry out operational access by web browser.
As shown in Figure 1, a kind of increment delta data analysis method for down loading based on SVN, includes the following steps:
Step 1, human-computer interaction interface is created, operating personnel access SVN servers by human-computer interaction interface, and to SVN Server sends operation requests;
Step 2, judge whether the user is to access SVN servers first, if it is performs step 3;Otherwise step is performed Rapid 4;
Step 3, the archives in SVN servers are carried out with once detection to operate, generates a local SVN copy, perform step Rapid 4;
Step 4, SVN renewal operations are carried out to local work copy, when extraction last time updates operation to this renewal operation Between changed fileinfo in section;
Step 5, changed file consolidation is replicated and be transferred in a temporary folder, and carry out compressed storage;
Step 6, the compressed file in temporary folder is exported by network interface, realizes file download.
Human-computer interaction interface is created using jsp technologies in step 1.
Step 4 is implemented as:Analyzed by the character string produced to network service in SVN renewal operations, into And extract the fileinfo that last renewal operation sends change into this renewal operation.
Changed file consolidation is replicated using java sources life API in step 5 and is transferred in a temporary folder.
The present invention is created for the interaction page of user of service using jsp, receives the parameter that user of service needs to input, including The access path of SVN, the user name and password of SVN;
Once detection operation first is carried out to the archives of SVN server ends when using for the first time, to produce the SVN of a local Work copy;
For the second time and later in use, the renewal that SVN is carried out to local work copy operates, by updating operation to SVN The character string that middle network service produces is analyzed, and can extract last operation changed file into this renewal Information (including version number);
Changed file consolidation is replicated using java sources life API and is transferred under a certain temporary folder, and is carried out Compressed storage, to download;
By the network interface of JSP, compressed file is exported from browser, is formed and downloads file.
As shown in Fig. 2, a kind of increment delta data analysis download system based on SVN, including Web server 1 and SVN clothes Business device 2, the Web server include request sending module 11;The SVN servers include request receiving module 21, at request Manage module 22, file shift module 23, file storage module 24 and file output module 25;
The operation requests sending module 11, it is used to send logging request and operation requests to SVN servers;
The request receiving module 21, it is used to receive operation requests, and operation requests are sent to request processing module;
The request processing module 22, it is used for the operation requests for determining whether that the user accesses SVN servers first, If it is the archives in SVN servers are carried out with once detection to operate, generates a local SVN copy;Otherwise directly to this Ground work copy carries out SVN renewal operations, and extraction last time updates changed text in operation to this renewal operating time section Part information;
The file shift module 23, it, which is used to replicate changed file consolidation, is transferred to file storage module In, and carry out compressed storage;
The file storage module 24, is abandoned in the compressed file for storing compressed processing;
The file output module 25, it is used to export the compressed file in temporary folder by network interface, real Existing file download.
Above-mentioned technical proposal further includes human-computer interaction interface, creates human-computer interaction interface using jsp technologies, operating personnel are led to Cross human-computer interaction interface and access SVN servers.
The request processing module 22 is analyzed by the character string produced to network service in SVN renewal operations, into And extract the fileinfo that last renewal operation sends change into this renewal operation.
The duplication of changed file consolidation is transferred to file using java sources life API and deposited by the file shift module 23 Store up 24 in module.
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all the present invention spirit and Within principle, any modification, equivalent replacement, improvement and so on, should all be included in the protection scope of the present invention.

Claims (6)

1. a kind of increment delta data analysis method for down loading based on SVN, it is characterised in that include the following steps:
Step 1, human-computer interaction interface is created, operating personnel access SVN servers by human-computer interaction interface, and are serviced to SVN Device sends operation requests;
Step 2, judge whether the user is to access SVN servers first, if it is performs step 3;Otherwise step 4 is performed;
Step 3, the archives in SVN servers are carried out with once detection to operate, generates a local SVN copy, perform step 4;
Step 4, SVN renewal operations, extraction last time renewal operation to this renewal operating time section are carried out to local work copy Interior changed fileinfo;
Step 5, changed file consolidation is replicated and be transferred in a temporary folder, and carry out compressed storage;
Step 6, the compressed file in temporary folder is exported by network interface, realizes file download;
Step 4 is implemented as:
Analyzed by the character string produced to network service in SVN renewal operations, and then extract last renewal operation The fileinfo of change is sent into this renewal operation.
A kind of 2. increment delta data analysis method for down loading based on SVN according to claim 1, it is characterised in that step 1 It is middle that human-computer interaction interface is created using jsp technologies.
A kind of 3. increment delta data analysis method for down loading based on SVN according to claim 1, it is characterised in that step 5 Middle replicated changed file consolidation using java sources life API is transferred in a temporary folder.
4. a kind of increment delta data analysis download system based on SVN, it is characterised in that serviced including Web server and SVN Device, the Web server include request sending module, the SVN servers include request receiving module, request processing module, File shift module, file storage module and file output module;
The operation requests sending module, it is used to send logging request and operation requests to SVN servers;
The request receiving module, it is used to receive logging request and operation requests, and operation requests are sent to request processing Module;
The request processing module, it is used for the operation requests for determining whether that the user accesses SVN servers first, if Then the archives in SVN servers are carried out with once detection to operate, generates a local SVN copy;Otherwise directly to local work Copy carries out SVN renewal operations, and extraction last time updates changed fileinfo in operation to this renewal operating time section;
The file shift module, it, which is used to replicate changed file consolidation, is transferred in file storage module, goes forward side by side Row compressed storage;
The file storage module, is abandoned in the compressed file for storing compressed processing;
The file output module, it is used to export the compressed file in temporary folder by network interface, realizes file Download;
Request processing module is analyzed by the character string produced to network service in SVN renewal operations, and then is extracted Once renewal operation sends the fileinfo of change into this renewal operation.
5. a kind of increment delta data analysis download system based on SVN according to claim 4, it is characterised in that also wrap Human-computer interaction interface is included, human-computer interaction interface is created using jsp technologies, operating personnel access SVN by human-computer interaction interface and take Business device.
6. a kind of increment delta data analysis download system based on SVN according to claim 4, it is characterised in that described Changed file consolidation is replicated and is transferred in file storage module by file shift module using java sources life API.
CN201410594549.8A 2014-10-29 2014-10-29 A kind of increment delta data analysis method for down loading and system based on SVN Active CN104320469B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410594549.8A CN104320469B (en) 2014-10-29 2014-10-29 A kind of increment delta data analysis method for down loading and system based on SVN

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410594549.8A CN104320469B (en) 2014-10-29 2014-10-29 A kind of increment delta data analysis method for down loading and system based on SVN

Publications (2)

Publication Number Publication Date
CN104320469A CN104320469A (en) 2015-01-28
CN104320469B true CN104320469B (en) 2018-04-17

Family

ID=52375637

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410594549.8A Active CN104320469B (en) 2014-10-29 2014-10-29 A kind of increment delta data analysis method for down loading and system based on SVN

Country Status (1)

Country Link
CN (1) CN104320469B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104933101B (en) * 2015-05-29 2018-05-29 南车株洲电力机车研究所有限公司 A kind of configuration audit information method for automatically counting based on SVN
CN112052226B (en) * 2020-09-29 2023-10-10 北京罗克维尔斯科技有限公司 Processing method and device for vehicle-mounted service data

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101572724A (en) * 2009-03-05 2009-11-04 国电南瑞科技股份有限公司 Software version management system
CN103530137A (en) * 2013-11-05 2014-01-22 中国联合网络通信集团有限公司 Java web application deploying method and device
CN103595707A (en) * 2013-10-17 2014-02-19 广东电网公司茂名供电局 Automatic file network synchronization method based on SVN

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070244906A1 (en) * 2006-04-14 2007-10-18 Aptana Incorporated Collaborative Content Generation System And Method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101572724A (en) * 2009-03-05 2009-11-04 国电南瑞科技股份有限公司 Software version management system
CN103595707A (en) * 2013-10-17 2014-02-19 广东电网公司茂名供电局 Automatic file network synchronization method based on SVN
CN103530137A (en) * 2013-11-05 2014-01-22 中国联合网络通信集团有限公司 Java web application deploying method and device

Also Published As

Publication number Publication date
CN104320469A (en) 2015-01-28

Similar Documents

Publication Publication Date Title
US11789715B2 (en) Systems and methods for transformation of reporting schema
CN106156186B (en) Data model management device, server and data processing method
US8286127B2 (en) Mirrored file system
US9811325B2 (en) Systems and methods for dynamically replacing code objects for code pushdown
CN104536965B (en) A kind of data query display systems under the conditions of big data and method
CN110457281A (en) Data processing method, device, equipment and medium
CN106933614A (en) A kind of single-page application upgrade method and device
CN108228201A (en) Method of managing software, electronic equipment and storage medium based on software storage
CN110858172A (en) Automatic test code generation method and device
US9904574B2 (en) Parallel computing without requiring antecedent code deployment
CN104881454A (en) Updating method and system of parameter
CN104077161A (en) Client application updating method and device
CN105245567A (en) Method for processing update request and server system
CN104320469B (en) A kind of increment delta data analysis method for down loading and system based on SVN
CN103678240A (en) Method and system for modularized management of distributed computation
CN107070679A (en) A kind of method uniformly released news in different platform
CN110059096A (en) Data version management method, apparatus, equipment and storage medium
CN109753767B (en) Software distribution and updating method and device based on block chain, server and client
CN107526619A (en) The load mode of format data stream file
CN103514044A (en) Resource optimization method, device and system of dynamic behavior analysis system
CN105630997A (en) Data parallel processing method, device and equipment
CN110459022A (en) A kind of Small Ticket Printing System and method
CN104714985A (en) Method and device to improve examining and approving efficiency of form
TW201417029A (en) Source code management system, method, and program
CN106598663A (en) Web application update method and web server

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