CN108268275A - Software version control method and software version control device - Google Patents

Software version control method and software version control device Download PDF

Info

Publication number
CN108268275A
CN108268275A CN201710437003.5A CN201710437003A CN108268275A CN 108268275 A CN108268275 A CN 108268275A CN 201710437003 A CN201710437003 A CN 201710437003A CN 108268275 A CN108268275 A CN 108268275A
Authority
CN
China
Prior art keywords
version
software code
software
acyclic graph
directed acyclic
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
CN201710437003.5A
Other languages
Chinese (zh)
Other versions
CN108268275B (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.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management 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 Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN201710437003.5A priority Critical patent/CN108268275B/en
Publication of CN108268275A publication Critical patent/CN108268275A/en
Application granted granted Critical
Publication of CN108268275B publication Critical patent/CN108268275B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Abstract

The present invention is suitable for field of computer technology, provides a kind of software version control method and equipment, this method includes:In each element of directed acyclic graph, the version information of each version software code is shown respectively;Instruction is chosen according to the element that user sends out in directed acyclic graph, determines each element that user chooses;Obtain the corresponding version information of each element institute that user chooses, and will matched software code caches respectively with each version information;By preset relatively tool, processing is compared, and comparison result is exported to each version software code of caching.The present invention improves the selection efficiency of software version, comparison result come each version software code in automatic relatively caching and is exported by preset relatively tool, the system of ensure that can show clearly version change view, the difference that user is intuitively checked out between any two version or multiversion software code which thereby enhances the development efficiency of developer.

Description

Software version control method and software version control device
Technical field
The invention belongs to field of computer technology more particularly to a kind of software version control methods and software version control to set It is standby.
Background technology
Version Control is a kind of software engineering technique, and nationality is with during exploitation, it is ensured that is edited by different people same One archives are all updated.
Version Control is numbered with serial number by the change of each module of document control logging program, and for change every time.It is this Method is the standing procedure that existing software code is safeguarded.A kind of simple Version Control form, for example, being assigned to the first of software code One version levels " A " of version.To regard after changing for the first time, version levels are changed to " B ", and so on etc..In software code Version change after, for the legacy version software code that delete or cover, system get up unified backup.
However, in existing software version control method, although system has the software code of backup legacy version, these are old The software code of version only exists as a kind of historical record, and can not show clearly version change view, and user is difficult to directly Check the difference between each version software code with seeing.
Invention content
In view of this, an embodiment of the present invention provides a kind of software version control method and software version control device, with Solution can not show that clearly version change view and user are difficult to intuitively check each version software code in the prior art Between difference the problem of.
The first aspect of the embodiment of the present invention provides a kind of software version control method, including:
In each element of directed acyclic graph, the version information of each version software code is shown respectively;
Instruction is chosen according to the element that user sends out in the directed acyclic graph, determines each element that user chooses;
The corresponding version information of each element institute that user chooses is obtained, and will be distinguished with each version information matched soft Part code is cached;
By preset relatively tool, be compared processing to each version software code of caching, and by comparison result into Row output.
The second aspect of the embodiment of the present invention provides a kind of software version control device, including:
Display unit, in each element of directed acyclic graph, showing that the version of each version software code is believed respectively Breath;
Determination unit, the element for being sent out in the directed acyclic graph according to user choose instruction, determine that user selects The each element taken;
Acquiring unit for obtaining the corresponding version information of each element of user's selection institute, and will be believed with each version Matched software code is cached breath respectively;
For passing through preset relatively tool, processing is compared to each version software code of caching for comparing unit, and Comparison result is exported.
The third aspect of the embodiment of the present invention provides a kind of software version control device, the software version control device Including memory, processor and the computer program that can be run on the memory and on the processor is stored in, it is described Processor realizes following steps when performing the computer program:
In each element of directed acyclic graph, the version information of each version software code is shown respectively;
Instruction is chosen according to the element that user sends out in the directed acyclic graph, determines each element that user chooses;
The corresponding version information of each element institute that user chooses is obtained, and will be distinguished with each version information matched soft Part code is cached;
By preset relatively tool, be compared processing to each version software code of caching, and by comparison result into Row output.
The fourth aspect of the embodiment of the present invention provides a kind of computer readable storage medium, the computer-readable storage Media storage has computer program, and the computer program realizes following steps when being executed by processor:
In each element of directed acyclic graph, the version information of each version software code is shown respectively;
Instruction is chosen according to the element that user sends out in the directed acyclic graph, determines each element that user chooses;
The corresponding version information of each element institute that user chooses is obtained, and will be distinguished with each version information matched soft Part code is cached;
By preset relatively tool, be compared processing to each version software code of caching, and by comparison result into Row output.
In the embodiment of the present invention, by the version that each version software code is usually shown with each member in directed acyclic graph Information so that user can the number based on element intuitively determine the sum of software version;User only need to be in oriented nothing It is clicked in ring figure and chooses arbitrary element, just can downloaded and cache the software code corresponding to element, thus based on intuitive display The each element of version information improves selection efficiency of the user for software version;Compared automatically by preset relatively tool Compared with each version software code in caching and comparison result is exported, realizes the clear displaying to version change view so that is used Family can intuitively check out the difference between any two version or multiversion software code, thus also improve developer Development efficiency.
Description of the drawings
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description be only the present invention some Embodiment, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these Attached drawing obtains other attached drawings.
Fig. 1 is the realization flow chart of software version control method provided in an embodiment of the present invention;
Fig. 2 is the realization flow chart for the software version control method that another embodiment of the present invention provides;
Fig. 3 is the specific implementation flow chart of software version control method S101 provided in an embodiment of the present invention;
Fig. 4 is the specific implementation flow chart of software version control method S104 provided in an embodiment of the present invention;
Fig. 5 is the realization flow chart for the software version control method that further embodiment of this invention provides;
Fig. 6 is the structure diagram of software version control device provided in an embodiment of the present invention;
Fig. 7 is the structure diagram for the software version control device that another embodiment of the present invention provides.
Fig. 8 is the structure diagram for the software version control device that further embodiment of this invention provides.
Fig. 9 is the structure diagram of software version control device provided in an embodiment of the present invention.
Specific embodiment
In being described below, in order to illustrate rather than in order to limit, it is proposed that such as tool of particular system structure, technology etc Body details, to understand thoroughly the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specifically The present invention can also be realized in the other embodiments of details.In other situations, it omits to well-known system, device, electricity Road and the detailed description of method, in case unnecessary details interferes description of the invention.
In order to illustrate technical solutions according to the invention, illustrated below by specific embodiment.
Fig. 1 shows the realization flow of software version control method provided in an embodiment of the present invention, and details are as follows:
S101:In each element of directed acyclic graph, the version information of each version software code is shown respectively.
In graph theory, a digraph D refers to an orderly tripleWhereinFor Correlation function, it makes each directed edge in A (D) correspond to a point in V (D).If a digraph can not be from certain A node sets out returns to the point by several sides, then this figure is a directed acyclic graph (Directed acyclic Graph, DAG view).During the present invention is implemented, each node in directed acyclic graph is expressed as a member in DAG views Element.
In the embodiment of the present invention, the software code of each version is stored in a code file.Each code file The software code stored has a corresponding version information.For arbitrary two parts of software generations with different editions information Code, can be the software code for belonging to the software code of same exploration project or belonging to different exploration projects.At certain One moment, if detecting currently new code file occur, it is determined that version change occur for software code, at this point, raw Into with the matched version number of the code file.Before that moment, the newest code file of modification time is this software Code file before version change.The filename of code file after before changing can be the same or different.Current time institute The version number of generation for example can be to add one on the basis of the version number of code file before changing.Also, in build version Number while, obtain code file remark information input by user.Wherein, above-mentioned version number and code file remark information are equal Belong to version information.Code file and its corresponding version information are stored together to preset specified path.
Include multiple elements in DAG views, each element corresponds to the software code of a version respectively.Due to DAG The acyclicity of view, thus topological sorting can be realized between the element being connected by directed edge.It is every in DAG views are shown During one element, according to preset mapping table, each element can be found out respectively from mapping table, so that it is determined that The software code bound with the element, and after the version information for reading software code, version information is also illustrated in DAG and is regarded In the element of figure.When the version information of software code only includes version number, the version number is shown in the element of DAG views; When the version information of software code includes code file remark information, in the element of DAG views, code text is implicitly shown Part remark information, that is, only when detecting that selection control is instructed in the element, corresponding code file is just shown in the element Remark information.
In the embodiment of the present invention, above-mentioned selection control can for example be displayed at the mouse pointer in DAG views.
As an alternative embodiment of the invention, as shown in Fig. 2, after above-mentioned S101, the above method further includes:
S105:When detecting that software code changes, update is synchronized to the directed acyclic graph.
After DAG view generations, if user has downloaded the software code of a certain version, and held after changing the software code It has gone upload operation, then can generate a new code file, it is obtained after user's modification to be stored in the code file A software code.When detecting that new code file occurs, it may be determined that go out software code and new version occur, that is, occur Version change.While the software code for newest acquisition generates a corresponding version number, DAG views are synchronized Update, to increase a new element in DAG views, and the element matches with the software code versions being newly generated, by This ensures that DAG views can be corresponding in real time with each version software code of actual storage.
As one embodiment of the present of invention, in order to further improve the software version display effect of DAG views, such as Fig. 3 Shown, above-mentioned S101 is specifically included:
S301:Obtain the generated time of each version software code.
When user changes each time and software code is stored, that is, generate the software code of a new version.It will Software code is determined as the generated time of the version software code at the time of storage, the generated time of the version software code is remembered It records in the file attribute of the software code, thus before DAG views are generated, it is right from stored each version software code institute In the code file answered, its file attribute corresponding generated time is read respectively.
S302:According to the precedence of the generated time of each version software code, determine that each version is soft respectively The corresponding chroma-luminance of part code.
If being stored with the software code of N (N is positive integer) a version in terminal device, each software version is obtained Generated time, at this point, the priority appearance sequence according to N number of generated time, is ranked up N number of software version, so that during generation Between before software version comes generated time slower software version earlier, and export a software version sequence.The software In version sequence, the sum of software version is N.
It puts in order according to each software version in software version sequence, generates N number of different chroma-luminance.Wherein, often One chroma-luminance is corresponding with a software version.Also, the increase to put in order with software version, each software version Chroma-luminance corresponding to this also correspondingly increases.N number of chroma-luminance of generation is arranged according to order from small to large Afterwards, chroma-luminance sequence is obtained.By an identical software version of serial number in software version sequence and chroma-luminance sequence with And a chroma-luminance is determined as the corresponding chroma-luminance of the software version.
S303:It is each in the chroma-luminance of each version software code rendering directed acyclic graph to correspond respectively to A element.
In above-mentioned S101, a software version is usually represented with each member in DAG views, and in each element only The version information of the software version is shown, in the case where DAG views include multiple directed walks, user needs to check and right It just can determine that the newness degree of different software versions after the version information shown than each element.
It is also sharp while a software version is usually represented with each member in DAG views in the embodiment of the present invention The element is rendered with the corresponding chroma-luminance of the software version.Wherein, in entire DAG views each element color saturation with And hue value is identical default value, therefore, by rendering different elements with different chroma-luminance, in DAG views Each element can show identical colour system but the different color of brightness respectively.In the case where chroma-luminance is bigger, in DAG views Element will show more shallow color.Simultaneously as the generated time of software version is more late, the color corresponding to software version Brightness is bigger, therefore, even if comprising multiple directed walks in DAG views, but only need to the color based on element in DAG views it is bright Degree, user just can intuitively determine the newness degree of the corresponding software version of each element according to the chroma-luminance of element.
S102:Instruction is chosen according to the element that user sends out in the directed acyclic graph, determines that user chooses each Element.
User can be moved to any by the selection control shown in mobile or control DAG views in selection control During element, send out element and choose instruction, to determine to choose the software version corresponding to the element.Control of the user to selection control Mode for example can be to move the selection control in DAG views by the mobile mouse connected in advance.When DAG view exhibitions When being shown in touch screen, user can also directly send out touch and choose directly in the touch screen to the element chosen needed for oneself to be referred to It enables.When detecting user when the element sent out on DAG views chooses instruction, based on the view location residing for selection control, energy Enough determine that the element chooses the corresponding element of instruction, and the element is marked in DAG views, so that user determines The element has been completed to choose.Only when the selection instruction for detecting more than two different elements, S103 is just performed.Therefore, one After a element is chosen, user can be selected in DAG views again by repeating above-mentioned movement or the operation of control selections control Another element is taken, and the element and selected element primary before user are marked simultaneously.
When detecting that user has issued the selection instruction of two minor elements, start internal timer, judge in preset duration Element whether is received again chooses instruction.If preset duration reaches, the element selection that user sends out is not received again Instruction, it is determined that after each element chooses the corresponding each element of instruction before the moment, perform S103;If preset duration reaches Before, the element selection instruction that user sends out is received again, then timer is performed after resetting operation, return and perform above-mentioned open Internal timer is moved, judges that whether receiving element in preset duration again chooses instruction.
S103:The corresponding version information of each element institute that user chooses is obtained, and will be with each version information difference The software code matched is cached.
After determining each element that user chooses, version information shown on each element is read, so as in software generation The corresponding software code of each version information is obtained in the actual storage path of code.If there are two the elements that user chooses, distinguish After the software code for reading two versions, as unit of the software code of a version, it is cached respectively.
S104:By preset relatively tool, processing is compared, and will compare knot to each version software code of caching Fruit is exported.
In the embodiment of the present invention, compare tool and include comparison tool integrated in advance and by way of self-defined installation The third party being installed in operating system compares tool.Wherein, third party compares tool and includes but not limited to Beyond Compare, DiffMerge, WinMerge and UltraCompare Professional etc..
As one embodiment of the present of invention, Fig. 4 shows software version control method provided in an embodiment of the present invention The specific implementation flow of S104.As shown in Figure 4, above-mentioned S104 specifically includes S401 and S402, and the realization of S401 and S402 is former It manages specific as follows:
S401:When detect compare tool there are third party in operating system when, by using the comparison tool, to caching Each version software code be compared processing, and comparison result is exported.
There is the URLScheme of oneself, and third party's ratio since third party compares tool and defined inside InfoPlaylist Compared with tool in installation process, its URLScheme can be registered in operating system, therefore, in operating system is judged whether When comparing tool there are third party, it will judge whether the URL Schemes specified are registered by CanOpenURL.It is if specified URL Schemes it is registered in operating system, it is determined that there are the corresponding third parties of URL Schemes in operating system Compare tool, at this point, by way of OpenURL, start the third party and compare tool.
In the embodiment of the present invention, the predeterminable multiple third parties of administrator compare the URL Schemes of tool, and are each pre- If URL Schemes different priority is set, so as to be based on preset multiple URL Schemes, one by one with operation Registered URL Schemes are compared in system, to determine that the third party in the presence of operating system compares tool.Especially Ground, the priority of URL Schemes can perform self-defined adjusting according to the demands of individuals of user.Have when registered in operating system When multiple third parties compare the URL Scheme corresponding to tool, a URL Scheme of wherein priority maximum will be chosen, Compare tool so as to start the third party corresponding to the URL Scheme.
After third party compares instrument start-up, the software code of multiple versions in caching is imported into third party and compares work Tool, to be compared processing.It finally, will be between the software code of different editions in third party compares the displayed page of tool Specific difference shown, and the software code of each version is synchronized in the form of subfield is shown by highlighted mark Displaying.
S402:When detect compare tool there is no third party in operating system when, by using comparison integrated in advance Tool is compared processing, and comparison result is exported to each version software code of caching.
When detect preset multiple URL Schemes it is unregistered in operating system when, determine not deposit in operating system Compare tool in third party.Internal comparison tool is integrated at this point, starting, each version software code read in caching carries out Compare.The comparing result obtained more afterwards is showed in a displayed page outside DAG views.In the software code versions of caching During more than two, after each software version is ranked up, performs and repeatedly relatively operate.It is only right during comparing each time The software code of two versions of adjacent sequence is compared, and by the difference between the software code of two adjacent versions Part is marked with a kind of color.Finally, the version change view of each version software code of caching is carried out at the same time displaying, So that user is visually known where the difference between each two adjacent software code versions of its selection.
In the embodiment of the present invention, tool is compared come to each version by the third party installed in neatly call operation system This software code is compared so that the display form of the code comparison result of output can meet the personal habits of user with And demands of individuals.It, also can be using comparison tool integrated in advance come real when operating system does not install third party and compares tool Modern code comparing function eliminates user for comparing the installation operation of tool, thus improves the relative efficiency of software code.
In the embodiment of the present invention, by the version that each version software code is usually shown with each member in directed acyclic graph Information so that user can the number based on element intuitively determine the sum of software version;User only need to be in oriented nothing It is clicked in ring figure and chooses arbitrary element, just can downloaded and cache the software code corresponding to element, thus based on intuitive display The each element of version information improves selection efficiency of the user for software version;Compared automatically by preset relatively tool Compared with each version software code in caching and comparison result is exported, realizes the clear displaying to version change view so that is used Family can intuitively check out the difference between any two version or multiversion software code, thus also improve developer Development efficiency.
As another embodiment of the present invention, as shown in figure 5, after above-mentioned S101, before above-mentioned S102, the side Method further includes S501;After above-mentioned S102, the method further includes S502 and S503, and each step realization principle is specific as follows:
S501:Enable each element in the directed acyclic graph download of its corresponding software version is respectively associated Location.
When usually showing the version information of its corresponding software code with each member in DAG views, the version of software code This information will be identified among element, thus user can the practical bandwagon effect based on element, intuitively to check each element A represented software version.
In the embodiment of the present invention, the software code actual storage of each version is in the specified path of terminal device.For The storage location of the software code of each version, generates the corresponding download address of each version software code.Download address is demand User carries out the direct channel of software code download, and the acquisition operation of software code can be triggered immediately by clicking download link.
In DAG views, the download address of a corresponding software version of each element is associated, that is, with super After each element is showed in DAG views by the form of link, it is corresponding that the chained address corresponding to element is set as the element The download address of software code.
S502:Based on the download address that each element that the user chooses is respectively associated, software code download is sent out Prompt message.
In above-mentioned S102, the element sent out in DAG views by obtaining user chooses instruction, determines selected by user The each element taken, and by S601 it is found that each element is showed in the form of hyperlink in DAG views, therefore, in user After choosing each element, the chained address corresponding to the hyperlink will be opened, that is, opens software code corresponding to the element Download address.In the window of current time pop-up, by the version information for showing software version corresponding to the element, download ground Location and prompt message, whether prompt message is needs the software code of the version being downloaded to local.
S503:When receiving the download confirmation message of the software code based on the download address, the download ground is returned to Software code corresponding to location.
After user has checked above-mentioned prompt message and clicks download ACK button, that is, receive software code and download confirmation Information.Since user is that the software code sent out in the window for having a certain download address in displaying downloads confirmation message, The software code of the corresponding version of the download address is only obtained, hereafter stores the software code of the version to user's meaning In fixed local folders.
In the embodiment of the present invention, by by the elements correlation in the download address of software version and DAG views so that user While element is selected, the software code corresponding to the element can be downloaded in the local folders specified simultaneously, is used Family need not also arrive the download address of the software version corresponding to other view lookup element again.Meanwhile based in DAG views not With the element of chroma-luminance, the software version that user can rapidly find out needed for oneself is downloaded, thus also into Improve to one step the download efficiency of software version.
It should be understood that the size of the serial number of each step is not meant to the priority of execution sequence, each process in above-described embodiment Execution sequence should determine that the implementation process without coping with the embodiment of the present invention forms any limit with its function and internal logic It is fixed.
Corresponding to the software version control method described in foregoing embodiments, Fig. 6 shows provided in an embodiment of the present invention soft The structure diagram of part Version Control device for convenience of description, illustrates only and the relevant part of the embodiment of the present invention.
With reference to Fig. 6, which includes:
Display unit 61, in each element of directed acyclic graph, showing the version of each version software code respectively Information.
Determination unit 62, the element for being sent out in the directed acyclic graph according to user choose instruction, determine user The each element chosen.
Acquiring unit 63, for obtaining the corresponding version information of each element of user's selection institute, and will be with each version Matched software code is cached information respectively.
For passing through preset relatively tool, processing is compared to each version software code of caching for comparing unit 64, And comparison result is exported.
Optionally, as shown in fig. 7, the software version control device further includes:
Updating unit 65, for when detecting that software code changes, being synchronized more to the directed acyclic graph Newly.
Optionally, the display unit 61 includes:
Subelement is obtained, for obtaining the generated time of each version software code.
Determination subelement for the precedence of the generated time according to each version software code, determines institute respectively State the corresponding chroma-luminance of each version software code.
Subelement is rendered, for rendering the oriented nothing to correspond respectively to the chroma-luminance of each version software code Each element in ring figure.
Optionally, as shown in figure 8, the software version control device further includes:
Associative cell 66, for enabling each element in the directed acyclic graph that its corresponding software version is respectively associated This download address.
Instruction is chosen in the element sent out in the directed acyclic graph according to user, determines that user chooses each After element, further include.
Prompt unit 67, the download address that each element for being chosen based on the user is respectively associated, sends out soft Part code prompting download information.
Download unit 68, for when receiving the download confirmation message of the software code based on the download address, returning Software code corresponding to the download address.
Optionally, the comparing unit 64 includes:
First comparing subunit, for when detect compare tool there are third party in operating system when, by using this Compare tool, processing is compared, and comparison result is exported to each version software code of caching.
Second comparing subunit, for when detect compare tool there is no third party in operating system when, by using Integrated comparison tool in advance, processing is compared, and comparison result is exported to each version software code of caching.
Fig. 8 is the structure diagram of software version control device provided in an embodiment of the present invention.As shown in figure 9, the implementation The software version control device 9 of example includes:It processor 90, memory 91 and is stored in the memory 91 and can be described The computer program 92 run on processor 90, such as software version control process.The processor 90 performs the computer The step in above-mentioned each software version control method embodiment is realized during program 92, such as step S101 shown in Fig. 2 is extremely S104.Alternatively, the processor 90 realizes the work(of each unit in above-mentioned each device embodiment when performing the computer program 92 Can, such as the function of unit 61 to 64 shown in Fig. 6.
Illustratively, the computer program 92 can be divided into one or more modules, one or more of Module is stored in the memory 91, and is performed by the processor 90, to complete the present invention.One or more of moulds Block can be the series of computation machine program instruction section that can complete specific function, which is used to describe the computer journey Implementation procedure of the sequence 92 in the software version control device 9.For example, the computer program 92 can be divided into displaying Module, determining module, acquisition module and comparison module, each module concrete function are as follows:
Display module is used in each element of directed acyclic graph, shows the version letter of each version software code respectively Breath.
Determining module is used to choose instruction according to the element that user sends out in the directed acyclic graph, determines that user chooses Each element.
Acquisition module is used to obtain the corresponding version information of each element institute of user's selection, and will be with each version information Matched software code is cached respectively.
Comparison module is used to, by preset relatively tool, processing is compared to each version software code of caching, and Comparison result is exported.
The software version control device 9 can be desktop PC, notebook, palm PC and cloud server etc. Computing device.The software version control device 9 may include, but be not limited only to, processor 90, memory 91.Art technology Personnel are appreciated that Fig. 9 is only the example of software version control device 9, do not form the limit to software version control device 9 It is fixed, it can include either combining certain components or different components, such as described soft than illustrating more or fewer components Part Version Control equipment 9 can also include display, input-output equipment, network access equipment, bus etc..
Alleged processor 90 can be central processing unit (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor can also be any conventional processor Deng.
The memory 91 can be the internal storage unit of the software version control device 9, such as software version control The hard disk or memory of control equipment 9.The memory 91 can also be the External memory equipment of the software version control device 9, Such as the plug-in type hard disk being equipped on the software version control device 9, intelligent memory card (Smart Media Card, SMC), Secure digital (Secure Digital, SD) blocks, flash card (Flash Card) etc..Further, the memory 91 may be used also With the internal storage unit both including the software version control device 9 or including External memory equipment.The memory 91 is used In other programs and data needed for the storage computer program and the software version control device.The memory 91 It can be also used for temporarily storing the data that has exported or will export.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each work( Can unit, module division progress for example, in practical application, can be as needed and by above-mentioned function distribution by different Functional unit, module are completed, i.e., the internal structure of described device are divided into different functional units or module, more than completion The all or part of function of description.Each functional unit, module in embodiment can be integrated in a processing unit, also may be used To be that each unit is individually physically present, can also two or more units integrate in a unit, it is above-mentioned integrated The form that hardware had both may be used in unit is realized, can also be realized in the form of SFU software functional unit.In addition, each function list Member, the specific name of module are not limited to the protection domain of the application also only to facilitate mutually distinguish.Above system The specific work process of middle unit, module can refer to the corresponding process in preceding method embodiment, and details are not described herein.
Those of ordinary skill in the art may realize that each exemplary lists described with reference to the embodiments described herein Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is performed with hardware or software mode, specific application and design constraint depending on technical solution.Professional technician Described function can be realized using distinct methods to each specific application, but this realization is it is not considered that exceed The scope of the present invention.
In embodiment provided by the present invention, it should be understood that disclosed device and method can pass through others Mode is realized.For example, system embodiment described above is only schematical, for example, the division of the module or unit, Only a kind of division of logic function, can there is an other dividing mode in actual implementation, such as multiple units or component can be with With reference to or be desirably integrated into another system or some features can be ignored or does not perform.Another point, it is shown or discussed Mutual coupling or direct-coupling or communication connection can be by some interfaces, the INDIRECT COUPLING of device or unit or Communication connection can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separate, be shown as unit The component shown may or may not be physical unit, you can be located at a place or can also be distributed to multiple In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also That each unit is individually physically present, can also two or more units integrate in a unit.Above-mentioned integrated list The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and is independent product sale or uses When, it can be stored in a computer read/write memory medium.Based on such understanding, the technical solution of the embodiment of the present invention The part substantially to contribute in other words to the prior art or all or part of the technical solution can be with software products Form embody, which is stored in a storage medium, including some instructions use so that one Computer equipment (can be personal computer, server or the network equipment etc.) or processor (processor) perform this hair The all or part of step of bright each embodiment the method for embodiment.And aforementioned storage medium includes:USB flash disk, mobile hard disk, Read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic The various media that can store program code such as dish or CD.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although with reference to aforementioned reality Example is applied the present invention is described in detail, it will be understood by those of ordinary skill in the art that:It still can be to aforementioned each Technical solution recorded in embodiment modifies or carries out equivalent replacement to which part technical characteristic;And these are changed Or replace, the spirit and scope for various embodiments of the present invention technical solution that it does not separate the essence of the corresponding technical solution should all It is included within protection scope of the present invention.

Claims (10)

1. a kind of software version control method, which is characterized in that including:
In each element of directed acyclic graph, the version information of each version software code is shown respectively;
Instruction is chosen according to the element that user sends out in the directed acyclic graph, determines each element that user chooses;
The corresponding version information of each element institute that user chooses is obtained, and matched software generation will be distinguished with each version information Code is cached;
By preset relatively tool, processing is compared to each version software code of caching, and comparison result carried out defeated Go out.
2. software version control method as described in claim 1, which is characterized in that in each member in directed acyclic graph In element, after the version information for showing each version software code respectively, further include:
When detecting that software code changes, update is synchronized to the directed acyclic graph.
3. software version control method as described in claim 1, which is characterized in that each element in directed acyclic graph In, the version information of each version software code is shown respectively, including:
Obtain the generated time of each version software code;
According to the precedence of the generated time of each version software code, determine that each version software code corresponds to respectively Chroma-luminance;
To correspond respectively to each element in the chroma-luminance of each version software code rendering directed acyclic graph.
4. software version control method as described in claim 1, which is characterized in that in each member in directed acyclic graph In element, after the version information for showing each version software code respectively, further include:
Enable each element in the directed acyclic graph that the download address of its corresponding software version is respectively associated;
Instruction is chosen in the element sent out in the directed acyclic graph according to user, determines each element that user chooses Later, it further includes:
Based on the download address that each element that the user chooses is respectively associated, software code prompting download information is sent out;
When receiving the download confirmation message of the software code based on the download address, return corresponding to the download address Software code.
5. such as Claims 1-4 any one of them software version control method, which is characterized in that described to pass through preset ratio Compared with tool, processing is compared, and comparison result is exported to each version software code of caching, including:
When detect compare tool there are third party in operating system when, using the comparison tool, to each version software of caching Code is compared processing, and comparison result is exported;
When detect compare tool there is no third party in operating system when, by comparison tool integrated in advance, to caching Each version software code is compared processing, and comparison result is exported.
6. a kind of software version control device, which is characterized in that the software version control device include memory, processor and The computer program that can be run on the memory and on the processor is stored in, the processor performs the computer Following steps are realized during program:
In each element of directed acyclic graph, the version information of each version software code is shown respectively;
Instruction is chosen according to the element that user sends out in the directed acyclic graph, determines each element that user chooses;
The corresponding version information of each element institute that user chooses is obtained, and matched software generation will be distinguished with each version information Code is cached;
By preset relatively tool, processing is compared to each version software code of caching, and comparison result carried out defeated Go out.
7. software version control device as claimed in claim 6, which is characterized in that the processor performs the computer journey During sequence, following steps are also realized:
When detecting that software code changes, update is synchronized to the directed acyclic graph.
8. software version control device as claimed in claim 6, which is characterized in that each element in directed acyclic graph In, it the step of showing the version information of each version software code respectively, specifically includes:
Obtain the generated time of each version software code;
According to the precedence of the generated time of each version software code, determine that each version software code corresponds to respectively Chroma-luminance;
To correspond respectively to each element in the chroma-luminance of each version software code rendering directed acyclic graph.
9. software version control device as claimed in claim 6, which is characterized in that the processor performs the computer journey During sequence, following steps are also realized:
Enable each element in the directed acyclic graph that the download address of its corresponding software version is respectively associated;
Based on the download address that each element that the user chooses is respectively associated, software code prompting download information is sent out;
When receiving the download confirmation message of the software code based on the download address, return corresponding to the download address Software code.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists In realizing the software version control method as described in any one of claim 1 to 5 when the computer program is executed by processor Step.
CN201710437003.5A 2017-06-12 2017-06-12 Software version control method and software version control equipment Active CN108268275B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710437003.5A CN108268275B (en) 2017-06-12 2017-06-12 Software version control method and software version control equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710437003.5A CN108268275B (en) 2017-06-12 2017-06-12 Software version control method and software version control equipment

Publications (2)

Publication Number Publication Date
CN108268275A true CN108268275A (en) 2018-07-10
CN108268275B CN108268275B (en) 2021-05-04

Family

ID=62770884

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710437003.5A Active CN108268275B (en) 2017-06-12 2017-06-12 Software version control method and software version control equipment

Country Status (1)

Country Link
CN (1) CN108268275B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110058877A (en) * 2018-11-06 2019-07-26 阿里巴巴集团控股有限公司 Shunt assembly and its control method
CN110716739A (en) * 2019-09-19 2020-01-21 平安科技(深圳)有限公司 Code change information statistical method, system and readable storage medium
CN111506779A (en) * 2020-04-20 2020-08-07 东云睿连(武汉)计算技术有限公司 Object version and associated information management method and system facing data processing
CN112363756A (en) * 2020-12-04 2021-02-12 四川长虹电器股份有限公司 Method capable of dynamically switching BOM versions
CN112613894A (en) * 2020-12-31 2021-04-06 中国农业银行股份有限公司 Method and device for associating source code and product

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1971556A (en) * 2005-11-26 2007-05-30 华为技术有限公司 System and method to realize database upgrading in background management system
CN1987777A (en) * 2005-12-19 2007-06-27 国际商业机器公司 Computer method and apparatus for activity-based version selection in a configuration management system
US20140013318A1 (en) * 2012-07-03 2014-01-09 Salesforce.Com, Inc. System and method for using directed acyclic graph (dag) for application updates
CN103988176A (en) * 2011-12-12 2014-08-13 株式会社日立制作所 Software analysis program and software analysis system
CN104035772A (en) * 2014-06-09 2014-09-10 中国科学院软件研究所 Static analysis based source code multi-versionfunction call relation difference identification method
CN105956087A (en) * 2016-04-29 2016-09-21 清华大学 Data and code version management system and method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1971556A (en) * 2005-11-26 2007-05-30 华为技术有限公司 System and method to realize database upgrading in background management system
CN1987777A (en) * 2005-12-19 2007-06-27 国际商业机器公司 Computer method and apparatus for activity-based version selection in a configuration management system
CN103988176A (en) * 2011-12-12 2014-08-13 株式会社日立制作所 Software analysis program and software analysis system
US20140013318A1 (en) * 2012-07-03 2014-01-09 Salesforce.Com, Inc. System and method for using directed acyclic graph (dag) for application updates
US20160274898A1 (en) * 2012-07-03 2016-09-22 Salesforce.Com, Inc Systems and methods for using graphs for application updates
CN104035772A (en) * 2014-06-09 2014-09-10 中国科学院软件研究所 Static analysis based source code multi-versionfunction call relation difference identification method
CN105956087A (en) * 2016-04-29 2016-09-21 清华大学 Data and code version management system and method

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110058877A (en) * 2018-11-06 2019-07-26 阿里巴巴集团控股有限公司 Shunt assembly and its control method
CN110716739A (en) * 2019-09-19 2020-01-21 平安科技(深圳)有限公司 Code change information statistical method, system and readable storage medium
CN111506779A (en) * 2020-04-20 2020-08-07 东云睿连(武汉)计算技术有限公司 Object version and associated information management method and system facing data processing
CN112363756A (en) * 2020-12-04 2021-02-12 四川长虹电器股份有限公司 Method capable of dynamically switching BOM versions
CN112613894A (en) * 2020-12-31 2021-04-06 中国农业银行股份有限公司 Method and device for associating source code and product
CN112613894B (en) * 2020-12-31 2024-04-16 中国农业银行股份有限公司 Method and device for associating source code with product

Also Published As

Publication number Publication date
CN108268275B (en) 2021-05-04

Similar Documents

Publication Publication Date Title
CN108268275A (en) Software version control method and software version control device
CN107438814A (en) Entity action suggestion on mobile device
AU2008232816B2 (en) Techniques to share information between application programs
CN110377851A (en) Implementation method, device and the computer equipment of multistage linking combobox
CN105094557B (en) A kind of display control method and device, electronic equipment
US20150215245A1 (en) User interface for graphical representation of and interaction with electronic messages
CN109308284B (en) Report menu generation method and device, computer equipment and storage medium
CN108228305A (en) Display methods, device, storage medium and the electronic equipment of five application page
CN106776082B (en) The method of attaching and device of text
KR20060050753A (en) Automatic view selection
CN108363792A (en) Link generation method, device, storage medium and the electronic equipment of five application page
CN108509209A (en) A kind of generation method, device, computer equipment and the storage medium of resource packet
CN102520841A (en) Collection user interface
CN105955563A (en) Icon management method, icon management system and terminal
CN106408628B (en) A kind of image processing method and device
CN110489312A (en) Data correlation method and device for control trigger data acquisition
CN107517312A (en) A kind of wallpaper switching method, device and terminal device
CN105787034A (en) Data presentation method and device
CN107844519A (en) Electronic installation, data base querying scenario generation method and storage medium
CN105260421A (en) Webpage loading method and apparatus
CN109725790A (en) A kind of application recommended method, terminal and storage medium
CN109522324A (en) A kind of SQL scenario generation method, device and computer equipment
CN106371706A (en) Method and device for site selection of application shortcuts
CN106779791A (en) A kind of generation method and device of object picture combination of arranging in pairs or groups
CN103218425A (en) Method and device for processing browser extension items

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant