hgitaly 0.40.3 → 1.7.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: b37316c1a47186dc9ae13900d6890785f5a1b625c617658a99ad198e737138d2
4
- data.tar.gz: c36560c6e4e6d9d5e4b3449c9842608e30b7132f1cd9851ce0497d7026e80e91
3
+ metadata.gz: abf0521a526619a69af581ceef6e5550f75129ad3893587c7653af3499b2422c
4
+ data.tar.gz: 99a93586ac6d0e6ab4b05ad7eb50301a1954618f15c84e872a86eb88d60dd9c9
5
5
  SHA512:
6
- metadata.gz: d69ff23ab0878ff89748aadfe38b338daaaf755b75a0a74d52ade2aa1ae21d60331c1e03819a49802156e40ed531cce3d02d71cafaff0c45570c5f69e1b77d47
7
- data.tar.gz: 44a0eeb35903dd3105d0c84b6b7416b1a48167594805a0c53bd41346b5c0f5130314893f1781ad815b964ebf1075f313f8ba2ee382525512d607a55ee80f5ff5
6
+ metadata.gz: 94368b331ce0fd025bcf28af9eecb484c5ae223c11137c9945376ecb3f03f0610a3506527b81bb6d3a929b4ebab44558ffc53a94ff522895c7a2a04a2bc39509
7
+ data.tar.gz: 3bc4055d25a729523e62f5fa1b9d892bff9c66b665231bea28cb2a43c424d9ef02c56216695a62d0a64d7985deae8eba29885c84c759832952ea7e23ce0d8c55
@@ -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
@@ -1,8 +1,11 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: mercurial-operations.proto
3
3
 
4
+ require 'errors_pb'
4
5
  require 'lint_pb'
5
6
  require 'shared_pb'
7
+ require 'google/protobuf/timestamp_pb'
8
+ require 'operations_pb'
6
9
  require 'google/protobuf'
7
10
 
8
11
  Google::Protobuf::DescriptorPool.generated_pool.build do
@@ -26,10 +29,75 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
26
29
  optional :source_branch, :bytes, 10
27
30
  optional :source_topic, :bytes, 11
28
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
29
87
  end
30
88
  end
31
89
 
32
90
  module Hgitaly
33
91
  MergeAnalysisRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hgitaly.MergeAnalysisRequest").msgclass
34
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
35
103
  end
@@ -18,6 +18,20 @@ module Hgitaly
18
18
  #
19
19
  # Will be used in mergeability checks and last-minute checks if needed.
20
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
21
35
  end
22
36
 
23
37
  Stub = Service.rpc_stub_class
@@ -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,15 @@ 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
+ optional :user, :message, 4, "gitaly.User"
94
+ repeated :mercurial_revisions, :bytes, 5
95
+ end
96
+ add_message "hgitaly.PullResponse" do
97
+ optional :new_changesets, :bool, 1
98
+ end
76
99
  add_enum "hgitaly.ConfigItemType" do
77
100
  value :STRING, 0
78
101
  value :BOOL, 1
@@ -93,8 +116,15 @@ module Hgitaly
93
116
  GetConfigItemResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hgitaly.GetConfigItemResponse").msgclass
94
117
  RecoverRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hgitaly.RecoverRequest").msgclass
95
118
  RecoverResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hgitaly.RecoverResponse").msgclass
119
+ OptimizeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hgitaly.OptimizeRequest").msgclass
120
+ OptimizeResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hgitaly.OptimizeResponse").msgclass
121
+ ResetCachesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hgitaly.ResetCachesRequest").msgclass
122
+ ResetCachesRequest::Cache = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hgitaly.ResetCachesRequest.Cache").enummodule
123
+ ResetCachesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hgitaly.ResetCachesResponse").msgclass
96
124
  MercurialPeer = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hgitaly.MercurialPeer").msgclass
97
125
  PushRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hgitaly.PushRequest").msgclass
98
126
  PushResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hgitaly.PushResponse").msgclass
127
+ PullRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hgitaly.PullRequest").msgclass
128
+ PullResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hgitaly.PullResponse").msgclass
99
129
  ConfigItemType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hgitaly.ConfigItemType").enummodule
100
130
  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.40.3'
3
+ VERSION = '1.7.0'
4
4
  end
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.40.3
4
+ version: 1.7.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-10-14 00:00:00.000000000 Z
11
+ date: 2024-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-protobuf