hgitaly 0.31.0 → 1.0.0

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: c137d937c9f427a7fea3d486dfa35a3925dc0128d9519bd798f60a2fb8b3b8c0
4
- data.tar.gz: da96ead0169a5fe0d35e94393c6936da3bfb22892090bd257fffd26b1ee4b866
3
+ metadata.gz: cdfb437f207e85095bc4b4fd8850e40a6c9a7d1ef60acaafccc2a005fe9392c9
4
+ data.tar.gz: abd6bae69590fc2db290eddab7817421c083054d5e657c149137d255f31674f0
5
5
  SHA512:
6
- metadata.gz: dda9bd1db2d1cc30d191777865b3cef2e55b7a31dce2006c741fa742477dff5d20bebbb050ea467aaab7a0b32cf88a1da9ebd172ce427d79181dcebc7c7a728b
7
- data.tar.gz: fd34cbac1951af5aeaaf949d557f02c11f7a5d5336888ddf3bc649762eabc6eb75ed382450c79c4ef81af3f754d32180419270b46e2d8b99c6f61d0551c8bc71
6
+ metadata.gz: 27c00cead3f9814eb863599d84329d9e65c9550fe66d6ab1886d2346f78201426d43f913a7d6f97d43c569bee8686d1eb27675167487bd5ab88596e8c2097d38
7
+ data.tar.gz: 9d5a59d9363ffb0ede4f7f864fea284c72d77141c2593dbc7ec01c4837e926076274ffee6a16f71ac4a1b55967c062587405309a727c02e0e199112007fc1fb7
@@ -18,6 +18,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
18
18
  optional :branch, :bytes, 7
19
19
  optional :topic, :bytes, 8
20
20
  optional :obsolete, :bool, 9
21
+ optional :fqbn, :bytes, 10
22
+ optional :topic_namespace, :bytes, 11
23
+ optional :phase, :enum, 12, "hgitaly.MercurialChangesetPhase"
21
24
  end
22
25
  add_message "hgitaly.ListMercurialChangesetsRequest" do
23
26
  optional :repository, :message, 1, "gitaly.Repository"
@@ -28,6 +31,13 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
28
31
  add_message "hgitaly.ListMercurialChangesetsResponse" do
29
32
  repeated :changesets, :message, 1, "hgitaly.MercurialChangeset"
30
33
  end
34
+ add_enum "hgitaly.MercurialChangesetPhase" do
35
+ value :PUBLIC, 0
36
+ value :DRAFT, 1
37
+ value :SECRET, 2
38
+ value :ARCHIVED, 32
39
+ value :INTERNAL, 96
40
+ end
31
41
  add_enum "hgitaly.MercurialChangesetField" do
32
42
  value :ALL, 0
33
43
  value :PARENT_IDS, 1
@@ -38,6 +48,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
38
48
  value :BRANCH, 6
39
49
  value :TOPIC, 7
40
50
  value :OBSOLETE, 8
51
+ value :FQBN, 9
52
+ value :TOPIC_NAMESPACE, 10
53
+ value :PHASE, 11
41
54
  end
42
55
  add_enum "hgitaly.MercurialRepositoryView" do
43
56
  value :VISIBLE, 0
@@ -50,6 +63,7 @@ module Hgitaly
50
63
  MercurialChangeset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hgitaly.MercurialChangeset").msgclass
51
64
  ListMercurialChangesetsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hgitaly.ListMercurialChangesetsRequest").msgclass
52
65
  ListMercurialChangesetsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hgitaly.ListMercurialChangesetsResponse").msgclass
66
+ MercurialChangesetPhase = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hgitaly.MercurialChangesetPhase").enummodule
53
67
  MercurialChangesetField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hgitaly.MercurialChangesetField").enummodule
54
68
  MercurialRepositoryView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hgitaly.MercurialRepositoryView").enummodule
55
69
  end
@@ -0,0 +1,103 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: mercurial-operations.proto
3
+
4
+ require 'errors_pb'
5
+ require 'lint_pb'
6
+ require 'shared_pb'
7
+ require 'google/protobuf/timestamp_pb'
8
+ require 'operations_pb'
9
+ require 'google/protobuf'
10
+
11
+ Google::Protobuf::DescriptorPool.generated_pool.build do
12
+ add_file("mercurial-operations.proto", :syntax => :proto3) do
13
+ add_message "hgitaly.MergeAnalysisRequest" do
14
+ optional :repository, :message, 1, "gitaly.Repository"
15
+ optional :source_revision, :bytes, 2
16
+ optional :target_revision, :bytes, 3
17
+ optional :skip_conflicts_check, :bool, 4
18
+ end
19
+ add_message "hgitaly.MergeAnalysisResponse" do
20
+ optional :is_fast_forward, :bool, 1
21
+ optional :has_obsolete_changesets, :bool, 2
22
+ optional :has_unstable_changesets, :bool, 3
23
+ optional :has_conflicts, :bool, 4
24
+ optional :target_is_public, :bool, 5
25
+ optional :target_node_id, :string, 6
26
+ optional :target_branch, :bytes, 7
27
+ optional :target_topic, :bytes, 8
28
+ optional :source_node_id, :string, 9
29
+ optional :source_branch, :bytes, 10
30
+ optional :source_topic, :bytes, 11
31
+ end
32
+ add_message "hgitaly.PublishChangesetRequest" do
33
+ optional :repository, :message, 1, "gitaly.Repository"
34
+ optional :user, :message, 2, "gitaly.User"
35
+ optional :hg_perms, :enum, 3, "hgitaly.MercurialPermissions"
36
+ optional :gitlab_revision, :bytes, 4
37
+ end
38
+ add_message "hgitaly.PublishChangesetResponse" do
39
+ end
40
+ add_message "hgitaly.PublishChangesetError" do
41
+ oneof :error do
42
+ optional :gitlab_hook, :message, 1, "gitaly.CustomHookError"
43
+ end
44
+ end
45
+ add_message "hgitaly.MergeBranchRequest" do
46
+ optional :repository, :message, 1, "gitaly.Repository"
47
+ optional :user, :message, 2, "gitaly.User"
48
+ optional :hg_perms, :enum, 3, "hgitaly.MercurialPermissions"
49
+ optional :commit_id, :string, 4
50
+ optional :branch, :bytes, 5
51
+ optional :message, :bytes, 6
52
+ optional :timestamp, :message, 7, "google.protobuf.Timestamp"
53
+ optional :expected_old_oid, :string, 8
54
+ optional :semi_linear, :bool, 9
55
+ end
56
+ add_message "hgitaly.MergeBranchResponse" do
57
+ optional :branch_update, :message, 1, "gitaly.OperationBranchUpdate"
58
+ end
59
+ add_message "hgitaly.MergeBranchError" do
60
+ oneof :error do
61
+ optional :gitlab_hook, :message, 1, "gitaly.CustomHookError"
62
+ optional :conflict, :message, 2, "gitaly.MergeConflictError"
63
+ optional :reference_check, :message, 3, "gitaly.ReferenceUpdateError"
64
+ optional :pre_check, :enum, 4, "hgitaly.PreCheckUpdateError"
65
+ end
66
+ end
67
+ add_message "hgitaly.CensorRequest" do
68
+ optional :repository, :message, 1, "gitaly.Repository"
69
+ optional :user, :message, 2, "gitaly.User"
70
+ optional :changeset_node_id, :string, 3
71
+ optional :file_path, :bytes, 4
72
+ optional :tombstone, :bytes, 5
73
+ end
74
+ add_message "hgitaly.CensorResponse" do
75
+ end
76
+ add_enum "hgitaly.MercurialPermissions" do
77
+ value :READ, 0
78
+ value :WRITE, 1
79
+ value :PUBLISH, 2
80
+ end
81
+ add_enum "hgitaly.PreCheckUpdateError" do
82
+ value :NO_PROBLEM, 0
83
+ value :NOT_FAST_FORWARD, 1
84
+ value :OBSOLETE_CHANGESET, 2
85
+ value :UNSTABLE_CHANGESET, 3
86
+ end
87
+ end
88
+ end
89
+
90
+ module Hgitaly
91
+ MergeAnalysisRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hgitaly.MergeAnalysisRequest").msgclass
92
+ MergeAnalysisResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hgitaly.MergeAnalysisResponse").msgclass
93
+ PublishChangesetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hgitaly.PublishChangesetRequest").msgclass
94
+ PublishChangesetResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hgitaly.PublishChangesetResponse").msgclass
95
+ PublishChangesetError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hgitaly.PublishChangesetError").msgclass
96
+ MergeBranchRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hgitaly.MergeBranchRequest").msgclass
97
+ MergeBranchResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hgitaly.MergeBranchResponse").msgclass
98
+ MergeBranchError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hgitaly.MergeBranchError").msgclass
99
+ CensorRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hgitaly.CensorRequest").msgclass
100
+ CensorResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hgitaly.CensorResponse").msgclass
101
+ MercurialPermissions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hgitaly.MercurialPermissions").enummodule
102
+ PreCheckUpdateError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hgitaly.PreCheckUpdateError").enummodule
103
+ end
@@ -0,0 +1,39 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: mercurial-operations.proto for package 'hgitaly'
3
+
4
+ require 'grpc'
5
+ require 'mercurial-operations_pb'
6
+
7
+ module Hgitaly
8
+ module MercurialOperationsService
9
+ class Service
10
+
11
+ include ::GRPC::GenericService
12
+
13
+ self.marshal_class_method = :encode
14
+ self.unmarshal_class_method = :decode
15
+ self.service_name = 'hgitaly.MercurialOperationsService'
16
+
17
+ # Provide all information for a possible merge
18
+ #
19
+ # Will be used in mergeability checks and last-minute checks if needed.
20
+ rpc :MergeAnalysis, ::Hgitaly::MergeAnalysisRequest, ::Hgitaly::MergeAnalysisResponse
21
+ # Publish a changeset
22
+ #
23
+ # As any publication in Mercurial, it also publishes all ancestors that
24
+ # were not already public.
25
+ rpc :PublishChangeset, ::Hgitaly::PublishChangesetRequest, ::Hgitaly::PublishChangesetResponse
26
+ # Censor a changeset
27
+ #
28
+ # Equivalent of `hg censor`
29
+ rpc :Censor, ::Hgitaly::CensorRequest, ::Hgitaly::CensorResponse
30
+ # MergeBranch plays the same role as OperationService.UsermergeBranch with the following differences:
31
+ #
32
+ # - It is not a 2-phase operation, hence not streaming
33
+ # - The Request message has a slighly different set of options
34
+ rpc :MergeBranch, ::Hgitaly::MergeBranchRequest, ::Hgitaly::MergeBranchResponse
35
+ end
36
+
37
+ Stub = Service.rpc_stub_class
38
+ end
39
+ end
@@ -58,6 +58,20 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
58
58
  add_message "hgitaly.RecoverResponse" do
59
59
  optional :not_needed, :bool, 1
60
60
  end
61
+ add_message "hgitaly.OptimizeRequest" do
62
+ optional :repository, :message, 1, "gitaly.Repository"
63
+ end
64
+ add_message "hgitaly.OptimizeResponse" do
65
+ end
66
+ add_message "hgitaly.ResetCachesRequest" do
67
+ optional :repository, :message, 1, "gitaly.Repository"
68
+ repeated :caches, :enum, 2, "hgitaly.ResetCachesRequest.Cache"
69
+ end
70
+ add_enum "hgitaly.ResetCachesRequest.Cache" do
71
+ value :TAGS, 0
72
+ end
73
+ add_message "hgitaly.ResetCachesResponse" do
74
+ end
61
75
  add_message "hgitaly.MercurialPeer" do
62
76
  optional :url, :string, 1
63
77
  optional :ssh_key, :string, 5
@@ -73,6 +87,14 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
73
87
  add_message "hgitaly.PushResponse" do
74
88
  optional :new_changesets, :bool, 1
75
89
  end
90
+ add_message "hgitaly.PullRequest" do
91
+ optional :repository, :message, 1, "gitaly.Repository"
92
+ optional :remote_peer, :message, 2, "hgitaly.MercurialPeer"
93
+ repeated :gitlab_branches, :bytes, 3
94
+ end
95
+ add_message "hgitaly.PullResponse" do
96
+ optional :new_changesets, :bool, 1
97
+ end
76
98
  add_enum "hgitaly.ConfigItemType" do
77
99
  value :STRING, 0
78
100
  value :BOOL, 1
@@ -93,8 +115,15 @@ module Hgitaly
93
115
  GetConfigItemResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hgitaly.GetConfigItemResponse").msgclass
94
116
  RecoverRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hgitaly.RecoverRequest").msgclass
95
117
  RecoverResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hgitaly.RecoverResponse").msgclass
118
+ OptimizeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hgitaly.OptimizeRequest").msgclass
119
+ OptimizeResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hgitaly.OptimizeResponse").msgclass
120
+ ResetCachesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hgitaly.ResetCachesRequest").msgclass
121
+ ResetCachesRequest::Cache = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hgitaly.ResetCachesRequest.Cache").enummodule
122
+ ResetCachesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hgitaly.ResetCachesResponse").msgclass
96
123
  MercurialPeer = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hgitaly.MercurialPeer").msgclass
97
124
  PushRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hgitaly.PushRequest").msgclass
98
125
  PushResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hgitaly.PushResponse").msgclass
126
+ PullRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hgitaly.PullRequest").msgclass
127
+ PullResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hgitaly.PullResponse").msgclass
99
128
  ConfigItemType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hgitaly.ConfigItemType").enummodule
100
129
  end
@@ -21,6 +21,16 @@ module Hgitaly
21
21
  # Will back Rails method `hg_config_item_bool?` currently
22
22
  # implemented on `Gitlab::Mercurial::HgGitRepository`
23
23
  rpc :GetConfigItem, ::Hgitaly::GetConfigItemRequest, ::Hgitaly::GetConfigItemResponse
24
+ # / Recover after abandoned transaction
25
+ # /
26
+ # / Equivalent of `hg recover`
27
+ rpc :Recover, ::Hgitaly::RecoverRequest, ::Hgitaly::RecoverResponse
28
+ # / Optimize repository
29
+ # /
30
+ # / Recompute stuff, switch to more efficient caches and compression, etc.
31
+ rpc :Optimize, ::Hgitaly::OptimizeRequest, ::Hgitaly::OptimizeResponse
32
+ # / Reset caches utility
33
+ rpc :ResetCaches, ::Hgitaly::ResetCachesRequest, ::Hgitaly::ResetCachesResponse
24
34
  #
25
35
  # Managed configuration methods.
26
36
  #
@@ -46,6 +56,11 @@ module Hgitaly
46
56
  # / which is meant to pass very long lists of branch patterns in
47
57
  # / `only_branches_matching`.
48
58
  rpc :Push, ::Hgitaly::PushRequest, ::Hgitaly::PushResponse
59
+ # / Pull from some remote repo.
60
+ # /
61
+ # / Not very different from RepositoryService.FetchRemote, but we'll avoid
62
+ # / a few Git-specific concepts.
63
+ rpc :Pull, ::Hgitaly::PullRequest, ::Hgitaly::PullResponse
49
64
  end
50
65
 
51
66
  Stub = Service.rpc_stub_class
@@ -1,4 +1,4 @@
1
1
  # This file is generated by generate-grpc-lib. Do not edit.
2
2
  module Hgitaly
3
- VERSION = '0.31.0'
3
+ VERSION = '1.0.0'
4
4
  end
data/lib/hgitaly.rb CHANGED
@@ -5,5 +5,7 @@ require 'hgitaly/version'
5
5
 
6
6
  require 'hgitaly/mercurial-changeset_services_pb'
7
7
 
8
+ require 'hgitaly/mercurial-operations_services_pb'
9
+
8
10
  require 'hgitaly/mercurial-repository_services_pb'
9
11
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hgitaly
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.31.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Georges Racinet
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-02-13 00:00:00.000000000 Z
11
+ date: 2024-01-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-protobuf
@@ -49,6 +49,8 @@ files:
49
49
  - lib/hgitaly.rb
50
50
  - lib/hgitaly/mercurial-changeset_pb.rb
51
51
  - lib/hgitaly/mercurial-changeset_services_pb.rb
52
+ - lib/hgitaly/mercurial-operations_pb.rb
53
+ - lib/hgitaly/mercurial-operations_services_pb.rb
52
54
  - lib/hgitaly/mercurial-repository_pb.rb
53
55
  - lib/hgitaly/mercurial-repository_services_pb.rb
54
56
  - lib/hgitaly/version.rb