Background
svn is short for subversion, is an open source code version control system, adopts a branch management system, and is a worker of cvs. Currently, most open source software uses svn as code version management software. Traditionally, the user password for svn requires a dedicated administrator to take care of. When the organization is large, almost more than one full-time administrator is needed and the administrator's job is the same: that is, the help item creates a library of svns, and each member of the help item creates a corresponding svn user password. Once the project member wants to modify the password, a mail is also required to notify the administrator to process. The whole process is low in efficiency, manpower is wasted, and enterprise cost is increased. In addition, a local svn client needs to be established to manage the svn server, the whole process is complex and tedious, a lot of workload is increased for software development, and further improvement is needed.
Disclosure of Invention
The technical task of the invention is to provide a system for online management and shared viewing of svn source codes, which reduces the dependency on the environment, enhances the working stability, reduces the configuration difficulty and reduces the operation and maintenance management difficulty.
The invention further provides a method for the online management and the shared viewing of the svn source code, which is simple and convenient to operate and can solve the problems of inconvenience in the traditional C/S mode management svn process.
In order to achieve the purpose, the invention provides the following technical scheme:
an online management and shared viewing system of an svn source code is composed of an svn engine, an svn console, an svn shared viewing component, an svn user authority control component and an svn online management component, wherein the svn console, the svn shared viewing component, the svn user authority control component and the svn online management component are respectively connected with the svn engine for communication; the svn console is used for acquiring a user instruction and transmitting the acquired user instruction to the svn engine; the svn engine is used for analyzing and processing the received instructions of the svn console and calling the svn shared viewing component, the svn user authority control component and the svn online management component to perform operation and combination to manage the svn.
The svn shared viewing component, the svn user authority control component and the svn online management component are three components which independently realize functions. The system for online management and shared viewing of the svn source codes well reduces module coupling, is simple, convenient and flexible to use, improves efficiency, saves manpower, overcomes various defects of inconvenience in client management, and reduces dependence on the environment.
Preferably, the svn shared viewing component is used for viewing the directory structure, the source file and the history record of the svn on line; the svn user authority control component is used for completing overall analysis of svn user authority, authority information editing and hierarchical authorization and supporting the authority control of a directory level and a single file level; the svn online management component is used for carrying out online check-in and check-out operation on the svn and supporting execution of a common function command of the svn.
The svn shared viewing component, the svn user authority control component and the svn online management component can complete management of adding a catalog to the svn, deleting the catalog, checking in, checking out and creating branches.
An svn console is responsible for user interaction, user instructions are obtained and transmitted to an svn engine, the svn engine is used for analyzing and processing the received instructions of the svn console and calling an svn shared viewing component, an svn user authority control component and an svn online management component to carry out management of adding a catalog, deleting the catalog, checking in, checking out and creating branches on svn.
Preferably, the svn engine processes user interaction events and coordinates the work of an svn shared viewing component, an svn user authority control component and an svn online management component, wherein the svn shared viewing component is used for viewing the directory structure, the source file and the history of the svn online; the svn user authority control component is used for completing overall analysis of svn user authority, authority information editing and hierarchical authorization and supporting the authority control of a directory level and a single file level; the svn online management component is used for carrying out online check-in and check-out operation on the svn and supporting execution of a common function command of the svn.
Compared with the prior art, the system and the method for online management and shared viewing of the svn source code have the following outstanding advantages: the online management and shared viewing method of the svn source code solves the problem of automatic authority control of the catalog level and the file level of the svn source code, solves the problem of online viewing of the structure and the source code of the svn catalog, solves the problems of inconvenience in the traditional C/S mode management svn process, effectively reduces module coupling, is simple and convenient to use, reduces configuration difficulty and operation and maintenance management difficulty, overcomes various defects of traditional local svn client management, reduces dependence on the environment and enhances working stability.
Examples
As shown in FIG. 1, the system for online management and shared viewing of svn source code of the invention is composed of a svn engine, a svn console, a svn shared viewing component, a svn user authority control component and a svn online management component. The svn console, the svn shared viewing component, the svn user authority control component and the svn online management component are respectively connected with and communicated with the svn engine. The svn console is used for acquiring a user instruction and transmitting the acquired user instruction to the svn engine; the svn engine is used for analyzing and processing the received instructions of the svn console and calling the svn shared viewing component, the svn user authority control component and the svn online management component to perform operation and combination to manage the svn. The svn shared viewing component, the svn user authority control component and the svn online management component are three components which independently realize functions. The svn shared viewing component is used for viewing the directory structure, the source file and the history record of the svn on line; the svn user authority control component is used for completing overall analysis of svn user authority, authority information editing and hierarchical authorization and supporting the authority control of a directory level and a single file level; the svn online management component is used for carrying out online check-in and check-out operation on the svn and supporting execution of a common function command of the svn.
According to the method for online management and shared viewing of the svn source code, the svn console is responsible for user interaction, user instructions are obtained and transmitted to the svn engine, and the svn engine is used for analyzing and processing the received instructions of the svn console and calling the svn shared viewing component, the svn user authority control component and the svn online management component to manage the svn. The svn shared viewing component is used for viewing the directory structure, the source file and the history record of the svn on line; the svn user authority control component is used for completing overall analysis of svn user authority, authority information editing and hierarchical authorization and supporting the authority control of a directory level and a single file level; the svn online management component is used for carrying out online check-in and check-out operation on the svn and supporting execution of a common function command of the svn. The method can overcome various defects of local svn client management, reduce the dependency on the environment and enhance the working stability of the svn source code.
The above-described embodiments are merely preferred embodiments of the present invention, and general changes and substitutions by those skilled in the art within the technical scope of the present invention are included in the protection scope of the present invention.