CN106844730A - The display methods and device of file content - Google Patents
The display methods and device of file content Download PDFInfo
- Publication number
- CN106844730A CN106844730A CN201710074084.7A CN201710074084A CN106844730A CN 106844730 A CN106844730 A CN 106844730A CN 201710074084 A CN201710074084 A CN 201710074084A CN 106844730 A CN106844730 A CN 106844730A
- Authority
- CN
- China
- Prior art keywords
- file
- content
- file content
- login user
- version
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/62—Protecting access to data via a platform, e.g. using keys or access control rules
- G06F21/6218—Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
- G06F21/6227—Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database where protection concerns the structure of data, e.g. records, types, queries
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/13—File access structures, e.g. distributed indices
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/14—Details of searching files based on file metadata
- G06F16/148—File search processing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/14—Details of searching files based on file metadata
- G06F16/156—Query results presentation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/30—Authentication, i.e. establishing the identity or authorisation of security principals
- G06F21/31—User authentication
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2221/00—Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F2221/21—Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F2221/2141—Access rights, e.g. capability lists, access control lists, access tables, access matrices
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- Computer Security & Cryptography (AREA)
- Computer Hardware Design (AREA)
- Software Systems (AREA)
- Library & Information Science (AREA)
- Health & Medical Sciences (AREA)
- Bioethics (AREA)
- General Health & Medical Sciences (AREA)
- Information Transfer Between Computers (AREA)
- Storage Device Security (AREA)
Abstract
The invention discloses the display methods and device of a kind of file content.Wherein, the method includes:Authority Verification is carried out to login user;In login user by after Authority Verification, obtaining record identification corresponding with the ID of login user, wherein, record identification is used to index the renewal file content that login user is consulted in version management server;The all previous renewal file content that will be associated with record identification is shown to login user.The present invention solve in correlation technique tester is when code tester is carried out or application developer cannot exactly be obtained from the technical problem of the appointment codes for bearing duty when code review is carried out.
Description
Technical field
The present invention relates to computer realm, in particular to the display methods and device of a kind of file content.
Background technology
At present, in software development process, whether application developer or tester can position certainly intuitively, exactly
Body needs the code of concern, will directly affect exploitation and testing efficiency and the quality of software product.However, in software development and survey
Access rights problem cannot be avoided during examination.For large-scale key project, every program development or tester
Responsible is only a part of whole project, it is only necessary to which the part to itself being responsible for has the authority for consulting code.Cause
, it is necessary to this is in test code/between evaluation and rights management demand balance, with improve software product exploitation and testing efficiency and
Quality.
Existing method of testing is the new content that this is submitted to by application developer's proactive notification tester, tool
Have the tester for consulting authority directly can instruct the content submitted to search utility developer by Version
And check diff (it refers to carry out comparison in difference to two files, and is shown to difference section).If however, do not possessed
The authority of respective file is consulted, application developer can only be allowed to generate the diff information submitted to, being then issued to tester is carried out
Recurrence check or using code review (i.e. in software development process, by carrying out the process of systemic inspection to source code,
Its general object is:System defect is searched, to ensure the oeverall quality of software and improve the own level of developer) work
Tool, can view the different information between the different editions content submitted to each time and previously submitted to.Application developer can
With notify tester which time submit to be it is related to this changes, so as to tester pass through code review instrument in search journey
The diff information that sequence developer submits to.
By the above method it can be found that the method for testing provided in correlation technique cannot realize flexible authority pipe
Reason, for example, being only capable of consulting related to test or application developer in the more strict development project of some rights managements
Code diff contents, and whole file content cannot be consulted.If instructing directly to perform by Version and consulting behaviour
Make, then easily cause code authority and be difficult to control to, i.e. the degree of opening of Version authority be directed to a file or
For catalogue, and lack the priority assignation of different editions diff information for specific file.Even if matching somebody with somebody for specific file
Access authority is put, if application developer's submission is newly-increased file, also needs to consult power for the newly-increased file configuration
Limit, so as to increase operation complexity.And be difficult to navigate to if using only some code review instruments with this test
Hold related Version and submit diff information to, in addition it is also necessary to application developer by the file content of newest submission notify to
Tester, is then searched the diff information of correspondence submission by tester again.Thus the problem for triggering is:Code review
Instrument is all the data storage warehouse by frequently monitoring version management server, it is found that Version is present and submit content to
When just record corresponding information, rather than when being submitted to by Version actively triggering obtain submission information.
In sum, the tester in correlation technique is when code tester is carried out or application developer is carrying out generation
The appointment codes for bearing duty cannot be exactly obtained from during code evaluation.
For above-mentioned problem, effective solution is not yet proposed at present.
The content of the invention
The display methods and device of a kind of file content are the embodiment of the invention provides, with least solving correlation technique
Tester is when code tester is carried out or application developer cannot exactly be obtained from when code review is carried out and bear
The technical problem of the appointment codes of duty.
A kind of one side according to embodiments of the present invention, there is provided display methods of file content, including:
Authority Verification is carried out to login user;In login user by after Authority Verification, obtaining the user with login user
Corresponding record identification is identified, wherein, record identification is used to index the renewal that login user is consulted in version management server
File content;The all previous renewal file content that will be associated with record identification is shown to login user.
Alternatively, before Authority Verification is carried out to login user, also include:File update notification message is obtained, wherein,
File update notification message be local file content is updated and to version management server submit to update file content
During trigger, local file content be version management server in store respective file copy;Updated from file
Notification message obtains record identification, and sets up corresponding relation in record identification and between updating file content.
Alternatively, obtaining record identification from file update notification message includes:File update notification message is parsed,
Log information is obtained from file update notification message;Log information is parsed, record identification is obtained from log information.
Alternatively, it is shown to after login user in all previous renewal file content that will be associated with record identification, is also included:
Determine the renewal file content for updating file content and the second edition of the first version that login user is chosen, wherein, the first edition
Originally it is later than the second edition;Obtain the difference letter updated between file content for updating file content and the second edition of first version
Breath, and different information is shown.
Alternatively, the difference letter updated between file content for updating file content and the second edition of first version is obtained
Breath includes:Obtaining step, the file path list being made up of the renewal file content of first version is obtained according to record identification;Choosing
Step is taken, any file path for not yet traveling through is chosen from file path list;Comparison step, by the file road by choosing
The more new file that footpath gets is compared with corresponding file in the renewal file content of the second edition, obtains and the text chosen
The corresponding difference content in part path;Judge step, judge whether all traversal is finished for file path list, if not time
Go through and finish, then return to selecting step;If all traversal is finished, by each corresponding difference content group of file path chosen
Into different information.
Another aspect according to embodiments of the present invention, additionally provides a kind of display device of file content, including:
Authentication module, for carrying out Authority Verification to login user;First acquisition module, for passing through power in login user
After limit checking, record identification corresponding with the ID of login user is obtained, wherein, record identification is used to index login user
The renewal file content consulted in version management server;Display module, for all previous renewal that will be associated with record identification
File content is shown to login user.
Alternatively, said apparatus also include:Second acquisition module, for obtaining file update notification message, wherein, file
Update notification message be local file content is updated and to version management server submit to update file content mistake
Triggered in journey, local file content is the copy of the respective file of storage in version management server;Processing module, for from
File update notification message obtains record identification, and sets up corresponding relation in record identification and between updating file content.
Alternatively, processing module includes:First resolution unit, for being parsed to file update notification message, from text
Log information is obtained in part update notification message;Second resolution unit, for being parsed to log information, from log information
Obtain record identification.
Alternatively, said apparatus also include:Determining module, the renewal text for determining the first version that login user is chosen
The renewal file content of part content and the second edition, wherein, first version is later than the second edition;3rd acquisition module, for obtaining
Take first version updates the different information updated between file content of file content and the second edition, and different information is entered
Row display.
Alternatively, the 3rd acquisition module includes:Acquiring unit, obtains by the more new file of first version according to record identification
The file path list of Composition of contents;Unit is chosen, any file path for not yet traveling through is chosen from file path list;Than
Compared with unit, corresponding text in renewal file content of the more new file with the second edition that will be got by the file path chosen
Part is compared, and obtains difference content corresponding with the file path chosen;Whether judging unit, judge file path list
Finished through all traversals, if do not travel through finished, return and choose unit;If all traversal is finished, will choose every time
File path corresponding difference content composition different information.
In embodiments of the present invention, marked with the user of login user by after Authority Verification, obtaining using in login user
Know corresponding record identification, and all previous renewal file content that will be associated with record identification is shown to the mode of login user, leads to
Overwriting identifies to index the renewal file content that login user is consulted in version management server, has reached login user only
The purpose with the renewal file content associated by the own user corresponding record identification of mark can be consulted, it is achieved thereby that convenient,
Quickly entering the technique effect of line code rights management, and then solve the tester in correlation technique is carrying out code tester
When or application developer the technical problem of the appointment codes for bearing duty cannot be exactly obtained from when code review is carried out.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, constitutes the part of the application, this hair
Bright schematic description and description does not constitute inappropriate limitation of the present invention for explaining the present invention.In the accompanying drawings:
Fig. 1 is the flow chart of the display methods of file content according to embodiments of the present invention;
Fig. 2 is the schematic diagram of renewal file content storing process according to the preferred embodiment of the invention;
Fig. 3 be the file content between two different editions according to the preferred embodiment of the invention be compared acquisition it is poor
The schematic diagram of different information process;
Fig. 4 is the structured flowchart of the display device of file content according to embodiments of the present invention;
Fig. 5 is the structured flowchart of the display device of file content according to the preferred embodiment of the invention.
Specific embodiment
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention
Accompanying drawing, is clearly and completely described to the technical scheme in the embodiment of the present invention, it is clear that described embodiment is only
The embodiment of a part of the invention, rather than whole embodiments.Based on the embodiment in the present invention, ordinary skill people
The every other embodiment that member is obtained under the premise of creative work is not made, should all belong to the model of present invention protection
Enclose.
It should be noted that term " first ", " in description and claims of this specification and above-mentioned accompanying drawing
Two " it is etc. for distinguishing similar object, without for describing specific order or precedence.It should be appreciated that so using
Data can exchange in the appropriate case, so as to embodiments of the invention described herein can with except illustrating herein or
Order beyond those of description is implemented.Additionally, term " comprising " and " having " and their any deformation, it is intended that cover
Lid is non-exclusive to be included, for example, the process, method, system, product or the equipment that contain series of steps or unit are not necessarily limited to
Those steps or unit clearly listed, but may include not list clearly or for these processes, method, product
Or other intrinsic steps of equipment or unit.
According to embodiments of the present invention, there is provided a kind of embodiment of the display methods of file content, it is necessary to explanation,
The step of flow of accompanying drawing is illustrated can perform in the such as one group computer system of computer executable instructions, also,
Although showing logical order in flow charts, in some cases, can be with different from shown in order execution herein
The step of going out or describe.
Fig. 1 is the flow chart of the display methods of file content according to embodiments of the present invention, as shown in figure 1, the method bag
Include following steps:
Step S12, Authority Verification is carried out to login user;
Step S14, in login user by after Authority Verification, obtaining record mark corresponding with the ID of login user
Know, wherein, record identification is used to index the renewal file content that login user is consulted in version management server;
Step S16, all previous renewal file content that will be associated with record identification is shown to login user.
By above-mentioned steps, using in login user by after Authority Verification, obtaining the ID pair with login user
The record identification answered, and all previous renewal file content that will be associated with record identification is shown to the mode of login user, by note
Record identifies to index the renewal file content that login user is consulted in version management server, has reached login user and has been only capable of looking into
The purpose with the renewal file content associated by the own user corresponding record identification of mark is read, it is achieved thereby that convenient, fast
Ground enters the technique effect of line code rights management, so solve the tester in correlation technique when code tester is carried out or
Person application developer cannot exactly be obtained from the technical problem of the appointment codes for bearing duty when code review is carried out.
During being preferable to carry out, the above-mentioned Authority Verification to login user can use Openid Authority Verification modes,
Openid is that, come one unique identities of website of certification, can distribute right according to the identity by Uniform Resource Identifier (URI)
The authority answered.Above-mentioned version management server can be Subversion (referred to as svn) server, and it is used to realize that many people are total to
With the same project of exploitation, the purpose of common source.Above-mentioned renewal file content can be included but is not limited to:In original file
Increase on the basis of appearance new content, on the basis of original file content delete part have content, in original file content
On the basis of change part have content.Above-mentioned record identification can be the odd numbers of Redmine.Redmine refers to based on web's
One Project Management Software, by the form of " project (Project) " by member, task (problem), document, discussion and various
The resource of form is organized together, and many people participate in the contents such as more new task, document to promote the progress of project, simultaneity factor to utilize
Time cue and various dynamic report forms being that member reports project process automatically.Every time to being stored on svn servers
File content when being updated, can correspond to a Redmine odd numbers, be responsible for itself with limiting user and can only find
The single-phase associations of Redmine renewal file content.
Alternatively, in step S12, before carrying out Authority Verification to login user, step performed below can also be included:
Step S10, obtains file update notification message, wherein, file update notification message is to local file content
It is updated and is triggered during submitting renewal file content to version management server, local file content is version pipe
The copy of the respective file stored in reason server;
Step S11, record identification is obtained from file update notification message, and between record identification and renewal file content
Set up corresponding relation.
In a preferred embodiment, above-mentioned file update notification message can be svnhook post_commit message.
Svnhook refers to one hook of addition in svn instruments, and the hook can be triggered whenever performing when svn submits operation to, its effect
It is that the information submitted to by svn instruments every time is sent to specified server.By adding hook in svn, realize
Corresponding submission to can be in time obtained when there is up-to-date every time to record, and without monitor in real time svn services
Device.
Fig. 2 is the schematic diagram of renewal file content storing process according to the preferred embodiment of the invention, as shown in Fig. 2 should
Process can include following operating procedure:
Step S202, receives the svnhook notification messages triggered when application developer submits to every time, wherein, should
The svn information of this submission is carried in svnhook Messages Messages, it can be included but is not limited to:File path, submitter
Member, log.
Step S204, is parsed to svnhook notification messages, and this submission is extracted from svnhook notification messages
Svn information.
Step S206- step S208, (i.e. application developer is performing submission behaviour to the odd numbers of extraction Redmine from log
Need to add " # odd numbers " in log when making, otherwise svn can return to submission failure or abnormal alarm).If extracting failure, flow
Journey terminates;If extracted successfully, step S210 is continued executing with.
Step S210- step S212, the related information of the odd numbers is inquired about according to the odd numbers for extracting from Redmine, its
Can include but is not limited to:Follow-up tester, title, description content.If successful inquiring, step S218 is continued executing with;
If inquiry failure, continues executing with step S214.
Step S214, Redmine is mono- for storage, wherein, the mono- interior each field informations of the Redmine are set to sky, wait look into next time
It is filled again after asking successfully.
Step S216, the follow-up tester for distributing acquiescence for the Redmine is mono- is (for example:System manager);Go to step
Rapid S222.
Step S218- step S220, store the mono- information of Redmine, and by the Redmine it is mono- distribute to it is corresponding follow-up survey
Examination personnel.
Step S222, sets up a record for Redmine Unit Indexes, and this submission content is single-phase with the Redmine
Association.Whole flow process terminates.
Alternatively, in step s 11, obtaining record identification from file update notification message can include step performed below
Suddenly:
Step S110, is parsed to file update notification message, and log information is obtained from file update notification message;
Step S111, is parsed to log information, and record identification is obtained from log information.
Application developer needs addition " # odd numbers ", otherwise svn in log information (log) when performing and submitting operation to
Submission failure or abnormal alarm can be returned.The associated item management platform provided by the present invention can receive application developer
The svnhook notification messages triggered when submitting to every time, wherein, the svn letters of this submission are carried in the svnhook notification messages
Breath, it can be included but is not limited to:File path, submission personnel, log, and then Redmine odd numbers is extracted from log, and according to
The odd numbers for extracting obtains the related information of the odd numbers from Redmine, and it can be included but is not limited to:Follow-up tester,
Title, description content.
Alternatively, in step S16, all previous renewal file content that will be associated with record identification be shown to login user it
Afterwards, step performed below can also be included:
Step S17, determines the more new file for updating file content and the second edition of the first version that login user is chosen
Content, wherein, first version is later than the second edition;
Step S18, obtains the difference updated between file content for updating file content and the second edition of first version
Information, and different information is shown.
In a preferred embodiment, support that with Redmine odd numbers be index, not only can quickly consult and Redmine odd numbers
Associated current submission version file content and the preceding different information once submitted between version file content, but also can be with
Quickly consult the current submission version file content that is associated with Redmine odd numbers with once submit to earliest version file content it
Between different information (i.e. application developer realizes the full content of specific function by repeatedly submission).Thus, it is possible to reduce
Communication cost between tester and application developer.In addition, by directly being viewed by index of Redmine odd numbers
The whole different informations associated with the Redmine odd numbers, can reduce operation complexity.
Alternatively, in step S18, the renewal file content for updating file content and the second edition of first version is obtained
Between different information can include step performed below:
Step S180, the file path list being made up of the renewal file content of first version is obtained according to record identification;
Step S181, chooses any file path for not yet traveling through from file path list;
Step S182, the more new file and the renewal file content of the second edition that will be got by the file path chosen
In corresponding file be compared, obtain and the corresponding difference content of file path chosen;
Step S183, judges that whether all traversal is finished for file path list, if do not travel through finished, is returned
Selecting step;If all traversal is finished, by the corresponding difference content composition different information of each file path chosen.
So that tester is tested as an example, tester submits to a leak (bug) singly to program development in Redmine
Personnel, application developer after the mono- code developments of the bug are completed, in submitting all files to the svn warehouses of itself modification to,
And the addition " #bug odd numbers " in daily record (log).The script of svn hook will be arrived actively after finding to have corresponding odd numbers
Follow up the odd numbers on Redmine, and is index search to the related full detail of the odd numbers with the odd numbers, and it can be included but not
It is limited to:Follow-up tester, bug description informations.Then, then by these information it is associated display.
Thus, tester just can view all single code diff information of itself follow-up and search for corresponding list
Number with find application developer submission diff files, consequently facilitating perform white-box testing.
The file content between two different editions is compared below in conjunction with the preferred embodiment shown in Fig. 3 is obtained
The process for taking different information is introduced in detail.
Fig. 3 be the file content between two different editions according to the preferred embodiment of the invention be compared acquisition it is poor
The schematic diagram of different information process.As shown in figure 3, the process can include following operating procedure:
Step S302- step S306, Openid Authority Verifications are carried out to login user, determine only to belong to by credit intermediary
User in the range of white list just allows to log in.
Step S308, fails by Openid Authority Verifications if logged on user, then flow terminates.
Step S310- step S312, after login user successfully passes Openid Authority Verifications, can look into from database
All redmine that the user is distributed in inquiry are mono- and svn of correlation is submitted to and recorded and be displayed in front-end interface.
Step S314- step S316, when user clicks on the diff information for checking specific svn submissions, from database
The relevant information of this svn submissions is read, it can be included but is not limited to:File path, submission personnel, log.
Step S318, obtains the file path list that svn is submitted to.
Step S320, chooses any one file path for not yet traveling through from file path list.
Step S322, can obtain current submission between version and preceding once submission version from svn warehouses in real time
Diff information.Continue executing with step S326.
Step S324, if user click on choose be the current submission version that is associated with the redmine odd numbers with it is earliest
Once submit the comparing result between version to, then can obtain current submission version from svn warehouses in real time and once carry earliest
Hand over the diff information between version.Continue executing with step S326.
Step S326, judges that whether all traversal is finished for file path list, if do not travel through finished, is returned
Step S320;If all traversal is finished, step S328 is continued executing with.
Step S328, front-end interface displaying it is current submit to version and it is preceding once submit version between diff information or
It is current to submit version to and once submit the diff information between version to earliest.Thus the last version submitted to and the can just be combined
Difference between the version once submitted to directly consults whole diff information, submit to each time produced without checking one by one
Diff information.
According to embodiments of the present invention, a kind of embodiment of the display device of file content is additionally provided, Fig. 4 is according to this hair
The structured flowchart of the display device of the file content of bright embodiment, as shown in figure 4, the display device of this document content can be wrapped
Include:Authentication module 10, for carrying out Authority Verification to login user;First acquisition module 20, for passing through power in login user
After limit checking, record identification corresponding with the ID of login user is obtained, wherein, record identification is used to index login user
The renewal file content consulted in version management server;Display module 30, for by associated with record identification it is all previous more
New file content is shown to login user.
Alternatively, Fig. 5 is the structured flowchart of the display device of file content according to the preferred embodiment of the invention, such as Fig. 5
Shown, said apparatus can also include:Second acquisition module 40, for obtaining file update notification message, wherein, file updates
Notification message be local file content is updated and to version management server submit to update file content during
Triggering, local file content is the copy of the respective file of storage in version management server;Processing module 50, for from text
Part update notification message obtains record identification, and sets up corresponding relation in record identification and between updating file content.
Alternatively, processing module 50 can include:First resolution unit (not shown), for file update notification
Message is parsed, and log information is obtained from file update notification message;Second resolution unit (not shown), for right
Log information is parsed, and record identification is obtained from log information.
Alternatively, as shown in figure 5, said apparatus can also include:Determining module 60, for determining what login user was chosen
The renewal file content for updating file content and the second edition of first version, wherein, first version is later than the second edition;3rd
Acquisition module 70, the difference letter updated between file content for updating file content and the second edition for obtaining first version
Breath, and different information is shown.
Alternatively, the 3rd acquisition module 70 can include:Acquiring unit (not shown), according to record identification obtain by
The file path list for updating file content composition of first version;Unit (not shown) is chosen, from file path list
It is middle to choose any file path for not yet traveling through;Comparing unit (not shown), will be got by the file path chosen
More new file be compared with corresponding file in the renewal file content of the second edition, obtain and choose file path pair
The difference content answered;Judging unit (not shown), judges whether all traversal is finished for file path list, if do not had
There is traversal to finish, then return and choose unit;If all traversal is finished, by each corresponding difference of file path chosen
Hold composition different information.
The embodiments of the present invention are for illustration only, and the quality of embodiment is not represented.
In the above embodiment of the present invention, the description to each embodiment all emphasizes particularly on different fields, and does not have in certain embodiment
The part of detailed description, may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed technology contents, can be by other
Mode is realized.Wherein, device embodiment described above is only schematical, such as division of described unit, Ke Yiwei
A kind of division of logic function, can there is other dividing mode when actually realizing, such as multiple units or component can combine or
Person is desirably integrated into another system, or some features can be ignored, or does not perform.Another, shown or discussed is mutual
Between coupling or direct-coupling or communication connection can be the INDIRECT COUPLING or communication link of unit or module by some interfaces
Connect, can be electrical or other forms.
The unit that is illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit
The part for showing can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On unit.Some or all of unit therein can be according to the actual needs selected to realize the purpose of this embodiment scheme.
In addition, during each functional unit in each embodiment of the invention can be integrated in a processing unit, it is also possible to
It is that unit is individually physically present, it is also possible to which two or more units are integrated in a unit.Above-mentioned integrated list
Unit can both be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
If the integrated unit is to realize in the form of SFU software functional unit and as independent production marketing or use
When, can store in a computer read/write memory medium.Based on such understanding, technical scheme is substantially
The part for being contributed to prior art in other words or all or part of the technical scheme can be in the form of software products
Embody, the computer software product is stored in a storage medium, including some instructions are used to so that a computer
Equipment (can be personal computer, server or network equipment etc.) perform each embodiment methods described of the invention whole or
Part steps.And foregoing storage medium includes:USB flash disk, read-only storage (ROM, Read-Only Memory), arbitrary access are deposited
Reservoir (RAM, Random Access Memory), mobile hard disk, magnetic disc or CD etc. are various can be with store program codes
Medium.
The above is only the preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art
For member, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications also should
It is considered as protection scope of the present invention.
Claims (10)
1. a kind of display methods of file content, it is characterised in that including:
Authority Verification is carried out to login user;
In the login user by after the Authority Verification, obtaining record mark corresponding with the ID of the login user
Know, wherein, the record identification is used to index the renewal file content that the login user is consulted in version management server;
The all previous renewal file content associated with the record identification is shown to the login user.
2. method according to claim 1, it is characterised in that the login user is carried out the Authority Verification it
Before, also include:
File update notification message is obtained, wherein, the file update notification message is updated to local file content
And to the version management server submit to update file content during trigger, the local file content be the version
The copy of the respective file stored in this management server;
The record identification is obtained from the file update notification message, and in the record identification and the renewal file content
Between set up corresponding relation.
3. method according to claim 2, it is characterised in that obtain the record mark from the file update notification message
Knowledge includes:
The file update notification message is parsed, log information is obtained from the file update notification message;
The log information is parsed, the record identification is obtained from the log information.
4. method according to claim 1, it is characterised in that in all previous more new file that will be associated with the record identification
Content is shown to after the login user, is also included:
Determine the renewal file content for updating file content and the second edition of the first version that the login user is chosen, its
In, the first version is later than the second edition;
The different information updated between file content for updating file content and the second edition of the first version is obtained,
And the different information is shown.
5. method according to claim 4, it is characterised in that obtain the renewal file content of the first version with it is described
The different information between the renewal file content of the second edition includes:
Obtaining step, the file path row being made up of the renewal file content of the first version are obtained according to the record identification
Table;
Selecting step, chooses any file path for not yet traveling through from the file path list;
Comparison step, will be by the renewal file content of the more new file that get of file path chosen and the second edition
In corresponding file be compared, obtain difference content corresponding with the file path of the selection;
Judge step, judge that whether all traversal is finished for the file path list, if do not travel through finished, is returned
The selecting step;If all traversal is finished, the corresponding difference content of each file path chosen is constituted into the difference
Different information.
6. a kind of display device of file content, it is characterised in that including:
Authentication module, for carrying out Authority Verification to login user;
First acquisition module, by after the Authority Verification, the use with the login user is obtained in the login user
Family identifies corresponding record identification, wherein, the record identification is used to index the login user in version management server
The renewal file content of access;
Display module, for all previous renewal file content associated with the record identification to be shown into the login user.
7. device according to claim 6, it is characterised in that described device also includes:
Second acquisition module, for obtaining file update notification message, wherein, the file update notification message is to local
What file content was updated and was triggered during submitting renewal file content to the version management server, it is described local
File content is the copy of the respective file of storage in the version management server;
Processing module, for obtaining the record identification from the file update notification message, and in the record identification and institute
State renewal file content between set up corresponding relation.
8. device according to claim 7, it is characterised in that the processing module includes:
First resolution unit, for being parsed to the file update notification message, from the file update notification message
Obtain log information;
Second resolution unit, for being parsed to the log information, obtains the record identification from the log information.
9. device according to claim 8, it is characterised in that described device also includes:
Determining module, the renewal for updating file content and the second edition for determining the first version that the login user is chosen
File content, wherein, the first version is later than the second edition;
3rd acquisition module, in renewal more new file of the file content with the second edition for obtaining the first version
Different information between appearance, and the different information is shown.
10. device according to claim 9, it is characterised in that the 3rd acquisition module includes:
Acquiring unit, the file path row being made up of the renewal file content of the first version are obtained according to the record identification
Table;
Unit is chosen, any file path for not yet traveling through is chosen from the file path list;
Comparing unit, will be by the renewal file content of the more new file that get of file path chosen and the second edition
In corresponding file be compared, obtain difference content corresponding with the file path of the selection;
Judging unit, judges that whether all traversal is finished for the file path list, if do not travel through finished, is returned
The selection unit;If all traversal is finished, the corresponding difference content of each file path chosen is constituted into the difference
Different information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710074084.7A CN106844730B (en) | 2017-02-10 | 2017-02-10 | Method and device for displaying file content |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710074084.7A CN106844730B (en) | 2017-02-10 | 2017-02-10 | Method and device for displaying file content |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106844730A true CN106844730A (en) | 2017-06-13 |
CN106844730B CN106844730B (en) | 2020-05-05 |
Family
ID=59127308
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710074084.7A Active CN106844730B (en) | 2017-02-10 | 2017-02-10 | Method and device for displaying file content |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106844730B (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107579865A (en) * | 2017-10-18 | 2018-01-12 | 北京奇虎科技有限公司 | Right management method, the apparatus and system of distributed code server |
CN108089984A (en) * | 2017-12-14 | 2018-05-29 | 泰康保险集团股份有限公司 | Implementation method, device, storage medium and the electronic equipment of code review |
CN108959232A (en) * | 2018-07-28 | 2018-12-07 | 万翼科技有限公司 | Generation method, device and the computer readable storage medium of Plan rescheduling report |
CN109783128A (en) * | 2018-12-13 | 2019-05-21 | 平安普惠企业管理有限公司 | Code change notification method, equipment, storage medium and device |
CN109814849A (en) * | 2017-11-20 | 2019-05-28 | 迈普通信技术股份有限公司 | Information synchronization method and device |
CN109815646A (en) * | 2019-01-30 | 2019-05-28 | 上海易点时空网络有限公司 | Code administration method and device |
CN111104151A (en) * | 2019-11-26 | 2020-05-05 | 深圳市华卓智能科技有限公司 | Shell script-based Git code simplification management method |
CN113553262A (en) * | 2021-07-22 | 2021-10-26 | 网易(杭州)网络有限公司 | Code auditing method and device, electronic equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102469074A (en) * | 2010-11-03 | 2012-05-23 | 腾讯科技(深圳)有限公司 | Method and system for accessing website |
CN104090776A (en) * | 2014-07-24 | 2014-10-08 | 北京全路通信信号研究设计院有限公司 | Software development method and system |
CN104809019A (en) * | 2015-05-19 | 2015-07-29 | 郑州悉知信息技术有限公司 | Web page code publishing method and system |
CN105608011A (en) * | 2016-03-01 | 2016-05-25 | 网易(杭州)网络有限公司 | Determination method and device for code testing coverage rate statistical results |
-
2017
- 2017-02-10 CN CN201710074084.7A patent/CN106844730B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102469074A (en) * | 2010-11-03 | 2012-05-23 | 腾讯科技(深圳)有限公司 | Method and system for accessing website |
CN104090776A (en) * | 2014-07-24 | 2014-10-08 | 北京全路通信信号研究设计院有限公司 | Software development method and system |
CN104809019A (en) * | 2015-05-19 | 2015-07-29 | 郑州悉知信息技术有限公司 | Web page code publishing method and system |
CN105608011A (en) * | 2016-03-01 | 2016-05-25 | 网易(杭州)网络有限公司 | Determination method and device for code testing coverage rate statistical results |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107579865A (en) * | 2017-10-18 | 2018-01-12 | 北京奇虎科技有限公司 | Right management method, the apparatus and system of distributed code server |
CN109814849A (en) * | 2017-11-20 | 2019-05-28 | 迈普通信技术股份有限公司 | Information synchronization method and device |
CN108089984A (en) * | 2017-12-14 | 2018-05-29 | 泰康保险集团股份有限公司 | Implementation method, device, storage medium and the electronic equipment of code review |
CN108959232A (en) * | 2018-07-28 | 2018-12-07 | 万翼科技有限公司 | Generation method, device and the computer readable storage medium of Plan rescheduling report |
CN109783128A (en) * | 2018-12-13 | 2019-05-21 | 平安普惠企业管理有限公司 | Code change notification method, equipment, storage medium and device |
CN109815646A (en) * | 2019-01-30 | 2019-05-28 | 上海易点时空网络有限公司 | Code administration method and device |
CN111104151A (en) * | 2019-11-26 | 2020-05-05 | 深圳市华卓智能科技有限公司 | Shell script-based Git code simplification management method |
CN111104151B (en) * | 2019-11-26 | 2023-02-28 | 深圳市华卓智能科技有限公司 | Shell script-based Git code simplification management method |
CN113553262A (en) * | 2021-07-22 | 2021-10-26 | 网易(杭州)网络有限公司 | Code auditing method and device, electronic equipment and storage medium |
CN113553262B (en) * | 2021-07-22 | 2023-08-11 | 网易(杭州)网络有限公司 | Code auditing method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN106844730B (en) | 2020-05-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106844730A (en) | The display methods and device of file content | |
Avgeriou et al. | An overview and comparison of technical debt measurement tools | |
US8151248B1 (en) | Method and system for software defect management | |
CN101283353B (en) | The system and method for relevant documentation is found by analyzing tags | |
CN100409185C (en) | Introductory operation support system for integrated business software | |
US20070094268A1 (en) | Broadband centralized transportation communication vehicle for extracting transportation topics of information and monitoring terrorist data | |
CN102947819A (en) | Information tracking system and method | |
CN103678446B (en) | Improved mode map based on Data View and database table | |
CN109614312A (en) | Method for generating test case, device, electronic equipment and storage medium | |
Maemura et al. | Organizational assessment frameworks for digital preservation: A literature review and mapping | |
CN109783543A (en) | Data query method, apparatus, equipment and storage medium | |
CN112433941B (en) | Test analysis method, device, equipment and storage medium | |
Gelle et al. | Information quality for strategic technology planning | |
CN115438984A (en) | AI-based big data processing method and server | |
Ali et al. | A hybrid DevOps process supporting software reuse: A pilot project | |
US20180260820A1 (en) | System device and process for an educational regulatory electronic tool kit | |
US11442995B2 (en) | Filtering of log search results based on automated analysis | |
Moore et al. | The role of participatory scenarios in ecological restoration: a systematic map protocol | |
CN116719817B (en) | Digital object relationship tracing method and system for technological resources | |
CN101546343A (en) | Method, device and system for matching the colors of probes | |
CN110276593A (en) | Object recommendation method, apparatus, server and storage medium | |
US6687652B2 (en) | Diagnostic clearing house | |
CN110502675B (en) | Voice dialing user classification method based on data analysis and related equipment | |
CN112685389A (en) | Data management method, data management device, electronic device, and storage medium | |
CN105930329A (en) | Transaction log analysis method and apparatus |
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 |