CN104320469A - Incremental change data analyzing and downloading method and system based on SVN - Google Patents

Incremental change data analyzing and downloading method and system based on SVN Download PDF

Info

Publication number
CN104320469A
CN104320469A CN201410594549.8A CN201410594549A CN104320469A CN 104320469 A CN104320469 A CN 104320469A CN 201410594549 A CN201410594549 A CN 201410594549A CN 104320469 A CN104320469 A CN 104320469A
Authority
CN
China
Prior art keywords
svn
file
module
server
renewal rewards
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
CN201410594549.8A
Other languages
Chinese (zh)
Other versions
CN104320469B (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 invention relates to an incremental change data analyzing and downloading method and system based on SVN. The method includes the steps that a man-machine interaction interface is built, and an operator has access to an SVN server through the man-machine interaction interface and sends an operation request to the SVN server; whether a user has access to the SVN server for the first time is judged, if the answer is positive, detection is carried out on a file in the SVN server for the first time, and a local SVN replication is generated, and otherwise, SVN updating is carried out on a local work replication, and information of files changing during the time from updating last time to updating this time is extracted; the changed files are copied and transferred to a temporary folder in a unified mode and are compressed and stored; the compressed files in the temporary folder are output through a network interface, and file downloading is achieved. According to the method, codes are managed through SVN, changed data are automatically extracted, efficiency is improved, complicated work for counting online codes of workers is reduced, labor is saved, and cost is lowered.

Description

A kind of increment delta data based on SVN analyzes method for down loading and system
Technical field
The present invention relates to field of computer technology, particularly relate to a kind of increment delta data based on SVN and analyze method for down loading and system.
Background technology
Subversion (SVN) is the Version emerged gradually in recent years, is the successor of CVS, can or else same platform run.
At present, most of company all uses Subversion as code release management software, and that most open source software uses simultaneously is also Subversion.
In the use procedure of SVN, often can run into release code to production environment and the problem how to issue.Consider efficiency, general when release code, the change code produced when being all and issuing for the last time is issued, and independently arranges if this code housekeeping changed gives developer, so can form multiple scattered data, be inconvenient to manage.
Summary of the invention
Technical problem to be solved by this invention is for the deficiencies in the prior art, a kind of increment delta data based on SVN is provided to analyze method for down loading and system, allow developer free from loaded down with trivial details code housekeeping, unified analysis and arrangement are carried out to the change of code.
The technical scheme that the present invention solves the problems of the technologies described above is as follows: a kind of increment delta data based on SVN analyzes method for down loading, comprises the steps:
Step 1, founder's machine interactive interface, operating personnel access SVN server by human-computer interaction interface, and to SVN server transmit operation request;
Step 2, judges whether this user is access SVN server first, if it is performs step 3; Otherwise perform step 4;
Step 3, once detects operation to the archives in SVN server, generates a local SVN copy, performs step 4;
Step 4, carries out SVN renewal rewards theory to local work copy, extracts the fileinfo changed in renewal rewards theory to this renewal rewards theory time period last time;
Step 5, copies the file consolidation changed and transfers in a temporary folder, and carry out compressed storage;
Step 6, is exported the compressed file in temporary folder by network interface, realizes file download.
The invention has the beneficial effects as follows: the present invention by SVN management code, in this link of statistics of reaching the standard grade, automatically extracts the data changed, raises the efficiency, alleviate complicate statistics and to reach the standard grade the complicated work of code, saving manpower, reduces costs.
On the basis of technique scheme, the present invention can also do following improvement.
Further, jsp technology founder machine interactive interface is adopted in step 1.
Further, being implemented as of step 4: analyzed by the character string produced network service in SVN renewal rewards theory, and then extract the fileinfo sending change in last renewal rewards theory to this renewal rewards theory.
Further, adopt the raw API in java source the file consolidation changed to be copied in step 5 to transfer in a temporary folder.
Another technical scheme that the present invention solves the problems of the technologies described above is as follows: a kind of increment delta data based on SVN analyzes download system, and comprise Web server and SVN server, described Web server comprises request sending module; Described SVN server comprises request receiving module, request processing module, file shift module, file storage module and file output module;
Described operation requests sending module, it is for sending logging request and operation requests to SVN server;
Described request receiver module, operation requests for receiving operation requests, and is sent to request processing module by it;
Described request processing module, it, for determining whether that this user accesses the operation requests of SVN server first, if it is once detects operation to the archives in SVN server, generates a local SVN copy; Otherwise directly SVN renewal rewards theory is carried out to local work copy, extract the fileinfo changed in renewal rewards theory to this renewal rewards theory time period last time;
Described file shift module, it is transferred in file storage module for the file consolidation changed being copied, and carries out compressed storage;
Described file storage module, abandons the compressed file in storing compressed process;
Described file output module, it, for being exported by the compressed file in temporary folder by network interface, realizes file download.
On the basis of technique scheme, the present invention can also do following improvement.
Further, also comprise human-computer interaction interface, adopt jsp technology founder machine interactive interface, operating personnel are by human-computer interaction interface access SVN server.
Further, request processing module is analyzed by the character string produced network service in SVN renewal rewards theory, and then extracts the fileinfo sending change in last renewal rewards theory to this renewal rewards theory.
Further, the file consolidation changed copies and transfers in file storage module by the raw API in described file shift module employing java source.
Accompanying drawing explanation
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 accompanying drawing, the list of parts representated by each label is as follows:
1, Web server, 2, SVN server, 11, request sending module, 21, request receiving module, 22, request processing module, 23, file shift module, 24, file storage module, 25, file output module.
Embodiment
Be described principle of the present invention and feature below in conjunction with accompanying drawing, example, only for explaining the present invention, is not intended to limit scope of the present invention.
One of characteristic of Subversion is unified version number.Common CVS is to each document order layout version number, different in the version number of each file sometime.And under Subversion, any once submission to all can be increased to same new version number to All Files, even submit the file do not related to.So each file is identical in the version number of certain random time.A version of the file formation software that version number is identical.Based on this characteristic, we can analyze the data in section change sometime.
The present invention goes out the data of change mainly for dynamic analysis in the return information of SVN network service, extracts the document entity of change for download, proposes technical scheme.
Use java language to do the realization of core logic in conjunction with the shell command of SVN self, adopt B S structure, user of service can carry out operational access by web browser.
As shown in Figure 1, a kind of increment delta data based on SVN analyzes method for down loading, comprises the steps:
Step 1, founder's machine interactive interface, operating personnel access SVN server by human-computer interaction interface, and to SVN server transmit operation request;
Step 2, judges whether this user is access SVN server first, if it is performs step 3; Otherwise perform step 4;
Step 3, once detects operation to the archives in SVN server, generates a local SVN copy, performs step 4;
Step 4, carries out SVN renewal rewards theory to local work copy, extracts the fileinfo changed in renewal rewards theory to this renewal rewards theory time period last time;
Step 5, copies the file consolidation changed and transfers in a temporary folder, and carry out compressed storage;
Step 6, is exported the compressed file in temporary folder by network interface, realizes file download.
Jsp technology founder machine interactive interface is adopted in step 1.
Being implemented as of step 4: analyzed by the character string produced network service in SVN renewal rewards theory, and then extract the fileinfo sending change in last renewal rewards theory to this renewal rewards theory.
Adopt the raw API in java source the file consolidation changed to be copied in step 5 to transfer in a temporary folder.
The present invention uses jsp to create the interaction page supplying user of service, accepts the parameter that user of service needs to input, comprises the access path of SVN, the user name of SVN and password;
First time first once detects operation to the archives of SVN server end when using, to produce a local SVN work copy;
Second time and when using later, local work copy is carried out to the renewal rewards theory of SVN, analyzed by the character string produced network service in SVN renewal rewards theory, can extract the last time be operated to this upgrade in the fileinfo (comprising version number) that changes;
Under utilizing the raw API in java source the file consolidation changed to be copied to be transferred to a certain temporary folder, and carry out compressed storage, to download;
By the network interface of JSP, compressed file is exported from browser, form download file.
As shown in Figure 2, a kind of increment delta data based on SVN analyzes download system, and comprise Web server 1 and SVN server 2, described Web server comprises request sending module 11; Described SVN server comprises request receiving module 21, request processing module 22, file shift module 23, file storage module 24 and file output module 25;
Described operation requests sending module 11, it is for sending logging request and operation requests to SVN server;
Described request receiver module 21, operation requests for receiving operation requests, and is sent to request processing module by it;
Described request processing module 22, it, for determining whether that this user accesses the operation requests of SVN server first, if it is once detects operation to the archives in SVN server, generates a local SVN copy; Otherwise directly SVN renewal rewards theory is carried out to local work copy, extract the fileinfo changed in renewal rewards theory to this renewal rewards theory time period last time;
Described file shift module 23, it is transferred in file storage module for the file consolidation changed being copied, and carries out compressed storage;
Described file storage module 24, abandons the compressed file in storing compressed process;
Described file output module 25, it, for being exported by the compressed file in temporary folder by network interface, realizes file download.
Technique scheme also comprises human-computer interaction interface, adopts jsp technology founder machine interactive interface, and operating personnel are by human-computer interaction interface access SVN server.
Described request processing module 22 is analyzed by the character string produced network service in SVN renewal rewards theory, and then extracts the fileinfo sending change in last renewal rewards theory to this renewal rewards theory.
Described file shift module 23 to adopt the raw API in java source the file consolidation changed to be copied to transfer in file storage module 24.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (8)

1. the increment delta data based on SVN analyzes a method for down loading, it is characterized in that, comprises the steps:
Step 1, founder's machine interactive interface, operating personnel access SVN server by human-computer interaction interface, and to SVN server transmit operation request;
Step 2, judges whether this user is access SVN server first, if it is performs step 3; Otherwise perform step 4;
Step 3, once detects operation to the archives in SVN server, generates a local SVN copy, performs step 4;
Step 4, carries out SVN renewal rewards theory to local work copy, extracts the fileinfo changed in renewal rewards theory to this renewal rewards theory time period last time;
Step 5, copies the file consolidation changed and transfers in a temporary folder, and carry out compressed storage;
Step 6, is exported the compressed file in temporary folder by network interface, realizes file download.
2. a kind of increment delta data based on SVN analyzes method for down loading according to claim 1, it is characterized in that, adopts jsp technology founder machine interactive interface in step 1.
3. a kind of increment delta data based on SVN analyzes method for down loading according to claim 1, it is characterized in that, being implemented as of step 4:
Analyzed by the character string produced network service in SVN renewal rewards theory, and then extract the fileinfo sending change in last renewal rewards theory to this renewal rewards theory.
4. a kind of increment delta data based on SVN analyzes method for down loading according to claim 1, it is characterized in that, adopts the raw API in java source the file consolidation changed to be copied and transfer in a temporary folder in step 5.
5. the increment delta data based on SVN analyzes download system, it is characterized in that, comprise Web server and SVN server, described Web server comprises request sending module, and described SVN server comprises request receiving module, request processing module, file shift module, file storage module and file output module;
Described operation requests sending module, it is for sending logging request and operation requests to SVN server;
Described request receiver module, operation requests for receiving logging request and operation requests, and is sent to request processing module by it;
Described request processing module, it, for determining whether that this user accesses the operation requests of SVN server first, if it is once detects operation to the archives in SVN server, generates a local SVN copy; Otherwise directly SVN renewal rewards theory is carried out to local work copy, extract the fileinfo changed in renewal rewards theory to this renewal rewards theory time period last time;
Described file shift module, it is transferred in file storage module for the file consolidation changed being copied, and carries out compressed storage;
Described file storage module, abandons the compressed file in storing compressed process;
Described file output module, it, for being exported by the compressed file in temporary folder by network interface, realizes file download.
6. a kind of increment delta data based on SVN analyzes download system according to claim 5, it is characterized in that, also comprises human-computer interaction interface, adopts jsp technology founder machine interactive interface, and operating personnel are by human-computer interaction interface access SVN server.
7. a kind of increment delta data based on SVN analyzes download system according to claim 5, it is characterized in that, request processing module is analyzed by the character string produced network service in SVN renewal rewards theory, and then extracts the fileinfo sending change in last renewal rewards theory to this renewal rewards theory.
8. a kind of increment delta data based on SVN analyzes download system according to claim 5, it is characterized in that, described file shift module adopts the raw API in java source the file consolidation changed to be copied and transfers in file storage module.
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 true CN104320469A (en) 2015-01-28
CN104320469B 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)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104933101A (en) * 2015-05-29 2015-09-23 南车株洲电力机车研究所有限公司 SVN-based method for automatic statistics of configuration audit information
CN112052226A (en) * 2020-09-29 2020-12-08 北京罗克维尔斯科技有限公司 Processing method and device for vehicle machine service data

Citations (4)

* 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
US20120005575A1 (en) * 2006-04-14 2012-01-05 Paul Colton Collaborative content generation system and method
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120005575A1 (en) * 2006-04-14 2012-01-05 Paul Colton Collaborative content generation system and method
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

Cited By (4)

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

Also Published As

Publication number Publication date
CN104320469B (en) 2018-04-17

Similar Documents

Publication Publication Date Title
US11789715B2 (en) Systems and methods for transformation of reporting schema
US10481884B2 (en) Systems and methods for dynamically replacing code objects for code pushdown
CN102117306B (en) Method and system for monitoring ETL (extract-transform-load) data processing process
US11429365B2 (en) Systems and methods for automated retrofitting of customized code objects
US20240045850A1 (en) Systems and methods for database orientation transformation
CN103473108A (en) Java code generating method
JP2015072688A (en) Background format optimization for enhanced sql-like queries in hadoop
CN102187313A (en) Caching runtime generated code
US20170139691A1 (en) Pos application development method and cloud server
WO2020015191A1 (en) Business rule releasing and managing method, electronic device and readable storage medium
CN102542382A (en) Method and device for managing business rule
CN105577475A (en) Automatic performance test system and method
CN106371874A (en) Plug-in data loading method and equipment
CN106164867A (en) The increment parallel processing of data
CN102393889A (en) Permissions configuration management system
CN104133717A (en) Service automatic generation and deployment method for data open system
US9904574B2 (en) Parallel computing without requiring antecedent code deployment
CN110941629A (en) Metadata processing method, device, equipment and computer readable storage medium
KR20130037995A (en) Method for configuring business logic of multi-tenant application
CN107943504A (en) The dynamic update method of software module in a kind of embedded system
CN104320469A (en) Incremental change data analyzing and downloading method and system based on SVN
US20130013666A1 (en) Monitoring data access requests to optimize data transfer
CN100461684C (en) Cocurrent control method for band collision detection based on mark and state vector
KR101045346B1 (en) Distributed transaction system having automatic geneation part for interface and method therefor
CN111061789A (en) Smart power grids capital construction information management system

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