System and method for distributed revision control

US10209979B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-10209979-B2
Application numberUS-201514633077-A
CountryUS
Kind codeB2
Filing dateFeb 26, 2015
Priority dateFeb 26, 2015
Publication dateFeb 19, 2019
Grant dateFeb 19, 2019

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

A system and method for distributed revision control includes receiving, by a revision control module being executed by one or more processors of a server, a request to store a first version in a repository, the repository comprising a plurality of stored versions, determining whether the first version is in the repository, incrementing a client reference counter associated with the first version when the first version is in the repository, adding the first version to the repository and sending the first version to one or more additional servers when the first version is not in the repository, and decrementing a server reference counter associated with a second version in the repository when the first version replaces the second version as a head version of the repository.

First claim

Opening claim text (preview).

What is claimed is: 1. A method of revision control, the method comprising: receiving, by a revision control module being executed by one or more processors of a server, a request to store a first version in a repository, the repository comprising a plurality of stored versions; determining whether the first version replaces a second version among the plurality of stored versions as a head version of the repository; and when the first version replaces the second version as the head version: determining an owner of the second version among one or more additional servers; and sending a message to the owner of the second version that requests that the owner decrement a server reference counter associated with the second version, the server reference counter indicating a number of servers using the second version as the head version at a given point in time. 2. The method of claim 1 , further comprising: receiving, from another server, a third version; determining whether the third version is in the repository; and when the third version is not in the repository, adding the third version to the repository. 3. The method of claim 2 , further comprising, when the server is designated as a master server, merging branched versions in the repository, forming a fourth version, and sending the fourth version to the one or more additional servers. 4. The method of claim 1 , further comprising: receiving a request to retrieve a third version from the repository; determining whether the third version is in the repository; and when the third version is in the repository, retrieving the third version from the repository and decrementing a client reference counter associated with the third version. 5. The method of claim 1 , further comprising trimming a first one of the stored versions in the repository when a corresponding client reference counter associated with the first one of the stored versions is below a first predetermined threshold and a corresponding server reference counter associated with the first one of the stored versions is below a second predetermined threshold. 6. The method of claim 5 , wherein trimming the first one of the stored versions comprises computing one or more composite patches based on a patch associated with the first one of the stored versions. 7. The method of claim 5 , wherein sequence metadata associated with the first one of the stored versions indicates that the first one of the stored versions is older than an oldest active stored version, the oldest active stored version being an oldest stored version in the repository that has corresponding client and server reference counters above the first and second predetermined thresholds, respectively. 8. The method of claim 5 , wherein trimming the first one of the stored versions comprises moving the first one of the stored versions from a primary memory to a secondary memory. 9. The method of claim 5 , wherein trimming the first one of the stored versions comprises moving the first one of the stored versions from a primary memory to a secondary memory. 10. The method of claim 1 , further comprising receiving a request to trim a first one of the stored versions in the repository from another server and trimming the first one of the stored versions. 11. The method of claim 1 , wherein the repository comprises version identifiers, version data, sequence metadata, and owner identifiers for each of the plurality of stored versions. 12. The method of claim 11 , further comprising maintaining client and server reference counters for each of the plurality of stored versions that are owned by the server. 13. The method of claim 11 , wherein the version identifiers uniquely identify each of the plurality of stored versions, the version identifiers including hash values of each of the plurality of stored versions. 14. A revision control system comprising: a revision control module executed by one or more processors of a server; and a repository configured to provide access to a plurality of stored versions of a shared document; wherein the revision control module is configured to: receive a request to store a first version in the repository; determine whether the first version replaces a second version as a head version of the repository; and when the first version replaces the second version as the head version: determine an owner of the second version among one or more additional servers; and send a message to the owner of the second version that requests that the owner decrement a server reference counter associated with the second version, the server reference counter indicating a number of servers using the second version as the head version at a given point in time. 15. The revision control system of claim 14 , wherein the revision control module is further configured to: receive, from another server, a third version; determine whether the third version is in the repository; and when the third version is not in the repository, add the third version to the repository. 16. The revision control system of claim 15 , wherein the revision control module is further configured to merge branched versions in the repository to form a fourth version and send the fourth version to the one or more additional servers when the server is designated as a master server. 17. The revision control system of claim 14 , wherein the revision control module is further configured to: receive a request to retrieve a third version from the repository; determine whether the third version is in the repository; and when the third version is in the repository, retrieve the third version from the repository and decrement a client reference counter associated with the third version. 18. The revision control system of claim 14 , further comprising a garbage collection module configured to trim a first one of the stored versions in the repository when a corresponding client reference counter associated with the first one of the stored versions is below a first predetermined threshold and a corresponding server reference counter associated with the first one of the stored versions is below a second predetermined threshold. 19. A non-transitory machine-readable medium comprising a plurality of machine-readable instructions which when executed by one or more processors associated with a server are adapted to cause the one or more processors to perform a method comprising: receiving a request to store a first version in a repository, the repository comprising a plurality of stored versions; determining whether the first version replaces a second version as a head version of the repository; when the first version replaces the second version as the head version, determining an owner of the second version among one or more additional servers and sending a message to the owner of the second version that requests that the owner decrement a server reference counter associated with the second version, the server reference counter indicating a number of servers using the second version as the head version at a given point in time; receiving, from another server, a third version; and when the server is designated as a master server, merging branched versions in the repository based on the third version, forming a fourth version, and sending the fourth version to the one or more additional servers. 20. The non-transitory machine-readable medium of claim 19 , wherein the method further comprises trimming a first one of the stored versions in the repository when a co

Assignees

Inventors

Classifications

  • Versioning file systems, temporal file systems, e.g. file system supporting different historic versions of files · CPC title

  • G06F8/65Primary

    Updates (security arrangements therefor G06F21/57) · CPC title

  • Version control (security arrangements therefor G06F21/57); Configuration management · CPC title

  • Physics · mapped topic

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US10209979B2 cover?
A system and method for distributed revision control includes receiving, by a revision control module being executed by one or more processors of a server, a request to store a first version in a repository, the repository comprising a plurality of stored versions, determining whether the first version is in the repository, incrementing a client reference counter associated with the first versi…
Who is the assignee on this patent?
Red Hat Inc
What technology area does this patent fall under?
Primary CPC classification G06F8/65. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue Feb 19 2019 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 8 related publications on this page (citations in our corpus or others sharing the same primary CPC).