File version management method, device and system
After receiving the file calling request in the version management system, the specified version of the specified file is sent from the second library to the first library for modification, and the version number is updated, thereby solving the multi-version management problem in the existing technology and realizing Efficient management of multi-person collaborative work and version conflict avoidance.
Patent Information
- Application Number
- CN201911157334.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-11-22
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2039-11-22
AI Technical Summary
It is difficult for the existing version management system to achieve multi-version management of policy content, which results in burden on policy deployment, update and management, and is not conducive to the collaborative work of multiple people.
File version management is achieved by sending the specified version of the specified file from the second library to the first library for modification after receiving the file call request, and updating its version number after receiving the feedback file to make it the latest version number. , and supports locking, unlocking, comparison, marking, archiving, deployment and other operations.
It effectively realizes multi-version management, avoids version conflicts, improves the efficiency of multi-person collaborative work, and optimizes storage space utilization.
Smart Images

Figure CN112835861B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of information processing, and in particular to a file version management method, device and system. Background Art
[0002] At present, version management is usually based on files. That is, the policy content is written into a fixed format file to achieve file management. The inventor found through research that the management granularity of the policy file is often large, which is the management of the entire policy version, and will not be specific to the management of specific content, which creates a burden on the deployment, update and management of the policy. At the same time, it is also difficult to achieve multi-version management of policy content, which is not conducive to the realization of collaborative work among multiple people. Summary of the invention
[0003] The present disclosure provides a solution that can effectively implement multi-version management.
[0004] According to a first aspect of an embodiment of the present disclosure, a file version management method is provided, comprising: after receiving a file call request sent by a first library, sending a specified version of a specified file stored in a second library to the first library, so as to modify the specified version of the specified file in the first library to generate a feedback file; after receiving the feedback file sent by the first library, storing the feedback file in the second library, and updating the version number of the feedback file, so that the updated version number of the feedback file is the latest version number of the specified file in the second library.
[0005] In some embodiments, storing the feedback file in the second library and updating the version number of the feedback file includes: detecting whether the current version number of the feedback file is the same as the current latest version number of the specified file in the second library; if the current version number of the feedback file is the same as the current latest version number of the specified file in the second library, further detecting whether the feedback file has been modified; if the feedback file has been modified, storing the feedback file in the second library, adding the current latest version number of the specified file in the second library to a preset value, and using the calculated result as the updated version number of the feedback file.
[0006] In some embodiments, if the feedback file has not been modified, the feedback file is discarded.
[0007] In some embodiments, if the current version number of the feedback file is different from the current latest version number of the specified file in the second library, the user is prompted whether to continue updating; if an indication is received from the user that the user needs to continue updating, the feedback file is stored in the second library, the current latest version number of the specified file in the second library is added to a preset value, and the calculated result is used as the updated version number of the feedback file.
[0008] In some embodiments, files in the first library and / or the second library are exported in a predetermined format; and / or files in a predetermined format are imported into the first library and / or the second library.
[0009] In some embodiments, according to the operation instruction sent by the first library, the specified version of the specified file in the second library is processed accordingly.
[0010] In some embodiments, according to the operation instruction sent by the first library, corresponding processing of the specified version of the specified file in the second library includes: if a version query instruction sent by the first library is received, querying all historical versions of the specified file in the second library; and sending the query results to the first library.
[0011] In some embodiments, according to the operation instruction sent by the first library, the specified version of the specified file in the second library is processed accordingly, including: if a lock instruction sent by the first library is received, the specified version of the specified file in the second library is locked to prohibit other users from updating the specified version of the specified file in the second library; if an unlock instruction sent by the first library is received, the lock of the specified version of the specified file in the second library is unlocked.
[0012] In some embodiments, according to the operation instruction sent by the first library, corresponding processing of the specified version of the specified file in the second library includes: if a comparison instruction sent by the first library is received, comparing the two specified versions of the specified file in the second library; and providing the comparison result to the first library.
[0013] In some embodiments, according to the operation instruction sent by the first library, the specified version of the specified file in the second library is processed accordingly, including: if a marking instruction sent by the first library is received, the specified version of the specified file in the second library is marked; in some embodiments, if a deletion marking instruction sent by the first library is received, the mark of the specified version of the specified file in the second library is deleted.
[0014] In some embodiments, according to the operation instruction sent by the first library, the specified version of the specified file in the second library is processed accordingly, including: if an archiving instruction sent by the first library is received, the specified version of the specified file in the second library is migrated to the third library; if a rollback instruction sent by the first library is received, the specified version of the specified file is migrated from the third library to the second library.
[0015] In some embodiments, according to the operation instructions sent by the first library, corresponding processing of the specified version of the specified file in the second library includes: if a deployment instruction sent by the first library is received, a policy file is generated according to the specified version of the specified file in the second library, so as to deploy the policy file.
[0016] According to a second aspect of an embodiment of the present disclosure, a file version management device is provided, comprising: a version providing module, configured to, after receiving a file call request sent by a first library, send a specified version of a specified file stored in a second library to the first library, so as to modify the specified version of the specified file in the first library to generate a feedback file; an updating module, configured to, after receiving the feedback file sent by the first library, store the feedback file in the second library, and update the version number of the feedback file, so that the updated version number of the feedback file is the latest version number of the specified file in the second library.
[0017] According to a third aspect of an embodiment of the present disclosure, a file version management device is provided, comprising: a memory configured to store instructions; a processor coupled to the memory, the processor being configured to execute a method as described in any of the above embodiments based on the instructions stored in the memory.
[0018] According to a fourth aspect of an embodiment of the present disclosure, a file version management system is provided, comprising a file version management device as described in any of the above embodiments, and a file processing device, configured to manage a corresponding first library, wherein a specified version of a specified file in a second library is written into the first library, so that the specified version of the specified file is modified in the first library to generate a feedback file, and the feedback file is sent to the first library.
[0019] In some embodiments, the file processing device is further configured to send the policy template generated in the first library to a fourth library for storage.
[0020] In some embodiments, the file processing device is further configured to store the specified policy template from the fourth library into the corresponding first library.
[0021] In some embodiments, the file processing device is further configured to send the policy content generated in the first repository to a fifth repository for storage.
[0022] In some embodiments, the file processing device is further configured to store the specified policy content from the fifth library into the corresponding first library.
[0023] According to a fifth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and when the instructions are executed by a processor, the method involved in any of the above embodiments is implemented.
[0024] Other features and advantages of the present disclosure will become apparent from the following detailed description of exemplary embodiments of the present disclosure with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0026] Figure 1 A flowchart of a file version management method according to an embodiment of the present disclosure;
[0027] Figure 2 A schematic diagram of a file version management architecture according to an embodiment of the present disclosure;
[0028] Figure 3 A schematic diagram of a file version management architecture according to another embodiment of the present disclosure;
[0029] Figure 4 A schematic diagram of a file version management architecture according to another embodiment of the present disclosure;
[0030] Figure 5 A schematic diagram of a file version management architecture according to another embodiment of the present disclosure;
[0031] Figure 6 A schematic diagram of the structure of a file version management device according to an embodiment of the present disclosure;
[0032] Figure 7 A schematic diagram of the structure of a file version management device according to another embodiment of the present disclosure;
[0033] Figure 8 A schematic diagram of the structure of a file version management device according to another embodiment of the present disclosure;
[0034] Fig. 9 A schematic diagram of the structure of a file version management system according to an embodiment of the present disclosure;
[0035] Fig.10 A schematic diagram of a file version management architecture according to another embodiment of the present disclosure;
[0036] Fig.11 A schematic diagram of a file version management architecture according to yet another embodiment of the present disclosure. DETAILED DESCRIPTION
[0037] The following will be combined with the drawings in the embodiments of the present disclosure to clearly and completely describe the technical solutions in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all of the embodiments. The following description of at least one exemplary embodiment is actually only illustrative and is by no means intended to limit the present disclosure and its application or use. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.
[0038] Unless specifically stated otherwise, the relative arrangement of components and steps, the numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present disclosure.
[0039] At the same time, it should be understood that for the convenience of description, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship.
[0040] Technologies, methods, and apparatus known to ordinary technicians in the relevant field may not be discussed in detail, but where appropriate, such technologies, methods, and apparatus should be considered part of the authorization specification.
[0041] In all examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not as limiting. Therefore, other examples of the exemplary embodiments may have different values.
[0042] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0043] Figure 1 The following is a flowchart of a file version management method according to an embodiment of the present disclosure. In some embodiments, the following file version management method steps are performed by a file version management device.
[0044] In step 101, after receiving a file call request sent by the first library, a specified version of a specified file stored in the second library is sent to the first library, so that the specified version of the specified file is modified in the first library to generate a feedback file. User and first library.
[0045] For example, if a specified file A has multiple versions, the user can modify version A0. The modified file (i.e., the feedback file generated in the first library) will retain the modification status and the original version number.
[0046] In some embodiments, the first database may be a temporary database (Temp DB), and the second database may be a formal database (Formal DB).
[0047] In some embodiments, corresponding rules may be set in the first library so that the specified version of the specified file stored in the first library can be modified automatically when the conditions are met. For example, some version update rules are pre-established to update the corresponding version at the corresponding time or event trigger.
[0048] In other embodiments, the user can modify the specified version of the specified file stored in the first library by operating in the first library. To facilitate user operations, corresponding first libraries can be set for different users, that is, users and first libraries correspond one to one.
[0049] Figure 2 A schematic diagram of a file version management architecture according to an embodiment of the present disclosure.
[0050] like Figure 2 As shown, each user can operate and process the corresponding version of the content through the first library corresponding to the user. The first library only stores the content currently operated by the user.
[0051] Return to Figure 1 In step 102, after receiving the feedback file sent by the first library, the feedback file is stored in the second library, and the version number of the feedback file is updated so that the updated version number of the feedback file is the latest version number of the specified file in the second library.
[0052] In some embodiments, the above-mentioned storing the feedback file in the second library and updating the version number of the feedback file includes: detecting whether the current version number of the feedback file is the same as the current latest version number of the specified file in the second library. If the current version number of the feedback file is the same as the current latest version number of the specified file in the second library, further detecting whether the feedback file has been modified. If the feedback file has been modified, the feedback file is stored in the second library, the current latest version number of the specified file in the second library is added to the preset value, and the calculation result is used as the updated version number of the feedback file. If the feedback file has not been modified, the feedback file is discarded.
[0053] For example, the preset value may be 1. That is, the current latest version number of the specified file is increased by 1, and the calculation result is used as the updated version number of the feedback file.
[0054] For example, if a user modifies version A0 through the first library, and if the highest version of file A in the second library is also A0 at this time, it means that no other user has modified file A. In this case, if the feedback file returned by the first library has been modified, the version number of the feedback file is changed to A1. If the feedback file returned by the first library has not been modified, it means that the feedback file is consistent with version A0 in the second library, in which case the feedback file is discarded.
[0055] In some embodiments, if the current version number of the feedback file is different from the current latest version number of the specified file in the second library, the user is prompted whether to continue updating. If the user's indication that the update is required is received, the feedback file is stored in the second library, the current latest version number of the specified file in the second library is added to the preset value, and the calculated result is used as the updated version number of the feedback file.
[0056] For example, if a user modifies version A0 through the first library, and the highest version of file A in the second library is A1, it means that other users have modified file A. In this case, the user will be prompted whether to continue updating. If the user needs to continue updating, the version number of the feedback file will be changed to A2. This can effectively avoid version conflicts caused by different users modifying version A0. This helps to facilitate collaborative work among multiple people.
[0057] In some embodiments, in the above-mentioned file version management architecture, the specified version of the specified file in the second library may be processed accordingly according to the operation instruction sent by the first library.
[0058] In some embodiments, if the second library receives the version query instruction sent by the first library, all historical versions of the specified file in the second library are queried, and the query result is sent to the first library, so that the user can view it.
[0059] In some embodiments, if the second library receives a lock instruction sent by the first library, the specified version of the specified file in the second library is locked to prohibit other users from updating the specified version of the specified file in the second library. In addition, if the first library receives an unlock instruction sent by the first library, the lock of the specified version of the specified file in the second library is released. In this way, the file content of the specified version can be locked and protected.
[0060] In some embodiments, if the second library receives a comparison instruction sent by the first library, the two specified versions of the specified file in the second library are compared, and the comparison result is provided to the first library so that the user can perform the comparison operation.
[0061] In some embodiments, if the second library receives a marking instruction sent by the first library, the specified version of the specified file in the second library is marked. In addition, if the second library receives a deletion marking instruction sent by the first library, the mark of the specified version of the specified file in the second library is deleted, so that the user can implement marking management.
[0062] Figure 3 A schematic diagram of a file version management architecture according to another embodiment of the present disclosure.
[0063] like Figure 3 As shown, the files in the first library and / or the second library can be exported in a predetermined format, and / or the files in the predetermined format can be imported into the first library and / or the second library. For example, the predetermined format can be XML (Extensible Markup Language) to manage different versions of files.
[0064] Figure 4 A schematic diagram of a file version management architecture according to yet another embodiment of the present disclosure.
[0065] like Figure 4 As shown, if the second library receives the archiving instruction sent by the first library, the specified version of the specified file in the second library is migrated to the third library. In addition, if the second library receives the rollback instruction sent by the first library, the specified version of the specified file is migrated from the third library to the second library.
[0066] In some embodiments, the third repository is an archive repository (Archive DB).
[0067] For example, for some offline file versions (for example, a specific version of the policy file), they can be saved in the third library, and the second library will no longer store these offline file versions. This can effectively improve the storage space utilization rate of the second library. In the case of needing to call some offline file versions, the corresponding file versions can also be extracted from the third library to the second library. This ensures that the data in the second library is clear and the corresponding historical data can be traced back.
[0068] Figure 5 A schematic diagram of a file version management architecture according to yet another embodiment of the present disclosure.
[0069] like Figure 5 As shown, if the second library receives the deployment instruction sent by the first library, a policy file is generated according to a specified version of a specified file in the second library so as to deploy the policy file.
[0070] In some embodiments, multi-version deployment can be implemented using the label of the second library. For example, label 1 is added to version A0 for deployment, and label 2 is added to version A0 for deployment. In addition, deploying a policy file is an irreversible process. It is impossible to obtain the corresponding policy content from the deployed policy file to ensure information security.
[0071] For example, the A1 version of the designated file is processed by using the one-way function F to obtain the policy file. After the malicious third method obtains the policy file, it cannot extract the A1 version file from the policy file.
[0072] Figure 6 FIG. 1 is a schematic diagram of the structure of a file version management device according to an embodiment of the present disclosure. Figure 6 As shown, the file version management device includes a version providing module 61 and an updating module 62 .
[0073] The version providing module 61 is configured to send the specified version of the specified file stored in the second library to the first library after receiving the file call request sent by the first library, so as to modify the specified version of the specified file in the first library to generate a feedback file.
[0074] For example, if a specified file A has multiple versions, the user can modify version A0. The modified file will retain the modification status and the original version number.
[0075] In some embodiments, the first database may be a temporary database (Temp DB), and the second database may be a formal database (Formal DB).
[0076] In some embodiments, corresponding logic rules may be set in the first library so that the specified version of the specified file stored in the first library can be modified automatically when the conditions are met. In other embodiments, the user can modify the specified version of the specified file stored in the first library by operating in the first library. To facilitate user operations, corresponding first libraries may be set for different users, that is, users and first libraries correspond one to one.
[0077] The updating module 62 is configured to store the feedback file in the second library after receiving the feedback file sent by the first library, and update the version number of the feedback file so that the updated version number of the feedback file is the latest version number of the specified file in the second library.
[0078] In some embodiments, the above-mentioned storing the feedback file in the second library and updating the version number of the feedback file includes: detecting whether the current version number of the feedback file is the same as the current latest version number of the specified file in the second library. If the current version number of the feedback file is the same as the current latest version number of the specified file in the second library, further detecting whether the feedback file has been modified. If the feedback file has been modified, the feedback file is stored in the second library, the current latest version number of the specified file in the second library is added to the preset value, and the calculation result is used as the updated version number of the feedback file. If the feedback file has not been modified, the feedback file is discarded.
[0079] For example, the preset value may be 1. That is, the current latest version number of the specified file is increased by 1, and the calculation result is used as the updated version number of the feedback file.
[0080] For example, if a user modifies version A0 through the first library, and if the highest version of file A in the second library is also A0 at this time, it means that no other user has modified file A. In this case, if the feedback file returned by the first library has been modified, the version number of the feedback file is changed to A1. If the feedback file returned by the first library has not been modified, it means that the feedback file is consistent with version A0 in the second library, in which case the feedback file is discarded.
[0081] In some embodiments, if the current version number of the feedback file is different from the current latest version number of the specified file in the second library, the user is prompted whether to continue updating. If the user's indication that the update is required is received, the feedback file is stored in the second library, the current latest version number of the specified file in the second library is added to the preset value, and the calculated result is used as the updated version number of the feedback file.
[0082] For example, if a user modifies version A0 through the first library, and the highest version of file A in the second library is A1, it means that other users have modified file A. In this case, the user will be prompted whether to continue updating. If the user needs to continue updating, the version number of the feedback file will be changed to A2. This can effectively avoid version conflicts caused by different users modifying version A0. This helps to facilitate collaborative work among multiple people.
[0083] Figure 7 FIG. 1 is a schematic diagram of a file version management device according to another embodiment of the present disclosure. Figure 6 In comparison, Figure 7 In the illustrated embodiment, the file version management device further includes a management module 63 .
[0084] The management module 63 may perform corresponding processing on the specified version of the specified file in the second library according to the operation instruction sent by the first library.
[0085] In some embodiments, if the second library receives the version query instruction sent by the first library, the management module 63 queries all historical versions of the specified file in the second library and sends the query result to the first library so that the user can view it.
[0086] In some embodiments, if the second library receives a lock instruction sent by the first library, the management module 63 locks the specified version of the specified file in the second library to prohibit other users from updating the specified version of the specified file in the second library. In addition, if the first library receives an unlock instruction sent by the first library, the lock of the specified version of the specified file in the second library is released. In this way, the file content of the specified version can be locked and protected.
[0087] In some embodiments, if the second library receives a comparison instruction sent by the first library, the management module 63 compares the two specified versions of the specified file in the second library and provides the comparison result to the first library so that the user can perform the comparison operation.
[0088] In some embodiments, if the second library receives a marking instruction sent by the first library, the management module 63 marks the specified version of the specified file in the second library. In addition, if the second library receives a deletion marking instruction sent by the first library, the mark of the specified version of the specified file in the second library is deleted, so that the user can implement marking management.
[0089] In some embodiments, Figure 3 As shown, the management module 63 can export files in the first library and / or the second library in a predetermined format, and / or import files in a predetermined format into the first library and / or the second library. For example, the predetermined format can be XML, so as to manage files of different versions.
[0090] In some embodiments, Figure 4 As shown, if the second library receives the archiving instruction sent by the first library, the management module 63 migrates the specified version of the specified file in the second library to the third library. In addition, if the second library receives the rollback instruction sent by the first library, the specified version of the specified file is migrated from the third library to the second library.
[0091] In some embodiments, the third repository is an archive repository (Archive DB).
[0092] For example, for some offline file versions (for example, a specific version of the policy file), they can be saved in the third library, and the second library will no longer store these offline file versions. This can effectively improve the storage space utilization rate of the second library. In the case of needing to call some offline file versions, the corresponding file versions can also be extracted from the third library to the second library. This ensures that the data in the second library is clear and the corresponding historical data can be traced back.
[0093] In some embodiments, Figure 5 As shown, if the second library receives the deployment instruction sent by the first library, the management module 63 generates a policy file according to the specified version of the specified file in the second library, so as to deploy the policy file.
[0094] In some embodiments, multi-version deployment can be implemented using the label of the second library. For example, label 1 is added to version A0 for deployment, and label 2 is added to version A0 for deployment. In addition, deploying a policy file is an irreversible process. It is impossible to obtain the corresponding policy content from the deployed policy file to ensure information security.
[0095] Figure 8 FIG. 1 is a schematic diagram of the structure of a file version management device according to another embodiment of the present disclosure. Figure 8 As shown, the device includes a memory 81 and a processor 82 .
[0096] The memory 81 is used to store instructions. The processor 82 is coupled to the memory 81. The processor 82 is configured to execute the instructions stored in the memory to implement the following steps: Figure 1 The method of any one of the embodiments.
[0097] like Figure 8 As shown, the device also includes a communication interface 83 for information exchange with other devices. At the same time, the device also includes a bus 84, through which the processor 82, the communication interface 83, and the memory 81 communicate with each other.
[0098] The memory 81 may include a high-speed RAM memory, and may also include a non-volatile memory, such as at least one disk memory. The memory 81 may also be a memory array. The memory 81 may also be divided into blocks, and the blocks may be combined into virtual volumes according to certain rules.
[0099] In addition, the processor 82 may be a central processing unit (CPU), or may be an application-specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present disclosure.
[0100] The present disclosure also relates to a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, which are executed by a processor to implement the following Figure 1 The method of any one of the embodiments.
[0101] Fig. 9 FIG. 1 is a schematic diagram of the structure of a file version management system according to an embodiment of the present disclosure. Fig. 9As shown, the file version management system includes a file version management device 91 and a file processing device 92. The file version management device 91 is Figure 6 or Figure 8 A file version management device according to any one of the embodiments.
[0102] The file processing device 92 is configured to manage the corresponding first library, wherein the specified version of the specified file in the second library is written to the first library, so that the specified version of the specified file is modified in the first library to generate a feedback file, and the feedback file is sent to the first library.
[0103] In some embodiments, the file processing device 92 is further configured to send the policy template generated in the first library to the fourth library for storage. In addition, the file processing device 92 is further configured to store the specified policy template from the fourth library into the corresponding first library.
[0104] In some embodiments, the fourth library is a template library (Template DB).
[0105] Fig.10 A schematic diagram of a file version management architecture according to another embodiment of the present disclosure;
[0106] like Fig.10 As described above, a policy template is generated in the first library according to the relevant content of the designated file. The file processing device 92 stores the policy template in the fourth library. In addition, the file processing device 92 can also extract the designated policy template from the fourth library according to user needs and store the designated policy template in the first library.
[0107] The design of the fourth library will help with version management and version comparison for policy content using the same template. The content of the fourth library can be managed by timestamp, label, and user.
[0108] In some embodiments, the file processing device 92 is further configured to send the policy content generated in the first repository to the fifth repository for storage. In addition, the file processing device 92 is further configured to store the specified policy content from the fifth repository into the corresponding first repository.
[0109] In some embodiments, the fifth database is a knowledge database (Knowledge DB).
[0110] Fig.11 A schematic diagram of a file version management architecture according to yet another embodiment of the present disclosure.
[0111] like Fig.11As shown, the first library processes the relevant content of the designated file into policy content. The file processing device 92 stores the policy content in the fifth library. In addition, the file processing device 92 can also extract the designated policy content from the fifth library and store it in the first library according to user needs.
[0112] The fifth library is designed to facilitate policy personnel and policy deployment personnel to quickly learn policy content and policy version iteration process. In the process of operating the first library, the policy content can be refined into the fifth library content and stored in the fifth library to facilitate user viewing and learning, thereby ensuring the effectiveness of the policy and the effectiveness of version updates. The content of the fifth library can be managed by timestamp, label, and user.
[0113] In some embodiments, the functional unit module described above can be implemented as a general-purpose processor, a programmable logic controller (PLC), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components or any appropriate combination thereof for performing the functions described in the present disclosure.
[0114] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0115] The description of the present disclosure is given for the purpose of illustration and description, and is not intended to be exhaustive or to limit the present disclosure to the disclosed form. Many modifications and variations will be apparent to those of ordinary skill in the art. The embodiments are selected and described in order to better illustrate the principles and practical applications of the present disclosure, and to enable those of ordinary skill in the art to understand the present disclosure and thereby design various embodiments with various modifications suitable for specific uses.
Claims
1. A file version management method, include: After receiving the file call request sent by the first library, sending the specified version of the specified file stored in the second library to the first library, so as to modify the specified version of the specified file in the first library to generate a feedback file; After receiving the feedback file sent by the first library, storing the feedback file in the second library, and updating the version number of the feedback file so that the updated version number of the feedback file is the latest version number of the designated file in the second library; The step of storing the feedback file in the second library and updating the version number of the feedback file includes: Detecting whether the current version number of the feedback file is the same as the current latest version number of the specified file in the second library; If the current version number of the feedback file is different from the current latest version number of the specified file in the second library, prompting the user whether to continue updating; If an instruction from the user is received that the update needs to be continued, the feedback file is stored in the second library, the current latest version number of the specified file in the second library is added to a preset value, and the calculation result is used as the updated version number of the feedback file; If the current version number of the feedback file is the same as the current latest version number of the specified file in the second library, further detecting whether the feedback file has been modified; If the feedback file has been modified, the feedback file is stored in the second library, the current latest version number of the designated file in the second library is added to a preset value, and the calculation result is used as the updated version number of the feedback file.
2. The method according to claim 1, further comprising: include: If the feedback file has not been modified, the feedback file is discarded.
3. The method according to claim 1, further comprising: include: Exporting files in the first library and / or the second library in a predetermined format; and / or A file having a predetermined format is imported into the first library and / or the second library.
4. The method according to any one of claims 1 to 3, further comprising: include: According to the operation instruction sent by the first library, the specified version of the specified file in the second library is processed accordingly.
5. The method according to claim 4, in, According to the operation instruction sent by the first library, correspondingly processing the specified version of the specified file in the second library includes: If a version query instruction sent by the first library is received, query all historical versions of the specified file in the second library; The query result is sent to the first library.
6. The method according to claim 4, in, According to the operation instruction sent by the first library, correspondingly processing the specified version of the specified file in the second library includes: If a locking instruction is received from the first library, the specified version of the specified file in the second library is locked to prohibit other users from updating the specified version of the specified file in the second library; If an unlock instruction sent by the first library is received, the lock of the specified version of the specified file in the second library is released.
7. The method according to claim 4, in, According to the operation instruction sent by the first library, correspondingly processing the specified version of the specified file in the second library includes: If a comparison instruction sent by the first library is received, then comparing two specified versions of the specified file in the second library; The alignment results will be provided to the first library.
8. The method according to claim 4, in, According to the operation instruction sent by the first library, correspondingly processing the specified version of the specified file in the second library includes: If a marking instruction sent by the first library is received, marking the specified version of the specified file in the second library; If a deletion mark indication sent by the first library is received, the mark of the specified version of the specified file in the second library is deleted.
9. The method according to claim 4, in, According to the operation instruction sent by the first library, correspondingly processing the specified version of the specified file in the second library includes: If an archiving instruction sent by the first library is received, migrating the specified version of the specified file in the second library to the third library; If a rollback instruction sent by the first library is received, the specified version of the specified file is migrated from the third library to the second library.
10. The method according to claim 4, in, According to the operation instruction sent by the first library, correspondingly processing the specified version of the specified file in the second library includes: If a deployment instruction sent by the first library is received, a policy file is generated according to a specified version of a specified file in the second library, so as to deploy the policy file.
11. A file version management device, include: a version providing module configured to, after receiving a file call request sent by the first library, send a specified version of a specified file stored in the second library to the first library, so as to modify the specified version of the specified file in the first library to generate a feedback file; an update module, configured to, after receiving the feedback file sent by the first library, store the feedback file in the second library, and update the version number of the feedback file so that the updated version number of the feedback file is the latest version number of the designated file in the second library, wherein it is detected whether the current version number of the feedback file is the same as the current latest version number of the designated file in the second library; if the current version number of the feedback file is not the same as the current latest version number of the designated file in the second library, prompt the user whether to continue the update; if an indication from the user that the update is needed is received, store the feedback file in the second library, add the current latest version number of the designated file in the second library to a preset value, and use the calculated result as the updated version number of the feedback file; If the current version number of the feedback file is the same as the current latest version number of the specified file in the second library, further detect whether the feedback file has been modified. If the feedback file has been modified, store the feedback file in the second library, add the current latest version number of the specified file in the second library to the preset value, and use the calculated result as the updated version number of the feedback file.
12. A file version management device, include: a memory configured to store instructions; A processor is coupled to the memory, and the processor is configured to execute the method according to any one of claims 1 to 10 based on instructions stored in the memory.
13. A file version management system, comprising the file version management device according to claim 11 or 12, and A file processing device is configured to manage a corresponding first library, wherein a specified version of a specified file in a second library is written into the first library, so that the specified version of the specified file is modified in the first library to generate a feedback file, and the feedback file is sent to the first library.
14. The system according to claim 13, in: The file processing device is also configured to send the policy template generated in the first library to the fourth library for storage.
15. The system according to claim 14, in: The file processing device is further configured to store the specified policy template from the fourth library into the corresponding first library.
16. The system according to claim 14, in: The file processing device is further configured to send the policy content generated in the first repository to the fifth repository for storage.
17. The system according to claim 16, in: The file processing device is further configured to store the specified policy content from the fifth repository into the corresponding first repository.
18. A computer-readable storage medium, in, The computer-readable storage medium stores computer instructions, and when the instructions are executed by a processor, the method according to any one of claims 1 to 10 is implemented.
Citation Information
Patent Citations
Cloud programming file management method and device, equipment and storage medium
CN109871233A
