gitaly 15.6.0.pre.rc3 → 15.8.0.pre.rc1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 772e2e42038fb06b25beb3e3bef80daf59e350f4409ddc0ec4091c7fe67757bd
4
- data.tar.gz: 1d5a6b6e6c9a9dc96032a086df7a21d48cdd0fdea848a31be116f287bbb280c3
3
+ metadata.gz: '08b62d0be69384cefb00c5d2e07de5e71a766620ac0f681ad175944910df48a6'
4
+ data.tar.gz: 67f0a288bbf1b193f9a9786925354e0fcf2602d50af84149af15f126bb1bf169
5
5
  SHA512:
6
- metadata.gz: 2d0d468db91b14a8efe4c708d6bd0046c214b76289c6ce47e17f7b57631137aa64027225418e08bd2ff373ffc2f0e838134e0b7b15eed26476eac9d836df16b4
7
- data.tar.gz: d9603f499553f45532f389f535eca159be65e18b36020cd68bf4cdbd12f80b3721f5f7aa1fd8af2ec3b1e54972df2ac3393db35211d59831bbbdc786241b9154
6
+ metadata.gz: 7c91276bf03746293d24a6e6ab191db1f16a7d9aa761656a0db030b9a04c48b20c50aa52ba4e801c40ca324c770b651ff116d860fac41463e9043bab924fd69e
7
+ data.tar.gz: b14b7d6662bd4b47f968ccc5b59de53bdfd8498ab8eea0863d555b95df33bd5e8c936507d423fe094103fd36c6f2baf954e62e52f6810bc3055e5d5d845ae953
@@ -215,7 +215,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
215
215
  optional :name, :string, 1
216
216
  optional :share, :float, 2
217
217
  optional :color, :string, 3
218
- optional :file_count, :uint32, 4
219
218
  optional :bytes, :uint64, 5
220
219
  end
221
220
  add_message "gitaly.RawBlameRequest" do
@@ -23,6 +23,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
23
23
  optional :safe_max_lines, :int32, 12
24
24
  optional :safe_max_bytes, :int32, 13
25
25
  optional :diff_mode, :enum, 15, "gitaly.CommitDiffRequest.DiffMode"
26
+ map :max_patch_bytes_for_file_extension, :string, :int32, 16
26
27
  end
27
28
  add_enum "gitaly.CommitDiffRequest.DiffMode" do
28
29
  value :DEFAULT, 0
@@ -124,6 +125,14 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
124
125
  value :TYPE_CHANGE, 3
125
126
  value :COPIED, 4
126
127
  end
128
+ add_message "gitaly.GetPatchIDRequest" do
129
+ optional :repository, :message, 1, "gitaly.Repository"
130
+ optional :old_revision, :bytes, 2
131
+ optional :new_revision, :bytes, 3
132
+ end
133
+ add_message "gitaly.GetPatchIDResponse" do
134
+ optional :patch_id, :string, 1
135
+ end
127
136
  end
128
137
  end
129
138
 
@@ -148,4 +157,6 @@ module Gitaly
148
157
  FindChangedPathsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindChangedPathsResponse").msgclass
149
158
  ChangedPaths = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ChangedPaths").msgclass
150
159
  ChangedPaths::Status = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ChangedPaths.Status").enummodule
160
+ GetPatchIDRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetPatchIDRequest").msgclass
161
+ GetPatchIDResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetPatchIDResponse").msgclass
151
162
  end
@@ -28,6 +28,11 @@ module Gitaly
28
28
  rpc :DiffStats, ::Gitaly::DiffStatsRequest, stream(::Gitaly::DiffStatsResponse)
29
29
  # Return a list of files changed along with the status of each file
30
30
  rpc :FindChangedPaths, ::Gitaly::FindChangedPathsRequest, stream(::Gitaly::FindChangedPathsResponse)
31
+ # GetPatchID computes a patch ID for a patch. Patch IDs are a unique ID computed by hashing
32
+ # a patch with some parameters like line numbers ignored. The patch ID can thus be used to compare
33
+ # whether diffs make the same change. Please refer to git-patch-id(1) for further information.
34
+ # If the difference between old and new change is empty then this RPC returns an error.
35
+ rpc :GetPatchID, ::Gitaly::GetPatchIDRequest, ::Gitaly::GetPatchIDResponse
31
36
  end
32
37
 
33
38
  Stub = Service.rpc_stub_class
@@ -6,10 +6,27 @@ require 'objectpool_pb'
6
6
 
7
7
  module Gitaly
8
8
  module ObjectPoolService
9
- # ObjectPoolService is a service containing RPCs to manipulate object pools.
10
- # An object pool is a separate repository that can be linked to from multiple
11
- # satellite repositories in order to deduplicate common objects between them.
12
- # This is mostly used in the contexet of repository forks.
9
+ # ObjectPoolService is a service that manages the lifetime of object pools.
10
+ #
11
+ # An object pool is a separate repository that can be linked to from multiple object pool members
12
+ # in order to deduplicate common objects between them. This is mostly used in the context of
13
+ # repository forks.
14
+ #
15
+ # The typical lifetime of an object pool is as follows:
16
+ #
17
+ # 1. An object pool is created via CreateObjectPool from its primary pool member. Typically this
18
+ # would be the repository that gets forked.
19
+ # 2. One or more repositories are linked to the object pool via LinkRepositoryToObjectPool. Each
20
+ # object pool member linked to the repository will have its objects deduplicated when its
21
+ # objects get repacked the next time.
22
+ # 3. The object pool is regularly updated via FetchIntoObjectPool. This is typically only done from
23
+ # the primary object pool member.
24
+ # 4. Repositories may leave the object pool via DisconnectGitAlternates. There is not much of a
25
+ # reason to do this for any repositories except for the primary object pool member in case it
26
+ # for example becomes private.
27
+ # 5. When the object pool does not have any members anymore it gets deleted via DeleteObjectPool.
28
+ # It is the responsibility of the caller to ensure that it really has no members left, else
29
+ # any existing member will become corrupt.
13
30
  class Service
14
31
 
15
32
  include ::GRPC::GenericService
@@ -18,22 +35,47 @@ module Gitaly
18
35
  self.unmarshal_class_method = :decode
19
36
  self.service_name = 'gitaly.ObjectPoolService'
20
37
 
21
- # This comment is left unintentionally blank.
38
+ # CreateObjectPool creates an object pool from a specific source repository. It will create the
39
+ # object pool by cloning all contents from that source repository. The source repository will not
40
+ # automatically be linked to the object pool, you need to call LinkRepositoryToObjectPool for
41
+ # this. If the object pool exists already this RPC returns an error with the FailedPrecondition
42
+ # gRPC error code.
22
43
  rpc :CreateObjectPool, ::Gitaly::CreateObjectPoolRequest, ::Gitaly::CreateObjectPoolResponse
23
- # This comment is left unintentionally blank.
44
+ # DeleteObjectPool deletes the object pool. There are no safety checks in place, so if any
45
+ # repository is still using this object pool it will become corrupted.
24
46
  rpc :DeleteObjectPool, ::Gitaly::DeleteObjectPoolRequest, ::Gitaly::DeleteObjectPoolResponse
25
- # Repositories are assumed to be stored on the same disk
47
+ # LinkRepositoryToObjectPool links the specified repository to the object pool. Objects contained
48
+ # in the object pool will be deduplicated for this repository when repacking objects.
26
49
  rpc :LinkRepositoryToObjectPool, ::Gitaly::LinkRepositoryToObjectPoolRequest, ::Gitaly::LinkRepositoryToObjectPoolResponse
27
- # This comment is left unintentionally blank.
50
+ # ReduplicateRepository will repack the objects in the object pool member so that the repository
51
+ # does not depend on the pool member anymore and can be removed from it. Note that this function
52
+ # is not safe for use.
53
+ #
54
+ # This RPC is deprecated. Please use DisconnectGitAlternates instead. It will be removed in
55
+ # Gitaly v16.0, refer to https://gitlab.com/gitlab-org/gitaly/-/issues/4655.
28
56
  rpc :ReduplicateRepository, ::Gitaly::ReduplicateRepositoryRequest, ::Gitaly::ReduplicateRepositoryResponse
29
- # This comment is left unintentionally blank.
57
+ # DisconnectGitAlternates will disconnect the object pool member from its object pool. It will:
58
+ #
59
+ # 1. Link all objects from the object pool into the member repository. This essenitally
60
+ # reduplicates previously-duplicated objects so that the repository will continue to function
61
+ # after being unlinked.
62
+ # 2. Remove the alternates link to the object pool.
63
+ # 3. Perform a consistency check to assert that the repository is indeed fully functional after
64
+ # unlinking it from its pool. If the consistency check fails the alternates link is restored
65
+ # an the RPC fails.
66
+ #
67
+ # If successful, the object pool member is disconnected from the object pool and does not depend
68
+ # on it anymore.
69
+ #
70
+ # This RPC does not return an error in case the repository is not linked to any object pool.
30
71
  rpc :DisconnectGitAlternates, ::Gitaly::DisconnectGitAlternatesRequest, ::Gitaly::DisconnectGitAlternatesResponse
31
72
  # FetchIntoObjectPool fetches all references from a pool member into an object pool so that
32
73
  # objects shared between this repository and other pool members can be deduplicated. This RPC
33
74
  # will perform housekeeping tasks after the object pool has been updated to ensure that the pool
34
75
  # is in an optimal state.
35
76
  rpc :FetchIntoObjectPool, ::Gitaly::FetchIntoObjectPoolRequest, ::Gitaly::FetchIntoObjectPoolResponse
36
- # This comment is left unintentionally blank.
77
+ # GetObjectPool returns the object pool a repository is connected to. If the repository is not
78
+ # connected to a pool then this RPC returns successfully with an empty response.
37
79
  rpc :GetObjectPool, ::Gitaly::GetObjectPoolRequest, ::Gitaly::GetObjectPoolResponse
38
80
  end
39
81
 
@@ -17,9 +17,13 @@ module Gitaly
17
17
 
18
18
  # This comment is left unintentionally blank.
19
19
  rpc :FindDefaultBranchName, ::Gitaly::FindDefaultBranchNameRequest, ::Gitaly::FindDefaultBranchNameResponse
20
- # This comment is left unintentionally blank.
20
+ # FindAllBranchNames is deprecated in favor of ListRefs
21
+ #
22
+ # https://gitlab.com/gitlab-org/gitaly/-/issues/3966
21
23
  rpc :FindAllBranchNames, ::Gitaly::FindAllBranchNamesRequest, stream(::Gitaly::FindAllBranchNamesResponse)
22
- # This comment is left unintentionally blank.
24
+ # FindAllTagNames is deprecated in favor of ListRefs
25
+ #
26
+ # https://gitlab.com/gitlab-org/gitaly/-/issues/3966
23
27
  rpc :FindAllTagNames, ::Gitaly::FindAllTagNamesRequest, stream(::Gitaly::FindAllTagNamesResponse)
24
28
  # Return a stream so we can divide the response in chunks of branches
25
29
  rpc :FindLocalBranches, ::Gitaly::FindLocalBranchesRequest, stream(::Gitaly::FindLocalBranchesResponse)
@@ -86,6 +86,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
86
86
  add_message "gitaly.CreateRepositoryRequest" do
87
87
  optional :repository, :message, 1, "gitaly.Repository"
88
88
  optional :default_branch, :bytes, 2
89
+ optional :object_format, :enum, 3, "gitaly.ObjectFormat"
89
90
  end
90
91
  add_message "gitaly.CreateRepositoryResponse" do
91
92
  end
@@ -43,7 +43,8 @@ module Gitaly
43
43
  # FetchSourceBranch fetches a branch from a second (potentially remote)
44
44
  # repository into the given repository.
45
45
  rpc :FetchSourceBranch, ::Gitaly::FetchSourceBranchRequest, ::Gitaly::FetchSourceBranchResponse
46
- # This comment is left unintentionally blank.
46
+ # Fsck checks the repository for consistency via git-fsck(1). This can be used to check for
47
+ # repository corruption.
47
48
  rpc :Fsck, ::Gitaly::FsckRequest, ::Gitaly::FsckResponse
48
49
  # This comment is left unintentionally blank.
49
50
  rpc :WriteRef, ::Gitaly::WriteRefRequest, ::Gitaly::WriteRefResponse
@@ -67,7 +68,8 @@ module Gitaly
67
68
  # GetConfig reads the target repository's gitconfig and streams its contents
68
69
  # back. Returns a NotFound error in case no gitconfig was found.
69
70
  rpc :GetConfig, ::Gitaly::GetConfigRequest, stream(::Gitaly::GetConfigResponse)
70
- # This comment is left unintentionally blank.
71
+ # FindLicense looks in the given repository and attempts to detect all the
72
+ # details about the license used in the repository.
71
73
  rpc :FindLicense, ::Gitaly::FindLicenseRequest, ::Gitaly::FindLicenseResponse
72
74
  # This comment is left unintentionally blank.
73
75
  rpc :GetInfoAttributes, ::Gitaly::GetInfoAttributesRequest, stream(::Gitaly::GetInfoAttributesResponse)
@@ -86,6 +86,11 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
86
86
  value :TREE, 3
87
87
  value :TAG, 4
88
88
  end
89
+ add_enum "gitaly.ObjectFormat" do
90
+ value :OBJECT_FORMAT_UNSPECIFIED, 0
91
+ value :OBJECT_FORMAT_SHA1, 1
92
+ value :OBJECT_FORMAT_SHA256, 2
93
+ end
89
94
  add_enum "gitaly.SignatureType" do
90
95
  value :NONE, 0
91
96
  value :PGP, 1
@@ -114,6 +119,7 @@ module Gitaly
114
119
  PaginationCursor = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PaginationCursor").msgclass
115
120
  GlobalOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GlobalOptions").msgclass
116
121
  ObjectType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ObjectType").enummodule
122
+ ObjectFormat = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ObjectFormat").enummodule
117
123
  SignatureType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.SignatureType").enummodule
118
124
  SortDirection = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.SortDirection").enummodule
119
125
  end
@@ -1,4 +1,4 @@
1
1
  # This file is generated by build-proto-gem. Do not edit.
2
2
  module Gitaly
3
- VERSION = '15.6.0-rc3'
3
+ VERSION = '15.8.0-rc1'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitaly
3
3
  version: !ruby/object:Gem::Version
4
- version: 15.6.0.pre.rc3
4
+ version: 15.8.0.pre.rc1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jacob Vosmaer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-11-15 00:00:00.000000000 Z
11
+ date: 2023-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: grpc