Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Cai <jcai@gitlab.com>2019-11-06 02:36:23 +0300
committerJohn Cai <jcai@gitlab.com>2019-11-06 20:10:58 +0300
commit66714427ba70cdb60156050895ae20cb480011a2 (patch)
tree9c172a63e072219d94fa724956b269e7c6e20810 /proto/repository-service.proto
parentd509fbe28c14fe55f3e421e7a8abd56ffd981c5a (diff)
Add ReplicateRepository protocol
Diffstat (limited to 'proto/repository-service.proto')
-rw-r--r--proto/repository-service.proto19
1 files changed, 16 insertions, 3 deletions
diff --git a/proto/repository-service.proto b/proto/repository-service.proto
index b2d556bd9..3032daaf0 100644
--- a/proto/repository-service.proto
+++ b/proto/repository-service.proto
@@ -248,6 +248,12 @@ service RepositoryService {
target_repository_field: "1"
};
}
+ rpc ReplicateRepository(ReplicateRepositoryRequest) returns (ReplicateRepositoryResponse) {
+ option (op_type) = {
+ op: MUTATOR
+ target_repository_field: "1"
+ };
+ }
}
message RepositoryExistsRequest {
@@ -541,16 +547,16 @@ message GetRawChangesResponse {
string blob_id = 1;
int64 size= 2;
-
+
// use fields 9 and 10 in place of 3 and 4 (respectively)
string new_path = 3 [deprecated=true];
string old_path = 4 [deprecated=true];
-
+
Operation operation= 5;
string raw_operation = 6;
int32 old_mode = 7;
int32 new_mode = 8;
-
+
// the following fields, 9 and 10, will eventually replace 3 and 4
bytes new_path_bytes = 9;
bytes old_path_bytes = 10;
@@ -645,3 +651,10 @@ message RenameRepositoryRequest {
message RenameRepositoryResponse{
}
+
+message ReplicateRepositoryRequest {
+ Repository repository = 1;
+ Repository source = 2;
+}
+
+message ReplicateRepositoryResponse{}