主权项 |
1. A method for distributed version control in a multi-region cloud, each region in the multi-region cloud including an instance of a version control service, the method comprising:
receiving an indicator, by a first version control service in a first cloud region of a multi-region cloud, that a document saved in the first cloud region is to be re-versioned; based on the indicator indicating the document saved in the first cloud region is to be re-versioned due to the creation of a new version of the document in the first cloud region:
re-versioning, by the first version control service, the document saved in the first cloud region by saving the created new version of the document in the first cloud region;identifying, by the first version control service, access information to a second version control service in a second cloud region of the multi-region cloud; andtransmitting, by the first version control service to the second version control service, the re-versioned document; and based on the indicator indicating the document saved in the first cloud region is to be re-versioned due to receiving a new version of the document from a second version control service in a second cloud region of the multi-region cloud:
re-versioning, by the first version control service, the document saved in the first cloud region by saving the received new version of the document in the first cloud region. |