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:
authorRobert Speicher <rspeicher@gmail.com>2019-10-11 21:47:18 +0300
committerZeger-Jan van de Weg <git@zjvandeweg.nl>2019-10-11 21:47:18 +0300
commit03ec905fe603fbfb1ad9b36073c86d0f85b4d6e9 (patch)
tree44bf4c10be123d994b19d5056e09a046903b9983
parent9924772fc6c40102c5a4d5f87484aa9768e2f87f (diff)
Supply an argument to CreateTreeError
This will allow us to see why a cherry pick or revert failed, such as because there was a conflict, or an empty commit.
-rw-r--r--changelogs/unreleased/rs-more-cherry-pick-feedback.yml5
-rw-r--r--internal/service/operations/cherry_pick_test.go5
-rw-r--r--internal/service/operations/revert_test.go5
-rw-r--r--proto/go/gitalypb/operations.pb.go364
-rw-r--r--proto/operations.proto14
-rw-r--r--ruby/lib/gitaly_server/operations_service.rb10
-rw-r--r--ruby/lib/gitlab/git/repository.rb19
-rw-r--r--ruby/proto/gitaly/operations_pb.rb14
8 files changed, 282 insertions, 154 deletions
diff --git a/changelogs/unreleased/rs-more-cherry-pick-feedback.yml b/changelogs/unreleased/rs-more-cherry-pick-feedback.yml
new file mode 100644
index 000000000..dc7e856ed
--- /dev/null
+++ b/changelogs/unreleased/rs-more-cherry-pick-feedback.yml
@@ -0,0 +1,5 @@
+---
+title: Provide specifics about why a cherry-pick or revert has failed
+merge_request: 1543
+author:
+type: changed
diff --git a/internal/service/operations/cherry_pick_test.go b/internal/service/operations/cherry_pick_test.go
index d613f8a49..6cb026769 100644
--- a/internal/service/operations/cherry_pick_test.go
+++ b/internal/service/operations/cherry_pick_test.go
@@ -117,6 +117,8 @@ func TestSuccessfulUserCherryPickRequest(t *testing.T) {
expectedBranchUpdate.CommitId = headCommit.Id
require.Equal(t, expectedBranchUpdate, response.BranchUpdate)
+ require.Empty(t, response.CreateTreeError)
+ require.Empty(t, response.CreateTreeErrorCode)
require.Equal(t, testCase.request.Message, headCommit.Subject)
require.Equal(t, masterHeadCommit.Id, headCommit.ParentIds[0])
})
@@ -351,7 +353,8 @@ func TestFailedUserCherryPickRequestDueToCreateTreeError(t *testing.T) {
response, err := client.UserCherryPick(ctx, request)
require.NoError(t, err)
- require.Equal(t, "Gitlab::Git::Repository::CreateTreeError", response.CreateTreeError)
+ require.NotEmpty(t, response.CreateTreeError)
+ require.Equal(t, gitalypb.UserCherryPickResponse_EMPTY, response.CreateTreeErrorCode)
}
func TestFailedUserCherryPickRequestDueToCommitError(t *testing.T) {
diff --git a/internal/service/operations/revert_test.go b/internal/service/operations/revert_test.go
index 93d655f74..6a96c4313 100644
--- a/internal/service/operations/revert_test.go
+++ b/internal/service/operations/revert_test.go
@@ -114,6 +114,8 @@ func TestSuccessfulUserRevertRequest(t *testing.T) {
expectedBranchUpdate.CommitId = headCommit.Id
require.Equal(t, expectedBranchUpdate, response.BranchUpdate)
+ require.Empty(t, response.CreateTreeError)
+ require.Empty(t, response.CreateTreeErrorCode)
require.Equal(t, testCase.request.Message, headCommit.Subject)
require.Equal(t, masterHeadCommit.Id, headCommit.ParentIds[0])
})
@@ -348,7 +350,8 @@ func TestFailedUserRevertRequestDueToCreateTreeError(t *testing.T) {
response, err := client.UserRevert(ctx, request)
require.NoError(t, err)
- require.Equal(t, "Gitlab::Git::Repository::CreateTreeError", response.CreateTreeError)
+ require.NotEmpty(t, response.CreateTreeError)
+ require.Equal(t, gitalypb.UserRevertResponse_CONFLICT, response.CreateTreeErrorCode)
}
func TestFailedUserRevertRequestDueToCommitError(t *testing.T) {
diff --git a/proto/go/gitalypb/operations.pb.go b/proto/go/gitalypb/operations.pb.go
index 089c6ad30..ac358ee14 100644
--- a/proto/go/gitalypb/operations.pb.go
+++ b/proto/go/gitalypb/operations.pb.go
@@ -24,6 +24,62 @@ var _ = math.Inf
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
+type UserCherryPickResponse_CreateTreeError int32
+
+const (
+ UserCherryPickResponse_NONE UserCherryPickResponse_CreateTreeError = 0
+ UserCherryPickResponse_EMPTY UserCherryPickResponse_CreateTreeError = 1
+ UserCherryPickResponse_CONFLICT UserCherryPickResponse_CreateTreeError = 2
+)
+
+var UserCherryPickResponse_CreateTreeError_name = map[int32]string{
+ 0: "NONE",
+ 1: "EMPTY",
+ 2: "CONFLICT",
+}
+
+var UserCherryPickResponse_CreateTreeError_value = map[string]int32{
+ "NONE": 0,
+ "EMPTY": 1,
+ "CONFLICT": 2,
+}
+
+func (x UserCherryPickResponse_CreateTreeError) String() string {
+ return proto.EnumName(UserCherryPickResponse_CreateTreeError_name, int32(x))
+}
+
+func (UserCherryPickResponse_CreateTreeError) EnumDescriptor() ([]byte, []int) {
+ return fileDescriptor_1b4a5877375e491e, []int{18, 0}
+}
+
+type UserRevertResponse_CreateTreeError int32
+
+const (
+ UserRevertResponse_NONE UserRevertResponse_CreateTreeError = 0
+ UserRevertResponse_EMPTY UserRevertResponse_CreateTreeError = 1
+ UserRevertResponse_CONFLICT UserRevertResponse_CreateTreeError = 2
+)
+
+var UserRevertResponse_CreateTreeError_name = map[int32]string{
+ 0: "NONE",
+ 1: "EMPTY",
+ 2: "CONFLICT",
+}
+
+var UserRevertResponse_CreateTreeError_value = map[string]int32{
+ "NONE": 0,
+ "EMPTY": 1,
+ "CONFLICT": 2,
+}
+
+func (x UserRevertResponse_CreateTreeError) String() string {
+ return proto.EnumName(UserRevertResponse_CreateTreeError_name, int32(x))
+}
+
+func (UserRevertResponse_CreateTreeError) EnumDescriptor() ([]byte, []int) {
+ return fileDescriptor_1b4a5877375e491e, []int{20, 0}
+}
+
type UserCommitFilesActionHeader_ActionType int32
const (
@@ -1133,13 +1189,14 @@ func (m *UserCherryPickRequest) GetStartRepository() *Repository {
}
type UserCherryPickResponse struct {
- BranchUpdate *OperationBranchUpdate `protobuf:"bytes,1,opt,name=branch_update,json=branchUpdate,proto3" json:"branch_update,omitempty"`
- CreateTreeError string `protobuf:"bytes,2,opt,name=create_tree_error,json=createTreeError,proto3" json:"create_tree_error,omitempty"`
- CommitError string `protobuf:"bytes,3,opt,name=commit_error,json=commitError,proto3" json:"commit_error,omitempty"`
- PreReceiveError string `protobuf:"bytes,4,opt,name=pre_receive_error,json=preReceiveError,proto3" json:"pre_receive_error,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ BranchUpdate *OperationBranchUpdate `protobuf:"bytes,1,opt,name=branch_update,json=branchUpdate,proto3" json:"branch_update,omitempty"`
+ CreateTreeError string `protobuf:"bytes,2,opt,name=create_tree_error,json=createTreeError,proto3" json:"create_tree_error,omitempty"`
+ CommitError string `protobuf:"bytes,3,opt,name=commit_error,json=commitError,proto3" json:"commit_error,omitempty"`
+ PreReceiveError string `protobuf:"bytes,4,opt,name=pre_receive_error,json=preReceiveError,proto3" json:"pre_receive_error,omitempty"`
+ CreateTreeErrorCode UserCherryPickResponse_CreateTreeError `protobuf:"varint,5,opt,name=create_tree_error_code,json=createTreeErrorCode,proto3,enum=gitaly.UserCherryPickResponse_CreateTreeError" json:"create_tree_error_code,omitempty"`
+ XXX_NoUnkeyedLiteral struct{} `json:"-"`
+ XXX_unrecognized []byte `json:"-"`
+ XXX_sizecache int32 `json:"-"`
}
func (m *UserCherryPickResponse) Reset() { *m = UserCherryPickResponse{} }
@@ -1195,6 +1252,13 @@ func (m *UserCherryPickResponse) GetPreReceiveError() string {
return ""
}
+func (m *UserCherryPickResponse) GetCreateTreeErrorCode() UserCherryPickResponse_CreateTreeError {
+ if m != nil {
+ return m.CreateTreeErrorCode
+ }
+ return UserCherryPickResponse_NONE
+}
+
type UserRevertRequest struct {
Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
User *User `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"`
@@ -1283,13 +1347,14 @@ func (m *UserRevertRequest) GetStartRepository() *Repository {
}
type UserRevertResponse struct {
- BranchUpdate *OperationBranchUpdate `protobuf:"bytes,1,opt,name=branch_update,json=branchUpdate,proto3" json:"branch_update,omitempty"`
- CreateTreeError string `protobuf:"bytes,2,opt,name=create_tree_error,json=createTreeError,proto3" json:"create_tree_error,omitempty"`
- CommitError string `protobuf:"bytes,3,opt,name=commit_error,json=commitError,proto3" json:"commit_error,omitempty"`
- PreReceiveError string `protobuf:"bytes,4,opt,name=pre_receive_error,json=preReceiveError,proto3" json:"pre_receive_error,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ BranchUpdate *OperationBranchUpdate `protobuf:"bytes,1,opt,name=branch_update,json=branchUpdate,proto3" json:"branch_update,omitempty"`
+ CreateTreeError string `protobuf:"bytes,2,opt,name=create_tree_error,json=createTreeError,proto3" json:"create_tree_error,omitempty"`
+ CommitError string `protobuf:"bytes,3,opt,name=commit_error,json=commitError,proto3" json:"commit_error,omitempty"`
+ PreReceiveError string `protobuf:"bytes,4,opt,name=pre_receive_error,json=preReceiveError,proto3" json:"pre_receive_error,omitempty"`
+ CreateTreeErrorCode UserRevertResponse_CreateTreeError `protobuf:"varint,5,opt,name=create_tree_error_code,json=createTreeErrorCode,proto3,enum=gitaly.UserRevertResponse_CreateTreeError" json:"create_tree_error_code,omitempty"`
+ XXX_NoUnkeyedLiteral struct{} `json:"-"`
+ XXX_unrecognized []byte `json:"-"`
+ XXX_sizecache int32 `json:"-"`
}
func (m *UserRevertResponse) Reset() { *m = UserRevertResponse{} }
@@ -1345,6 +1410,13 @@ func (m *UserRevertResponse) GetPreReceiveError() string {
return ""
}
+func (m *UserRevertResponse) GetCreateTreeErrorCode() UserRevertResponse_CreateTreeError {
+ if m != nil {
+ return m.CreateTreeErrorCode
+ }
+ return UserRevertResponse_NONE
+}
+
type UserCommitFilesActionHeader struct {
Action UserCommitFilesActionHeader_ActionType `protobuf:"varint,1,opt,name=action,proto3,enum=gitaly.UserCommitFilesActionHeader_ActionType" json:"action,omitempty"`
FilePath []byte `protobuf:"bytes,2,opt,name=file_path,json=filePath,proto3" json:"file_path,omitempty"`
@@ -2619,6 +2691,8 @@ func (m *UserUpdateSubmoduleResponse) GetCommitError() string {
}
func init() {
+ proto.RegisterEnum("gitaly.UserCherryPickResponse_CreateTreeError", UserCherryPickResponse_CreateTreeError_name, UserCherryPickResponse_CreateTreeError_value)
+ proto.RegisterEnum("gitaly.UserRevertResponse_CreateTreeError", UserRevertResponse_CreateTreeError_name, UserRevertResponse_CreateTreeError_value)
proto.RegisterEnum("gitaly.UserCommitFilesActionHeader_ActionType", UserCommitFilesActionHeader_ActionType_name, UserCommitFilesActionHeader_ActionType_value)
proto.RegisterType((*UserCreateBranchRequest)(nil), "gitaly.UserCreateBranchRequest")
proto.RegisterType((*UserCreateBranchResponse)(nil), "gitaly.UserCreateBranchResponse")
@@ -2663,137 +2737,141 @@ func init() {
func init() { proto.RegisterFile("operations.proto", fileDescriptor_1b4a5877375e491e) }
var fileDescriptor_1b4a5877375e491e = []byte{
- // 2065 bytes of a gzipped FileDescriptorProto
+ // 2139 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x5a, 0xcd, 0x6f, 0x23, 0x49,
- 0x15, 0x4f, 0xdb, 0x8e, 0xe3, 0xbc, 0x38, 0x89, 0x53, 0xbb, 0x3b, 0x9b, 0xf5, 0x4c, 0x48, 0xb6,
- 0x33, 0xc3, 0x64, 0x06, 0xf0, 0x7c, 0x80, 0x40, 0x42, 0x5a, 0xd0, 0x24, 0x71, 0xc8, 0xae, 0x98,
- 0x9d, 0xd0, 0xc9, 0x80, 0xb4, 0x42, 0x34, 0x1d, 0xbb, 0x6c, 0xb7, 0xb0, 0xdd, 0xde, 0xea, 0x76,
+ 0x15, 0x4f, 0xdb, 0x8e, 0xe3, 0xbc, 0x38, 0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8e, 0x55, 0xfe, 0x51, 0xc6, 0x60,
+ 0x23, 0xec, 0xa6, 0x89, 0xe9, 0x8d, 0xdd, 0xbe, 0xc8, 0xb0, 0x5d, 0xb9, 0xf3, 0x01, 0x5c, 0xa9,
+ 0x76, 0x3c, 0x34, 0xd8, 0x41, 0x68, 0xc9, 0x29, 0x17, 0x41, 0xdc, 0x92, 0xc8, 0xbd, 0x6c, 0xdc,
+ 0x92, 0xe8, 0xd5, 0x5b, 0x14, 0x7c, 0x92, 0x87, 0x03, 0x88, 0x2e, 0x4f, 0x9b, 0xdb, 0x74, 0x79,
+ 0xfa, 0xbc, 0x12, 0x95, 0xf7, 0x4d, 0x0c, 0x94, 0x49, 0x17, 0xd5, 0x03, 0x25, 0x31, 0x4d, 0xe8,
+ 0x81, 0x92, 0x6c, 0xbe, 0x71, 0x4f, 0xba, 0xf8, 0xca, 0x14, 0xeb, 0x2a, 0xcc, 0x4c, 0x56, 0xbd,
+ 0x78, 0x8f, 0xad, 0x6c, 0x9e, 0xcb, 0x93, 0x30, 0x65, 0xfb, 0xe1, 0xdb, 0xf2, 0x83, 0x9e, 0x73,
+ 0x52, 0x6d, 0x7a, 0xfd, 0x07, 0xf8, 0xe7, 0x67, 0x3c, 0xd1, 0x79, 0x80, 0x62, 0x1e, 0xa8, 0xff,
+ 0xc5, 0x79, 0xd0, 0xf1, 0xe8, 0xf7, 0xf0, 0xe4, 0x24, 0xaf, 0x48, 0x9f, 0xfd, 0x4f, 0x00, 0x00,
+ 0x00, 0xff, 0xff, 0x81, 0xd4, 0x1b, 0xc8, 0xc8, 0x23, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
diff --git a/proto/operations.proto b/proto/operations.proto
index 681b0b075..7504efe4b 100644
--- a/proto/operations.proto
+++ b/proto/operations.proto
@@ -243,10 +243,17 @@ message UserCherryPickRequest {
}
message UserCherryPickResponse {
+ enum CreateTreeError {
+ NONE = 0;
+ EMPTY = 1;
+ CONFLICT = 2;
+ }
+
OperationBranchUpdate branch_update = 1;
string create_tree_error = 2;
string commit_error = 3;
string pre_receive_error = 4;
+ CreateTreeError create_tree_error_code = 5;
}
message UserRevertRequest {
@@ -260,10 +267,17 @@ message UserRevertRequest {
}
message UserRevertResponse {
+ enum CreateTreeError {
+ NONE = 0;
+ EMPTY = 1;
+ CONFLICT = 2;
+ }
+
OperationBranchUpdate branch_update = 1;
string create_tree_error = 2;
string commit_error = 3;
string pre_receive_error = 4;
+ CreateTreeError create_tree_error_code = 5;
}
message UserCommitFilesActionHeader {
diff --git a/ruby/lib/gitaly_server/operations_service.rb b/ruby/lib/gitaly_server/operations_service.rb
index f9538e5e2..3079dda49 100644
--- a/ruby/lib/gitaly_server/operations_service.rb
+++ b/ruby/lib/gitaly_server/operations_service.rb
@@ -169,7 +169,10 @@ module GitalyServer
branch_update = branch_update_result(result)
Gitaly::UserCherryPickResponse.new(branch_update: branch_update)
rescue Gitlab::Git::Repository::CreateTreeError => e
- Gitaly::UserCherryPickResponse.new(create_tree_error: set_utf8!(e.message))
+ Gitaly::UserCherryPickResponse.new(
+ create_tree_error: set_utf8!(e.message),
+ create_tree_error_code: e.error.upcase
+ )
rescue Gitlab::Git::CommitError => e
Gitaly::UserCherryPickResponse.new(commit_error: set_utf8!(e.message))
rescue Gitlab::Git::PreReceiveError => e
@@ -194,7 +197,10 @@ module GitalyServer
branch_update = branch_update_result(result)
Gitaly::UserRevertResponse.new(branch_update: branch_update)
rescue Gitlab::Git::Repository::CreateTreeError => e
- Gitaly::UserRevertResponse.new(create_tree_error: set_utf8!(e.message))
+ Gitaly::UserRevertResponse.new(
+ create_tree_error: set_utf8!(e.message),
+ create_tree_error_code: e.error.upcase
+ )
rescue Gitlab::Git::CommitError => e
Gitaly::UserRevertResponse.new(commit_error: set_utf8!(e.message))
rescue Gitlab::Git::PreReceiveError => e
diff --git a/ruby/lib/gitlab/git/repository.rb b/ruby/lib/gitlab/git/repository.rb
index e95769be9..a8c1efe5d 100644
--- a/ruby/lib/gitlab/git/repository.rb
+++ b/ruby/lib/gitlab/git/repository.rb
@@ -32,9 +32,16 @@ module Gitlab
InvalidRef = Class.new(StandardError)
GitError = Class.new(StandardError)
DeleteBranchError = Class.new(StandardError)
- CreateTreeError = Class.new(StandardError)
TagExistsError = Class.new(StandardError)
+ class CreateTreeError < StandardError
+ attr_reader :error
+
+ def initialize(error)
+ @error = error
+ end
+ end
+
class << self
def from_gitaly(gitaly_repository, call)
new(
@@ -320,7 +327,6 @@ module Gitlab
) do |start_commit|
revert_tree_id = check_revert_content(commit, start_commit.sha)
- raise CreateTreeError unless revert_tree_id
committer = user_to_committer(user)
@@ -777,10 +783,10 @@ module Gitlab
args << { mainline: 1 } if target_commit.merge_commit?
revert_index = rugged.revert_commit(*args)
- return false if revert_index.conflicts?
+ raise CreateTreeError, :conflict if revert_index.conflicts?
tree_id = revert_index.write_tree(rugged)
- return false unless diff_exists?(source_sha, tree_id)
+ raise CreateTreeError, :empty unless diff_exists?(source_sha, tree_id)
tree_id
end
@@ -818,7 +824,6 @@ module Gitlab
) do |start_commit|
cherry_pick_tree_id = check_cherry_pick_content(commit, start_commit.sha)
- raise CreateTreeError unless cherry_pick_tree_id
committer = user_to_committer(user)
@@ -839,10 +844,10 @@ module Gitlab
args << 1 if target_commit.merge_commit?
cherry_pick_index = rugged.cherrypick_commit(*args)
- return false if cherry_pick_index.conflicts?
+ raise CreateTreeError, :conflict if cherry_pick_index.conflicts?
tree_id = cherry_pick_index.write_tree(rugged)
- return false unless diff_exists?(source_sha, tree_id)
+ raise CreateTreeError, :empty unless diff_exists?(source_sha, tree_id)
tree_id
end
diff --git a/ruby/proto/gitaly/operations_pb.rb b/ruby/proto/gitaly/operations_pb.rb
index 2c265f8ee..7383511f5 100644
--- a/ruby/proto/gitaly/operations_pb.rb
+++ b/ruby/proto/gitaly/operations_pb.rb
@@ -108,6 +108,12 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
optional :create_tree_error, :string, 2
optional :commit_error, :string, 3
optional :pre_receive_error, :string, 4
+ optional :create_tree_error_code, :enum, 5, "gitaly.UserCherryPickResponse.CreateTreeError"
+ end
+ add_enum "gitaly.UserCherryPickResponse.CreateTreeError" do
+ value :NONE, 0
+ value :EMPTY, 1
+ value :CONFLICT, 2
end
add_message "gitaly.UserRevertRequest" do
optional :repository, :message, 1, "gitaly.Repository"
@@ -123,6 +129,12 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
optional :create_tree_error, :string, 2
optional :commit_error, :string, 3
optional :pre_receive_error, :string, 4
+ optional :create_tree_error_code, :enum, 5, "gitaly.UserRevertResponse.CreateTreeError"
+ end
+ add_enum "gitaly.UserRevertResponse.CreateTreeError" do
+ value :NONE, 0
+ value :EMPTY, 1
+ value :CONFLICT, 2
end
add_message "gitaly.UserCommitFilesActionHeader" do
optional :action, :enum, 1, "gitaly.UserCommitFilesActionHeader.ActionType"
@@ -269,8 +281,10 @@ module Gitaly
UserFFBranchResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserFFBranchResponse").msgclass
UserCherryPickRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserCherryPickRequest").msgclass
UserCherryPickResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserCherryPickResponse").msgclass
+ UserCherryPickResponse::CreateTreeError = Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserCherryPickResponse.CreateTreeError").enummodule
UserRevertRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserRevertRequest").msgclass
UserRevertResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserRevertResponse").msgclass
+ UserRevertResponse::CreateTreeError = Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserRevertResponse.CreateTreeError").enummodule
UserCommitFilesActionHeader = Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserCommitFilesActionHeader").msgclass
UserCommitFilesActionHeader::ActionType = Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserCommitFilesActionHeader.ActionType").enummodule
UserCommitFilesAction = Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserCommitFilesAction").msgclass