From 181c41799c4496fbcbdef7c5a021e23ac5de76bb Mon Sep 17 00:00:00 2001 From: Ahmad Sherif Date: Mon, 31 Jul 2017 07:04:33 +0200 Subject: [PATCH] Add LastCommitIdForPath RPC Closes gitaly#431 --- commit.proto | 12 ++ go/blob.pb.go | 2 + go/commit.pb.go | 231 ++++++++++++++++++-------- ruby/lib/gitaly/commit_pb.rb | 10 ++ ruby/lib/gitaly/commit_services_pb.rb | 1 + 5 files changed, 184 insertions(+), 72 deletions(-) diff --git a/commit.proto b/commit.proto index b2a3907c..275f960a 100644 --- a/commit.proto +++ b/commit.proto @@ -18,6 +18,7 @@ service CommitService { rpc FindAllCommits(FindAllCommitsRequest) returns (stream FindAllCommitsResponse) {}; rpc CommitLanguages(CommitLanguagesRequest) returns (CommitLanguagesResponse) {} rpc RawBlame(RawBlameRequest) returns (stream RawBlameResponse) {} + rpc LastCommitIdForPath(LastCommitIdForPathRequest) returns (LastCommitIdForPathResponse) {} } message CommitStatsRequest { @@ -182,3 +183,14 @@ message RawBlameRequest { message RawBlameResponse { bytes data = 1; } + +message LastCommitIdForPathRequest { + Repository repository = 1; + bytes revision = 2; + bytes path = 3; +} + +message LastCommitIdForPathResponse { + // Empty if not found + string commit_id = 1; +} diff --git a/go/blob.pb.go b/go/blob.pb.go index 9edb7417..3021b7e3 100644 --- a/go/blob.pb.go +++ b/go/blob.pb.go @@ -42,6 +42,8 @@ It has these top-level messages: CommitLanguagesResponse RawBlameRequest RawBlameResponse + LastCommitIdForPathRequest + LastCommitIdForPathResponse CommitDiffRequest CommitDiffResponse CommitDeltaRequest diff --git a/go/commit.pb.go b/go/commit.pb.go index 9a8edcf8..6daa193e 100644 --- a/go/commit.pb.go +++ b/go/commit.pb.go @@ -787,6 +787,55 @@ func (m *RawBlameResponse) GetData() []byte { return nil } +type LastCommitIdForPathRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` + Path []byte `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` +} + +func (m *LastCommitIdForPathRequest) Reset() { *m = LastCommitIdForPathRequest{} } +func (m *LastCommitIdForPathRequest) String() string { return proto.CompactTextString(m) } +func (*LastCommitIdForPathRequest) ProtoMessage() {} +func (*LastCommitIdForPathRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{23} } + +func (m *LastCommitIdForPathRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *LastCommitIdForPathRequest) GetRevision() []byte { + if m != nil { + return m.Revision + } + return nil +} + +func (m *LastCommitIdForPathRequest) GetPath() []byte { + if m != nil { + return m.Path + } + return nil +} + +type LastCommitIdForPathResponse struct { + // Empty if not found + CommitId string `protobuf:"bytes,1,opt,name=commit_id,json=commitId" json:"commit_id,omitempty"` +} + +func (m *LastCommitIdForPathResponse) Reset() { *m = LastCommitIdForPathResponse{} } +func (m *LastCommitIdForPathResponse) String() string { return proto.CompactTextString(m) } +func (*LastCommitIdForPathResponse) ProtoMessage() {} +func (*LastCommitIdForPathResponse) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{24} } + +func (m *LastCommitIdForPathResponse) GetCommitId() string { + if m != nil { + return m.CommitId + } + return "" +} + func init() { proto.RegisterType((*CommitStatsRequest)(nil), "gitaly.CommitStatsRequest") proto.RegisterType((*CommitStatsResponse)(nil), "gitaly.CommitStatsResponse") @@ -812,6 +861,8 @@ func init() { proto.RegisterType((*CommitLanguagesResponse_Language)(nil), "gitaly.CommitLanguagesResponse.Language") proto.RegisterType((*RawBlameRequest)(nil), "gitaly.RawBlameRequest") proto.RegisterType((*RawBlameResponse)(nil), "gitaly.RawBlameResponse") + proto.RegisterType((*LastCommitIdForPathRequest)(nil), "gitaly.LastCommitIdForPathRequest") + proto.RegisterType((*LastCommitIdForPathResponse)(nil), "gitaly.LastCommitIdForPathResponse") proto.RegisterEnum("gitaly.TreeEntryResponse_ObjectType", TreeEntryResponse_ObjectType_name, TreeEntryResponse_ObjectType_value) proto.RegisterEnum("gitaly.TreeEntry_EntryType", TreeEntry_EntryType_name, TreeEntry_EntryType_value) proto.RegisterEnum("gitaly.FindAllCommitsRequest_Order", FindAllCommitsRequest_Order_name, FindAllCommitsRequest_Order_value) @@ -840,6 +891,7 @@ type CommitServiceClient interface { FindAllCommits(ctx context.Context, in *FindAllCommitsRequest, opts ...grpc.CallOption) (CommitService_FindAllCommitsClient, error) CommitLanguages(ctx context.Context, in *CommitLanguagesRequest, opts ...grpc.CallOption) (*CommitLanguagesResponse, error) RawBlame(ctx context.Context, in *RawBlameRequest, opts ...grpc.CallOption) (CommitService_RawBlameClient, error) + LastCommitIdForPath(ctx context.Context, in *LastCommitIdForPathRequest, opts ...grpc.CallOption) (*LastCommitIdForPathResponse, error) } type commitServiceClient struct { @@ -1087,6 +1139,15 @@ func (x *commitServiceRawBlameClient) Recv() (*RawBlameResponse, error) { return m, nil } +func (c *commitServiceClient) LastCommitIdForPath(ctx context.Context, in *LastCommitIdForPathRequest, opts ...grpc.CallOption) (*LastCommitIdForPathResponse, error) { + out := new(LastCommitIdForPathResponse) + err := grpc.Invoke(ctx, "/gitaly.CommitService/LastCommitIdForPath", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // Server API for CommitService service type CommitServiceServer interface { @@ -1102,6 +1163,7 @@ type CommitServiceServer interface { FindAllCommits(*FindAllCommitsRequest, CommitService_FindAllCommitsServer) error CommitLanguages(context.Context, *CommitLanguagesRequest) (*CommitLanguagesResponse, error) RawBlame(*RawBlameRequest, CommitService_RawBlameServer) error + LastCommitIdForPath(context.Context, *LastCommitIdForPathRequest) (*LastCommitIdForPathResponse, error) } func RegisterCommitServiceServer(s *grpc.Server, srv CommitServiceServer) { @@ -1324,6 +1386,24 @@ func (x *commitServiceRawBlameServer) Send(m *RawBlameResponse) error { return x.ServerStream.SendMsg(m) } +func _CommitService_LastCommitIdForPath_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(LastCommitIdForPathRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CommitServiceServer).LastCommitIdForPath(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.CommitService/LastCommitIdForPath", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CommitServiceServer).LastCommitIdForPath(ctx, req.(*LastCommitIdForPathRequest)) + } + return interceptor(ctx, in, info, handler) +} + var _CommitService_serviceDesc = grpc.ServiceDesc{ ServiceName: "gitaly.CommitService", HandlerType: (*CommitServiceServer)(nil), @@ -1348,6 +1428,10 @@ var _CommitService_serviceDesc = grpc.ServiceDesc{ MethodName: "CommitLanguages", Handler: _CommitService_CommitLanguages_Handler, }, + { + MethodName: "LastCommitIdForPath", + Handler: _CommitService_LastCommitIdForPath_Handler, + }, }, Streams: []grpc.StreamDesc{ { @@ -1387,76 +1471,79 @@ var _CommitService_serviceDesc = grpc.ServiceDesc{ func init() { proto.RegisterFile("commit.proto", fileDescriptor1) } var fileDescriptor1 = []byte{ - // 1122 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x57, 0x5d, 0x6f, 0x23, 0x35, - 0x17, 0xee, 0xe4, 0xab, 0xc9, 0x69, 0xde, 0x6e, 0xea, 0x77, 0xcb, 0xa6, 0xd3, 0xdd, 0x6d, 0x65, - 0x3e, 0xd4, 0xd5, 0xa2, 0xb4, 0x0a, 0x42, 0x82, 0x2b, 0xd4, 0x6e, 0xd3, 0x52, 0xe8, 0x6e, 0x90, - 0x1b, 0x89, 0xcb, 0x6a, 0x9a, 0x71, 0x5b, 0xc3, 0xcc, 0x38, 0xcc, 0x38, 0xdd, 0x2d, 0xfc, 0x02, - 0x24, 0xfe, 0x0a, 0x7f, 0x86, 0x7b, 0xc4, 0x3d, 0x3f, 0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8f, 0xcb, 0x9d, 0xd9, 0x39, 0x2f, 0x60, - 0xbd, 0xa8, 0xe5, 0x16, 0x61, 0xe9, 0x03, 0x63, 0x11, 0x96, 0x3f, 0x01, 0x0a, 0xe1, 0x31, 0xb4, - 0x32, 0xd5, 0xb5, 0xc9, 0x9b, 0x15, 0x7b, 0x9b, 0xbc, 0x39, 0x89, 0x56, 0xbb, 0x0c, 0x00, 0xac, - 0x56, 0xa2, 0xad, 0xbc, 0x9c, 0x14, 0x44, 0xda, 0x75, 0xcb, 0x5c, 0xd9, 0x09, 0xbf, 0x84, 0xb5, - 0xdc, 0x3f, 0x0b, 0xe4, 0x16, 0x33, 0x9c, 0xff, 0x53, 0xe3, 0x6e, 0x97, 0xfa, 0xf2, 0xb9, 0x2a, - 0xca, 0x8f, 0xcd, 0x55, 0xa9, 0xc6, 0xd9, 0x5c, 0x95, 0xab, 0x96, 0x3a, 0xe5, 0x08, 0x1e, 0xcc, - 0x54, 0x3b, 0x7a, 0xba, 0x50, 0x06, 0xf4, 0xb6, 0x3b, 0xff, 0x22, 0x13, 0x78, 0x05, 0x1d, 0x42, - 0x33, 0xad, 0x28, 0xf4, 0x28, 0xab, 0xd6, 0x62, 0x69, 0xbb, 0xdd, 0x79, 0x87, 0x05, 0x76, 0xd5, - 0x50, 0x0d, 0xda, 0x27, 0x7f, 0x07, 0x00, 0x00, 0xff, 0xff, 0xfb, 0xdb, 0xf3, 0x6d, 0x45, 0x0e, - 0x00, 0x00, + // 1176 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x57, 0x4f, 0x6f, 0x1b, 0x45, + 0x14, 0xcf, 0xfa, 0x5f, 0xec, 0x17, 0x93, 0x3a, 0xd3, 0x96, 0x3a, 0xeb, 0xb6, 0x89, 0xa6, 0x80, + 0x52, 0x15, 0x39, 0x91, 0x11, 0x12, 0x70, 0x41, 0x49, 0xe3, 0x84, 0x40, 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xce, + 0x1b, 0x32, 0xc0, 0xbe, 0x83, 0xbb, 0x39, 0x89, 0x8a, 0x70, 0xf2, 0x68, 0x0b, 0x75, 0xc4, 0x7d, + 0xf2, 0x56, 0x1f, 0x1b, 0xe3, 0xa2, 0xa2, 0x3a, 0xd8, 0x4f, 0xfe, 0x0d, 0x00, 0x00, 0xff, 0xff, + 0xd7, 0x39, 0xe9, 0x20, 0x66, 0x0f, 0x00, 0x00, } diff --git a/ruby/lib/gitaly/commit_pb.rb b/ruby/lib/gitaly/commit_pb.rb index 05ea1485..3e152ddb 100644 --- a/ruby/lib/gitaly/commit_pb.rb +++ b/ruby/lib/gitaly/commit_pb.rb @@ -130,6 +130,14 @@ Google::Protobuf::DescriptorPool.generated_pool.build do add_message "gitaly.RawBlameResponse" do optional :data, :bytes, 1 end + add_message "gitaly.LastCommitIdForPathRequest" do + optional :repository, :message, 1, "gitaly.Repository" + optional :revision, :bytes, 2 + optional :path, :bytes, 3 + end + add_message "gitaly.LastCommitIdForPathResponse" do + optional :commit_id, :string, 1 + end end module Gitaly @@ -160,4 +168,6 @@ module Gitaly CommitLanguagesResponse::Language = Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CommitLanguagesResponse.Language").msgclass RawBlameRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.RawBlameRequest").msgclass RawBlameResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.RawBlameResponse").msgclass + LastCommitIdForPathRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.LastCommitIdForPathRequest").msgclass + LastCommitIdForPathResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.LastCommitIdForPathResponse").msgclass end diff --git a/ruby/lib/gitaly/commit_services_pb.rb b/ruby/lib/gitaly/commit_services_pb.rb index 35b28b92..461f0bbe 100644 --- a/ruby/lib/gitaly/commit_services_pb.rb +++ b/ruby/lib/gitaly/commit_services_pb.rb @@ -26,6 +26,7 @@ module Gitaly rpc :FindAllCommits, FindAllCommitsRequest, stream(FindAllCommitsResponse) rpc :CommitLanguages, CommitLanguagesRequest, CommitLanguagesResponse rpc :RawBlame, RawBlameRequest, stream(RawBlameResponse) + rpc :LastCommitIdForPath, LastCommitIdForPathRequest, LastCommitIdForPathResponse end Stub = Service.rpc_stub_class -- GitLab