CN102831204A - File packaging format with version control ability - Google Patents

File packaging format with version control ability Download PDF

Info

Publication number
CN102831204A
CN102831204A CN2012102828898A CN201210282889A CN102831204A CN 102831204 A CN102831204 A CN 102831204A CN 2012102828898 A CN2012102828898 A CN 2012102828898A CN 201210282889 A CN201210282889 A CN 201210282889A CN 102831204 A CN102831204 A CN 102831204A
Authority
CN
China
Prior art keywords
file
data
version
files
control ability
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
CN2012102828898A
Other languages
Chinese (zh)
Other versions
CN102831204B (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.)
Chengdu Xishanju Interactive Entertainment Technology Co Ltd
Zhuhai Kingsoft Digital Network Technology Co Ltd
Original Assignee
Zhuhai Kingsoft Online Game Technology Co Ltd
Chengdu Xishanju Interactive Entertainment 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 Zhuhai Kingsoft Online Game Technology Co Ltd, Chengdu Xishanju Interactive Entertainment Technology Co Ltd filed Critical Zhuhai Kingsoft Online Game Technology Co Ltd
Priority to CN201210282889.8A priority Critical patent/CN102831204B/en
Publication of CN102831204A publication Critical patent/CN102831204A/en
Application granted granted Critical
Publication of CN102831204B publication Critical patent/CN102831204B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a file packaging format with version control ability. The file packaging format consists of file data and data indexes; the file data are used as carriers of packaged files; and each data index includes deviation values of package files in different versions relative to the file data and file identification information of the packaged files in different versions. The data indexes point to files in the file data, when the files in the file data are required to be read, the data indexes are required to be provided. In addition, the files packaged in a total file package have the various versions, the versions of the total package or the packaged files can be switched over at any time, in the packaging format, updated historical information of each file is stored, and files appearing in the previous versions are not required to be updated again in a package updating process.

Description

A kind of file packing form that possesses the Version Control ability
Technical field
The present invention relates to a kind of file packing form.
Background technology
Existing software client resource adopts the packing manner storage usually, thereby obtains that transmission is convenient, resource is maintained secrecy and advantage such as fast access speed more.But the APMB package that its packing back generates only comprises the interior file of bag of single version, thereby can't between different editions, switch, and comprises that gray scale is distributed on interior Version Control demand and can't be able to satisfy.Secondly if file has identical content in the bag between the software different editions, then in renewal process, then possibly need repeated downloads and upgrade before the file that occurred in the version.Cause waste of time in download, the renewal process.
Summary of the invention
In order to solve the problems referred to above that exist in the prior art, the object of the present invention is to provide a kind of file packing form that possesses the Version Control ability.
The technical scheme that the present invention adopted is:
A kind of file packing form that possesses the Version Control ability is made up of file data and data directory, and said file data is as the carrier of file in the bag, and said data directory comprises and wraps interior off-set value, the file identification information of file in file data in each version.
As the further improvement of technique scheme, every cover file packing form comprises a cover file data, also comprises one or more sets data directories; Further, file set in the bag of the corresponding particular version of every suit data directory makes this document packing form can between a plurality of versions, control and switch, and selects the suitable version of opening.
As the further improvement of technique scheme, said file data and data directory can save as single file, or are divided into many parts of file storage.The content of file data and data directory can be stored in the local file; Or in the database; Or deriving from the automatic network transmission under certain agreement support, the storage mode of file data and data directory can be in above-mentioned several kinds one or more, and does not limit.
Further, said data directory is made up of a plurality of index entries, the corresponding relation of said index entry include file sign and off-set value.File identification is used for file of unique identification, and off-set value is the relative position of file identification respective file in file data.
Further, do not comprise data directory in the file data, the relevant any information of the unfolding mode of include file not yet.
The invention has the beneficial effects as follows: after adopting the present invention; The file that is bundled in the whole literature kit possesses a plurality of versions; And can switch the version of file in whole bag or the bag at any time, in packet format, the historical information that each file upgrades all is able to preserve; And in the update package process, the file that before occurred in the version need not to repeat to upgrade.
Description of drawings
Below in conjunction with accompanying drawing and embodiment the present invention is done further detailed explanation.
Fig. 1 schematic flow sheet of packing.
Embodiment
The present invention proposes a kind of file packing form that possesses the Version Control ability with reference to Fig. 1, this document packing form is made up of file data and data directory, and every cover file packing form comprises a cover file data, also comprises one or more sets data directories.As shown in Figure 1, described file data is as the carrier of file in the bag, for depositing of file in wrapping provides the place, and the file that the inside can stored number not be limit.Said data directory comprises interior off-set value, the file identification information of file in file data of bag in each version; As shown in Figure 1; Data directory is made up of a plurality of index entries; The sign and the off-set value that comprise respective file in each index entry, multinomial index entry can be formed a sets of data index, and the index entry in every sets of data index is corresponding one by one with file in the file data; Every suit data directory is represented a different version in the packet format, reads the file content of different editions, need use the data directory of different editions; Packet format is realized reading file in the bag of different editions through the data directory of different editions.Further, client only needs a sets of data index to get final product the data in the reading of data library file, need not to store the corresponding data directory of all versions; Client only needs file in the bag of the index of respective version in can read data files, and the data directory of other versions that file data is corresponding can be in client stores, thereby realizes maintaining secrecy of other version informations of file in client.
The storage mode of described file data and data directory does not limit, and can save as single file, or is divided into many parts of file storage.Its content can be kept in the local file, or in the database, or derive from the automatic network transmission under certain agreement support.The storage of the data directory of file data and different editions can be accomplished to separate fully; Do not comprise data directory in the file data; The also relevant any information of the unfolding mode of include file not, client can't directly read database under the prerequisite of index information not knowing.
File packing form of the present invention comprises packing, renewal, three kinds of operations of Version Control operation in the practical application operating process.Packing is responsible for the filename of needs is written in the bag according to packet format; Renewal process will increase file appending newly in bag; Version Control can be switched the version number of packet format, reads the file of any version before upgrading.
Described packing operation is accomplished through strapping tool, and strapping tool is accepted following input: 1. the file directory of required packing or listed files; 2. the version number of the back literature kit of packing; 3. the way of output and outgoing position; Strapping tool reads corresponding file from disk and generates corresponding literature kit according to input information.The literature kit of its generation is by file data and two ingredients of data directory; File data provides the place of data storing for file in the bag; The data that comprise file in all bags in it; Index then is the inlet of file in the visit current version bag, can find the position of file in file data in the bag by it.
Described renewal process is accomplished through refresh routine, and refresh routine is from the network download update package, and the content in the update package is appended in the literature kit that is updated.Update package manufacturing process is the same with packing process, and update package is identical with the target packet format on form.The identical file of content again that once occurred in the version before can identifying before upgrading can be specified the file that this part is not repeated to write file data, and only write the index of these files when making update package.With in the file file appending packet format in the bag that increases newly or revise, its mode of appending is: the update package file data directly appends in the client file data back-end packet format through renewal process; The data directory of update package merges with the data directory that is updated bag, and it is write in a new data directory, and this data directory is for upgrading the data directory of back literature kit version.If in later release, increase the identical file of content in the database, then can repeat to add the information in the database Already in, and only need new index information to point to legacy data regional.
The version of whole packet format is switched in the support of described Version Control process, and method is to replace the corresponding data directory of packet format to indicated release, so can read out the All Files in the indicated release.The version of single file in the bag is switched in the support of Version Control process, and method provides the off-set value in the corresponding version number of the file index entry in this bag, so can read out file in the specified packet in the indicated release.
After adopting the present invention; The file that is bundled in the whole literature kit possesses a plurality of versions; And can switch the version of file in whole bag or the bag at any time, in the time of need the version in the packet format being switched to old version, only need provide the bag version corresponding data directory; When reading in the single bag of particular version file, the index information of file in this bag only need be provided; In packet format, the historical information that each file upgrades all is able to preserve simultaneously, and in the update package process, the file that before occurred in the version need not to repeat to upgrade.After software client adopts the present invention, make that the gray scale issuing function of issue is achieved on a small scale, certain customers can upgrade to grayscale version in advance, treat all clients version so far of can upgrading after it is stablized.Simultaneously, after software product was confronted with a grave question, the version before packet format can switch at any time switched the expense that version need not the Network Transmission differential file, thereby reduced the loss that causes because of software defect.
The above is merely preferential embodiment of the present invention, as long as realize that with basic identical means the technical scheme of the object of the invention all belongs within protection scope of the present invention.

Claims (6)

1. file packing form that possesses the Version Control ability; It is characterized in that: form by file data and data directory; Said file data is as the carrier of file in the bag, and said data directory comprises interior off-set value, the file identification information of file in file data of bag in each version.
2. a kind of file packing form that possesses the Version Control ability according to claim 1, it is characterized in that: every cover file packing form comprises a cover file data, also comprises one or more sets data directories.
3. a kind of file packing form that possesses the Version Control ability according to claim 1 and 2; It is characterized in that: said file data and data directory can save as single file; Or be divided into many parts of file storage; The content of file data and data directory can be stored in the local file, or in the database, or derive from the automatic network transmission under certain agreement support.
4. a kind of file packing form that possesses the Version Control ability according to claim 1 and 2, it is characterized in that: said data directory is made up of a plurality of index entries, the corresponding relation of said index entry include file sign and off-set value.
5. a kind of file packing form that possesses the Version Control ability according to claim 2 is characterized in that: file set in the bag of the corresponding particular version of said every suit data directory.
6. a kind of file packing form that possesses the Version Control ability according to claim 1 is characterized in that: do not comprise data directory in the said file data, also the relevant any information of the unfolding mode of include file not.
CN201210282889.8A 2012-08-09 2012-08-09 A kind of file packing form possessing Version Control ability Active CN102831204B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210282889.8A CN102831204B (en) 2012-08-09 2012-08-09 A kind of file packing form possessing Version Control ability

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210282889.8A CN102831204B (en) 2012-08-09 2012-08-09 A kind of file packing form possessing Version Control ability

Publications (2)

Publication Number Publication Date
CN102831204A true CN102831204A (en) 2012-12-19
CN102831204B CN102831204B (en) 2015-09-30

Family

ID=47334340

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210282889.8A Active CN102831204B (en) 2012-08-09 2012-08-09 A kind of file packing form possessing Version Control ability

Country Status (1)

Country Link
CN (1) CN102831204B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105159732A (en) * 2015-10-13 2015-12-16 北京奇虎科技有限公司 Method for installing or updating application program in mobile terminal and mobile terminal
CN105224323A (en) * 2015-09-29 2016-01-06 北京畅游天下网络技术有限公司 A kind of resource packaging method of tree-dimensional animation engine and device
CN105447040A (en) * 2014-08-29 2016-03-30 阿里巴巴集团控股有限公司 Binary file management and update method and device, and binary file management system
CN105446759A (en) * 2014-08-28 2016-03-30 阿里巴巴集团控股有限公司 Rpm package updating method and equipment
CN108009186A (en) * 2017-02-15 2018-05-08 北京车和家信息技术有限责任公司 Service release switching method, service release switching device and server

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1777867A (en) * 2003-12-15 2006-05-24 微软公司 System and method for updating files utilizing delta compression patching.
CN101187926A (en) * 2006-11-16 2008-05-28 康佳集团股份有限公司 Multi-kind resource management method
CN101770515A (en) * 2010-01-18 2010-07-07 杭州顺网科技股份有限公司 Data block comparison based data updating method
CN102073633A (en) * 2009-11-23 2011-05-25 腾讯科技(深圳)有限公司 Method and device for storing and accessing resource file

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1777867A (en) * 2003-12-15 2006-05-24 微软公司 System and method for updating files utilizing delta compression patching.
CN101187926A (en) * 2006-11-16 2008-05-28 康佳集团股份有限公司 Multi-kind resource management method
CN102073633A (en) * 2009-11-23 2011-05-25 腾讯科技(深圳)有限公司 Method and device for storing and accessing resource file
CN101770515A (en) * 2010-01-18 2010-07-07 杭州顺网科技股份有限公司 Data block comparison based data updating method

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105446759A (en) * 2014-08-28 2016-03-30 阿里巴巴集团控股有限公司 Rpm package updating method and equipment
CN105447040A (en) * 2014-08-29 2016-03-30 阿里巴巴集团控股有限公司 Binary file management and update method and device, and binary file management system
CN105447040B (en) * 2014-08-29 2020-02-07 阿里巴巴集团控股有限公司 Binary file management and updating method, device and system
CN105224323A (en) * 2015-09-29 2016-01-06 北京畅游天下网络技术有限公司 A kind of resource packaging method of tree-dimensional animation engine and device
CN105159732A (en) * 2015-10-13 2015-12-16 北京奇虎科技有限公司 Method for installing or updating application program in mobile terminal and mobile terminal
CN105159732B (en) * 2015-10-13 2018-08-03 北京奇虎科技有限公司 In mobile terminal installation or the method and mobile terminal of more new application
CN108009186A (en) * 2017-02-15 2018-05-08 北京车和家信息技术有限责任公司 Service release switching method, service release switching device and server

Also Published As

Publication number Publication date
CN102831204B (en) 2015-09-30

Similar Documents

Publication Publication Date Title
CN102831204A (en) File packaging format with version control ability
CN102541927B (en) Method and device for realizing data cache
CN105868286B (en) The parallel method of adding and system merged based on distributed file system small documents
CN104462141B (en) Method, system and the storage engines device of a kind of data storage and inquiry
CN105550293A (en) Background refreshing method based on Spark-SQL big data processing platform
CN104820602A (en) Method, device and system for publishing software package
CN102184229B (en) Memory data storage method of huge RFID (Radio Frequency Identification Device) label information
CN102867071A (en) Management method for massive network management historical data
CN105243067A (en) Method and apparatus for realizing real-time increment synchronization of data
CN102937903B (en) A kind of packaging file update method of feature based coupling
CN101582092A (en) Method and device for realizing the store of date in memory
CN102096674A (en) Method, equipment and system for releasing and downloading electronic book
US11068450B2 (en) Infinite versioning by automatic coalescing
CN101692252A (en) Method for distributing and reclaiming idle blocks of file
CN109634682A (en) The configuration file update method and device of application program
CN105389367A (en) Power network graphic multi-tense and multi-level distributed storage method based on Mongo database
CN107193943A (en) A kind of method and apparatus of RDBMS online datas migration
CN101727503A (en) Method for establishing disk file system
CN110019111A (en) Data processing method, device, storage medium and processor
CN102521387A (en) Plug-in-based data migration method
CN104182295B (en) A kind of data back up method and device
CN102651674B (en) Data transmission method of reflective memory network
CN102880677B (en) A kind of packing of the file based on Hash and read method
CN110507986A (en) The treating method and apparatus of animation information
CN105068826B (en) The method and device that a kind of pair of navigation data is updated

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address

Address after: 519000 Room 102, 202, 302 and 402, No. 325, Qiandao Ring Road, Tangjiawan Town, high tech Zone, Zhuhai City, Guangdong Province, Room 102 and 202, No. 327 and Room 302, No. 329

Patentee after: Zhuhai Jinshan Digital Network Technology Co.,Ltd.

Patentee after: CHENGDU XISHANJU INTERACTIVE ENTERTAINMENT TECHNOLOGY Co.,Ltd.

Address before: 519000 Jinshan software building, 8 Lanshan lane, Jida Jingshan Hill Road, Zhuhai, Guangdong

Patentee before: ZHUHAI KINGSOFT ONLINE GAME TECHNOLOGY Co.,Ltd.

Patentee before: CHENGDU XISHANJU INTERACTIVE ENTERTAINMENT TECHNOLOGY Co.,Ltd.

CP03 Change of name, title or address