Read about our upcoming Code of Conduct on this issue

Commit e2fa2641 authored by Sushil Khanchi's avatar Sushil Khanchi 🐨
Browse files

mercurial-repository: update proto/stub with backup methods

parent 3e61b59d444c
......@@ -15,6 +15,8 @@
not_implemented,
)
from ..stub.mercurial_repository_pb2 import (
BackupAdditionalRequest,
BackupAdditionalResponse,
ConfigItemType,
GetConfigItemRequest,
GetConfigItemResponse,
......@@ -18,6 +20,8 @@
ConfigItemType,
GetConfigItemRequest,
GetConfigItemResponse,
RestoreAdditionalRequest,
RestoreAdditionalResponse,
)
from ..stub.mercurial_repository_pb2_grpc import (
MercurialRepositoryServiceServicer,
......@@ -49,3 +53,15 @@
return not_implemented( # pragma no cover
context, GetConfigItemResponse,
issue=60)
def BackupAdditional(self, request: BackupAdditionalRequest,
context) -> BackupAdditionalResponse:
return not_implemented( # pragma no cover
context, BackupAdditionalResponse,
issue=68)
def RestoreAdditional(self, request: RestoreAdditionalRequest,
context) -> RestoreAdditionalResponse:
return not_implemented( # pragma no cover
context, RestoreAdditionalResponse,
issue=69)
This diff is collapsed.
......@@ -29,8 +29,8 @@
request_serializer=blob__pb2.GetLFSPointersRequest.SerializeToString,
response_deserializer=blob__pb2.GetLFSPointersResponse.FromString,
)
self.GetNewLFSPointers = channel.unary_stream(
'/gitaly.BlobService/GetNewLFSPointers',
request_serializer=blob__pb2.GetNewLFSPointersRequest.SerializeToString,
response_deserializer=blob__pb2.GetNewLFSPointersResponse.FromString,
self.ListLFSPointers = channel.unary_stream(
'/gitaly.BlobService/ListLFSPointers',
request_serializer=blob__pb2.ListLFSPointersRequest.SerializeToString,
response_deserializer=blob__pb2.ListLFSPointersResponse.FromString,
)
......@@ -36,8 +36,8 @@
)
self.GetAllLFSPointers = channel.unary_stream(
'/gitaly.BlobService/GetAllLFSPointers',
request_serializer=blob__pb2.GetAllLFSPointersRequest.SerializeToString,
response_deserializer=blob__pb2.GetAllLFSPointersResponse.FromString,
self.ListAllLFSPointers = channel.unary_stream(
'/gitaly.BlobService/ListAllLFSPointers',
request_serializer=blob__pb2.ListAllLFSPointersRequest.SerializeToString,
response_deserializer=blob__pb2.ListAllLFSPointersResponse.FromString,
)
......@@ -68,12 +68,15 @@
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def GetNewLFSPointers(self, request, context):
"""GetNewLFSPointers retrieves LFS pointers for a limited subset of the
commit graph. It will return all LFS pointers which are reachable by the
provided revision, but not reachable by any of the limiting references.
def ListLFSPointers(self, request, context):
"""ListLFSPointers retrieves LFS pointers reachable from a given set of
revisions by doing a graph walk. This includes both normal revisions like
an object ID or branch, but also the pseudo-revisions "--all" and "--not"
as documented in git-rev-parse(1). Revisions which don't directly or
transitively reference any LFS pointers are ignored. It is not valid to
pass revisions which do not resolve to an existing object.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
......@@ -75,10 +78,11 @@
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def GetAllLFSPointers(self, request, context):
"""GetAllLFSPointers retrieves all LFS pointers of the given repository.
def ListAllLFSPointers(self, request, context):
"""ListAllLFSPointers retrieves all LFS pointers in the repository, including
those not reachable by any reference.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
......@@ -102,8 +106,8 @@
request_deserializer=blob__pb2.GetLFSPointersRequest.FromString,
response_serializer=blob__pb2.GetLFSPointersResponse.SerializeToString,
),
'GetNewLFSPointers': grpc.unary_stream_rpc_method_handler(
servicer.GetNewLFSPointers,
request_deserializer=blob__pb2.GetNewLFSPointersRequest.FromString,
response_serializer=blob__pb2.GetNewLFSPointersResponse.SerializeToString,
'ListLFSPointers': grpc.unary_stream_rpc_method_handler(
servicer.ListLFSPointers,
request_deserializer=blob__pb2.ListLFSPointersRequest.FromString,
response_serializer=blob__pb2.ListLFSPointersResponse.SerializeToString,
),
......@@ -109,8 +113,8 @@
),
'GetAllLFSPointers': grpc.unary_stream_rpc_method_handler(
servicer.GetAllLFSPointers,
request_deserializer=blob__pb2.GetAllLFSPointersRequest.FromString,
response_serializer=blob__pb2.GetAllLFSPointersResponse.SerializeToString,
'ListAllLFSPointers': grpc.unary_stream_rpc_method_handler(
servicer.ListAllLFSPointers,
request_deserializer=blob__pb2.ListAllLFSPointersRequest.FromString,
response_serializer=blob__pb2.ListAllLFSPointersResponse.SerializeToString,
),
}
generic_handler = grpc.method_handlers_generic_handler(
......@@ -174,7 +178,7 @@
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def GetNewLFSPointers(request,
def ListLFSPointers(request,
target,
options=(),
channel_credentials=None,
......@@ -184,10 +188,10 @@
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_stream(request, target, '/gitaly.BlobService/GetNewLFSPointers',
blob__pb2.GetNewLFSPointersRequest.SerializeToString,
blob__pb2.GetNewLFSPointersResponse.FromString,
return grpc.experimental.unary_stream(request, target, '/gitaly.BlobService/ListLFSPointers',
blob__pb2.ListLFSPointersRequest.SerializeToString,
blob__pb2.ListLFSPointersResponse.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
......@@ -190,8 +194,8 @@
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def GetAllLFSPointers(request,
def ListAllLFSPointers(request,
target,
options=(),
channel_credentials=None,
......@@ -201,8 +205,8 @@
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_stream(request, target, '/gitaly.BlobService/GetAllLFSPointers',
blob__pb2.GetAllLFSPointersRequest.SerializeToString,
blob__pb2.GetAllLFSPointersResponse.FromString,
return grpc.experimental.unary_stream(request, target, '/gitaly.BlobService/ListAllLFSPointers',
blob__pb2.ListAllLFSPointersRequest.SerializeToString,
blob__pb2.ListAllLFSPointersResponse.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
This diff is collapsed.
......@@ -21,9 +21,9 @@
syntax='proto3',
serialized_options=b'Z.gitlab.com/gitlab-org/gitaly/proto/go/gitalypb',
create_key=_descriptor._internal_create_key,
serialized_pb=b'\n\ndiff.proto\x12\x06gitaly\x1a\nlint.proto\x1a\x0cshared.proto\"\xed\x02\n\x11\x43ommitDiffRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x16\n\x0eleft_commit_id\x18\x02 \x01(\t\x12\x17\n\x0fright_commit_id\x18\x03 \x01(\t\x12 \n\x18ignore_whitespace_change\x18\x04 \x01(\x08\x12\r\n\x05paths\x18\x05 \x03(\x0c\x12\x16\n\x0e\x63ollapse_diffs\x18\x06 \x01(\x08\x12\x16\n\x0e\x65nforce_limits\x18\x07 \x01(\x08\x12\x11\n\tmax_files\x18\x08 \x01(\x05\x12\x11\n\tmax_lines\x18\t \x01(\x05\x12\x11\n\tmax_bytes\x18\n \x01(\x05\x12\x17\n\x0fmax_patch_bytes\x18\x0e \x01(\x05\x12\x16\n\x0esafe_max_files\x18\x0b \x01(\x05\x12\x16\n\x0esafe_max_lines\x18\x0c \x01(\x05\x12\x16\n\x0esafe_max_bytes\x18\r \x01(\x05\"\xff\x01\n\x12\x43ommitDiffResponse\x12\x11\n\tfrom_path\x18\x01 \x01(\x0c\x12\x0f\n\x07to_path\x18\x02 \x01(\x0c\x12\x0f\n\x07\x66rom_id\x18\x03 \x01(\t\x12\r\n\x05to_id\x18\x04 \x01(\t\x12\x10\n\x08old_mode\x18\x05 \x01(\x05\x12\x10\n\x08new_mode\x18\x06 \x01(\x05\x12\x0e\n\x06\x62inary\x18\x07 \x01(\x08\x12\x16\n\x0eraw_patch_data\x18\t \x01(\x0c\x12\x14\n\x0c\x65nd_of_patch\x18\n \x01(\x08\x12\x17\n\x0foverflow_marker\x18\x0b \x01(\x08\x12\x11\n\tcollapsed\x18\x0c \x01(\x08\x12\x11\n\ttoo_large\x18\r \x01(\x08J\x04\x08\x08\x10\t\"\x82\x01\n\x12\x43ommitDeltaRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x16\n\x0eleft_commit_id\x18\x02 \x01(\t\x12\x17\n\x0fright_commit_id\x18\x03 \x01(\t\x12\r\n\x05paths\x18\x04 \x03(\x0c\"u\n\x0b\x43ommitDelta\x12\x11\n\tfrom_path\x18\x01 \x01(\x0c\x12\x0f\n\x07to_path\x18\x02 \x01(\x0c\x12\x0f\n\x07\x66rom_id\x18\x03 \x01(\t\x12\r\n\x05to_id\x18\x04 \x01(\t\x12\x10\n\x08old_mode\x18\x05 \x01(\x05\x12\x10\n\x08new_mode\x18\x06 \x01(\x05\":\n\x13\x43ommitDeltaResponse\x12#\n\x06\x64\x65ltas\x18\x01 \x03(\x0b\x32\x13.gitaly.CommitDelta\"o\n\x0eRawDiffRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x16\n\x0eleft_commit_id\x18\x02 \x01(\t\x12\x17\n\x0fright_commit_id\x18\x03 \x01(\t\"\x1f\n\x0fRawDiffResponse\x12\x0c\n\x04\x64\x61ta\x18\x01 \x01(\x0c\"p\n\x0fRawPatchRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x16\n\x0eleft_commit_id\x18\x02 \x01(\t\x12\x17\n\x0fright_commit_id\x18\x03 \x01(\t\" \n\x10RawPatchResponse\x12\x0c\n\x04\x64\x61ta\x18\x01 \x01(\x0c\"q\n\x10\x44iffStatsRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x16\n\x0eleft_commit_id\x18\x02 \x01(\t\x12\x17\n\x0fright_commit_id\x18\x03 \x01(\t\"Q\n\tDiffStats\x12\x0c\n\x04path\x18\x01 \x01(\x0c\x12\x11\n\tadditions\x18\x02 \x01(\x05\x12\x11\n\tdeletions\x18\x03 \x01(\x05\x12\x10\n\x08old_path\x18\x04 \x01(\x0c\"5\n\x11\x44iffStatsResponse\x12 \n\x05stats\x18\x01 \x03(\x0b\x32\x11.gitaly.DiffStats\"X\n\x17\x46indChangedPathsRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x0f\n\x07\x63ommits\x18\x02 \x03(\t\"?\n\x18\x46indChangedPathsResponse\x12#\n\x05paths\x18\x01 \x03(\x0b\x32\x14.gitaly.ChangedPaths\"\x96\x01\n\x0c\x43hangedPaths\x12\x0c\n\x04path\x18\x01 \x01(\x0c\x12+\n\x06status\x18\x02 \x01(\x0e\x32\x1b.gitaly.ChangedPaths.Status\"K\n\x06Status\x12\t\n\x05\x41\x44\x44\x45\x44\x10\x00\x12\x0c\n\x08MODIFIED\x10\x01\x12\x0b\n\x07\x44\x45LETED\x10\x02\x12\x0f\n\x0bTYPE_CHANGE\x10\x03\x12\n\n\x06\x43OPIED\x10\x04\x32\xea\x03\n\x0b\x44iffService\x12M\n\nCommitDiff\x12\x19.gitaly.CommitDiffRequest\x1a\x1a.gitaly.CommitDiffResponse\"\x06\xfa\x97(\x02\x08\x02\x30\x01\x12P\n\x0b\x43ommitDelta\x12\x1a.gitaly.CommitDeltaRequest\x1a\x1b.gitaly.CommitDeltaResponse\"\x06\xfa\x97(\x02\x08\x02\x30\x01\x12\x44\n\x07RawDiff\x12\x16.gitaly.RawDiffRequest\x1a\x17.gitaly.RawDiffResponse\"\x06\xfa\x97(\x02\x08\x02\x30\x01\x12G\n\x08RawPatch\x12\x17.gitaly.RawPatchRequest\x1a\x18.gitaly.RawPatchResponse\"\x06\xfa\x97(\x02\x08\x02\x30\x01\x12J\n\tDiffStats\x12\x18.gitaly.DiffStatsRequest\x1a\x19.gitaly.DiffStatsResponse\"\x06\xfa\x97(\x02\x08\x02\x30\x01\x12_\n\x10\x46indChangedPaths\x12\x1f.gitaly.FindChangedPathsRequest\x1a .gitaly.FindChangedPathsResponse\"\x06\xfa\x97(\x02\x08\x02\x30\x01\x42\x30Z.gitlab.com/gitlab-org/gitaly/proto/go/gitalypbb\x06proto3'
serialized_pb=b'\n\ndiff.proto\x12\x06gitaly\x1a\nlint.proto\x1a\x0cshared.proto\"\xcb\x03\n\x11\x43ommitDiffRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x16\n\x0eleft_commit_id\x18\x02 \x01(\t\x12\x17\n\x0fright_commit_id\x18\x03 \x01(\t\x12 \n\x18ignore_whitespace_change\x18\x04 \x01(\x08\x12\r\n\x05paths\x18\x05 \x03(\x0c\x12\x16\n\x0e\x63ollapse_diffs\x18\x06 \x01(\x08\x12\x16\n\x0e\x65nforce_limits\x18\x07 \x01(\x08\x12\x11\n\tmax_files\x18\x08 \x01(\x05\x12\x11\n\tmax_lines\x18\t \x01(\x05\x12\x11\n\tmax_bytes\x18\n \x01(\x05\x12\x17\n\x0fmax_patch_bytes\x18\x0e \x01(\x05\x12\x16\n\x0esafe_max_files\x18\x0b \x01(\x05\x12\x16\n\x0esafe_max_lines\x18\x0c \x01(\x05\x12\x16\n\x0esafe_max_bytes\x18\r \x01(\x05\x12\x35\n\tdiff_mode\x18\x0f \x01(\x0e\x32\".gitaly.CommitDiffRequest.DiffMode\"%\n\x08\x44iffMode\x12\x0b\n\x07\x44\x45\x46\x41ULT\x10\x00\x12\x0c\n\x08WORDDIFF\x10\x01\"\xff\x01\n\x12\x43ommitDiffResponse\x12\x11\n\tfrom_path\x18\x01 \x01(\x0c\x12\x0f\n\x07to_path\x18\x02 \x01(\x0c\x12\x0f\n\x07\x66rom_id\x18\x03 \x01(\t\x12\r\n\x05to_id\x18\x04 \x01(\t\x12\x10\n\x08old_mode\x18\x05 \x01(\x05\x12\x10\n\x08new_mode\x18\x06 \x01(\x05\x12\x0e\n\x06\x62inary\x18\x07 \x01(\x08\x12\x16\n\x0eraw_patch_data\x18\t \x01(\x0c\x12\x14\n\x0c\x65nd_of_patch\x18\n \x01(\x08\x12\x17\n\x0foverflow_marker\x18\x0b \x01(\x08\x12\x11\n\tcollapsed\x18\x0c \x01(\x08\x12\x11\n\ttoo_large\x18\r \x01(\x08J\x04\x08\x08\x10\t\"\x82\x01\n\x12\x43ommitDeltaRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x16\n\x0eleft_commit_id\x18\x02 \x01(\t\x12\x17\n\x0fright_commit_id\x18\x03 \x01(\t\x12\r\n\x05paths\x18\x04 \x03(\x0c\"u\n\x0b\x43ommitDelta\x12\x11\n\tfrom_path\x18\x01 \x01(\x0c\x12\x0f\n\x07to_path\x18\x02 \x01(\x0c\x12\x0f\n\x07\x66rom_id\x18\x03 \x01(\t\x12\r\n\x05to_id\x18\x04 \x01(\t\x12\x10\n\x08old_mode\x18\x05 \x01(\x05\x12\x10\n\x08new_mode\x18\x06 \x01(\x05\":\n\x13\x43ommitDeltaResponse\x12#\n\x06\x64\x65ltas\x18\x01 \x03(\x0b\x32\x13.gitaly.CommitDelta\"o\n\x0eRawDiffRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x16\n\x0eleft_commit_id\x18\x02 \x01(\t\x12\x17\n\x0fright_commit_id\x18\x03 \x01(\t\"\x1f\n\x0fRawDiffResponse\x12\x0c\n\x04\x64\x61ta\x18\x01 \x01(\x0c\"p\n\x0fRawPatchRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x16\n\x0eleft_commit_id\x18\x02 \x01(\t\x12\x17\n\x0fright_commit_id\x18\x03 \x01(\t\" \n\x10RawPatchResponse\x12\x0c\n\x04\x64\x61ta\x18\x01 \x01(\x0c\"q\n\x10\x44iffStatsRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x16\n\x0eleft_commit_id\x18\x02 \x01(\t\x12\x17\n\x0fright_commit_id\x18\x03 \x01(\t\"Q\n\tDiffStats\x12\x0c\n\x04path\x18\x01 \x01(\x0c\x12\x11\n\tadditions\x18\x02 \x01(\x05\x12\x11\n\tdeletions\x18\x03 \x01(\x05\x12\x10\n\x08old_path\x18\x04 \x01(\x0c\"5\n\x11\x44iffStatsResponse\x12 \n\x05stats\x18\x01 \x03(\x0b\x32\x11.gitaly.DiffStats\"X\n\x17\x46indChangedPathsRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x0f\n\x07\x63ommits\x18\x02 \x03(\t\"?\n\x18\x46indChangedPathsResponse\x12#\n\x05paths\x18\x01 \x03(\x0b\x32\x14.gitaly.ChangedPaths\"\x96\x01\n\x0c\x43hangedPaths\x12\x0c\n\x04path\x18\x01 \x01(\x0c\x12+\n\x06status\x18\x02 \x01(\x0e\x32\x1b.gitaly.ChangedPaths.Status\"K\n\x06Status\x12\t\n\x05\x41\x44\x44\x45\x44\x10\x00\x12\x0c\n\x08MODIFIED\x10\x01\x12\x0b\n\x07\x44\x45LETED\x10\x02\x12\x0f\n\x0bTYPE_CHANGE\x10\x03\x12\n\n\x06\x43OPIED\x10\x04\x32\xea\x03\n\x0b\x44iffService\x12M\n\nCommitDiff\x12\x19.gitaly.CommitDiffRequest\x1a\x1a.gitaly.CommitDiffResponse\"\x06\xfa\x97(\x02\x08\x02\x30\x01\x12P\n\x0b\x43ommitDelta\x12\x1a.gitaly.CommitDeltaRequest\x1a\x1b.gitaly.CommitDeltaResponse\"\x06\xfa\x97(\x02\x08\x02\x30\x01\x12\x44\n\x07RawDiff\x12\x16.gitaly.RawDiffRequest\x1a\x17.gitaly.RawDiffResponse\"\x06\xfa\x97(\x02\x08\x02\x30\x01\x12G\n\x08RawPatch\x12\x17.gitaly.RawPatchRequest\x1a\x18.gitaly.RawPatchResponse\"\x06\xfa\x97(\x02\x08\x02\x30\x01\x12J\n\tDiffStats\x12\x18.gitaly.DiffStatsRequest\x1a\x19.gitaly.DiffStatsResponse\"\x06\xfa\x97(\x02\x08\x02\x30\x01\x12_\n\x10\x46indChangedPaths\x12\x1f.gitaly.FindChangedPathsRequest\x1a .gitaly.FindChangedPathsResponse\"\x06\xfa\x97(\x02\x08\x02\x30\x01\x42\x30Z.gitlab.com/gitlab-org/gitaly/proto/go/gitalypbb\x06proto3'
,
dependencies=[lint__pb2.DESCRIPTOR,shared__pb2.DESCRIPTOR,])
......@@ -25,8 +25,33 @@
,
dependencies=[lint__pb2.DESCRIPTOR,shared__pb2.DESCRIPTOR,])
_COMMITDIFFREQUEST_DIFFMODE = _descriptor.EnumDescriptor(
name='DiffMode',
full_name='gitaly.CommitDiffRequest.DiffMode',
filename=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
values=[
_descriptor.EnumValueDescriptor(
name='DEFAULT', index=0, number=0,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='WORDDIFF', index=1, number=1,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
],
containing_type=None,
serialized_options=None,
serialized_start=471,
serialized_end=508,
)
_sym_db.RegisterEnumDescriptor(_COMMITDIFFREQUEST_DIFFMODE)
_CHANGEDPATHS_STATUS = _descriptor.EnumDescriptor(
name='Status',
full_name='gitaly.ChangedPaths.Status',
......@@ -62,8 +87,8 @@
],
containing_type=None,
serialized_options=None,
serialized_start=1764,
serialized_end=1839,
serialized_start=1858,
serialized_end=1933,
)
_sym_db.RegisterEnumDescriptor(_CHANGEDPATHS_STATUS)
......@@ -174,8 +199,15 @@
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='diff_mode', full_name='gitaly.CommitDiffRequest.diff_mode', index=14,
number=15, type=14, cpp_type=8, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
......@@ -177,8 +209,9 @@
],
extensions=[
],
nested_types=[],
enum_types=[
_COMMITDIFFREQUEST_DIFFMODE,
],
serialized_options=None,
is_extendable=False,
......@@ -187,7 +220,7 @@
oneofs=[
],
serialized_start=49,
serialized_end=414,
serialized_end=508,
)
......@@ -295,8 +328,8 @@
extension_ranges=[],
oneofs=[
],
serialized_start=417,
serialized_end=672,
serialized_start=511,
serialized_end=766,
)
......@@ -348,8 +381,8 @@
extension_ranges=[],
oneofs=[
],
serialized_start=675,
serialized_end=805,
serialized_start=769,
serialized_end=899,
)
......@@ -415,8 +448,8 @@
extension_ranges=[],
oneofs=[
],
serialized_start=807,
serialized_end=924,
serialized_start=901,
serialized_end=1018,
)
......@@ -447,8 +480,8 @@
extension_ranges=[],
oneofs=[
],
serialized_start=926,
serialized_end=984,
serialized_start=1020,
serialized_end=1078,
)
......@@ -493,8 +526,8 @@
extension_ranges=[],
oneofs=[
],
serialized_start=986,
serialized_end=1097,
serialized_start=1080,
serialized_end=1191,
)
......@@ -525,8 +558,8 @@
extension_ranges=[],
oneofs=[
],
serialized_start=1099,
serialized_end=1130,
serialized_start=1193,
serialized_end=1224,
)
......@@ -571,8 +604,8 @@
extension_ranges=[],
oneofs=[
],
serialized_start=1132,
serialized_end=1244,
serialized_start=1226,
serialized_end=1338,
)
......@@ -603,8 +636,8 @@
extension_ranges=[],
oneofs=[
],
serialized_start=1246,
serialized_end=1278,
serialized_start=1340,
serialized_end=1372,
)
......@@ -649,8 +682,8 @@
extension_ranges=[],
oneofs=[
],
serialized_start=1280,
serialized_end=1393,
serialized_start=1374,
serialized_end=1487,
)
......@@ -702,8 +735,8 @@
extension_ranges=[],
oneofs=[
],
serialized_start=1395,
serialized_end=1476,
serialized_start=1489,
serialized_end=1570,
)
......@@ -734,8 +767,8 @@
extension_ranges=[],
oneofs=[
],
serialized_start=1478,
serialized_end=1531,
serialized_start=1572,
serialized_end=1625,
)
......@@ -773,8 +806,8 @@
extension_ranges=[],
oneofs=[
],
serialized_start=1533,
serialized_end=1621,
serialized_start=1627,
serialized_end=1715,
)
......@@ -805,8 +838,8 @@
extension_ranges=[],
oneofs=[
],
serialized_start=1623,
serialized_end=1686,
serialized_start=1717,
serialized_end=1780,
)
......@@ -845,8 +878,8 @@
extension_ranges=[],
oneofs=[
],
serialized_start=1689,
serialized_end=1839,
serialized_start=1783,
serialized_end=1933,
)
_COMMITDIFFREQUEST.fields_by_name['repository'].message_type = shared__pb2._REPOSITORY
......@@ -850,6 +883,8 @@
)
_COMMITDIFFREQUEST.fields_by_name['repository'].message_type = shared__pb2._REPOSITORY
_COMMITDIFFREQUEST.fields_by_name['diff_mode'].enum_type = _COMMITDIFFREQUEST_DIFFMODE
_COMMITDIFFREQUEST_DIFFMODE.containing_type = _COMMITDIFFREQUEST
_COMMITDELTAREQUEST.fields_by_name['repository'].message_type = shared__pb2._REPOSITORY
_COMMITDELTARESPONSE.fields_by_name['deltas'].message_type = _COMMITDELTA
_RAWDIFFREQUEST.fields_by_name['repository'].message_type = shared__pb2._REPOSITORY
......@@ -998,8 +1033,8 @@
index=0,
serialized_options=None,
create_key=_descriptor._internal_create_key,
serialized_start=1842,
serialized_end=2332,
serialized_start=1936,
serialized_end=2426,
methods=[
_descriptor.MethodDescriptor(
name='CommitDiff',
......
......@@ -22,7 +22,7 @@
syntax='proto3',
serialized_options=None,
create_key=_descriptor._internal_create_key,
serialized_pb=b'\n\x1amercurial-repository.proto\x12\x07hgitaly\x1a\nlint.proto\x1a\x0cshared.proto\"Y\n\x11InitConfigRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x16\n\x0enamespace_path\x18\x02 \x01(\t\"\x14\n\x12InitConfigResponse\"\xc8\x01\n\x15HeptapodConfigSection\x12\x1c\n\x14\x61llow_multiple_heads\x18\x02 \x01(\x08\x12\x17\n\x0f\x61llow_bookmarks\x18\x03 \x01(\x08\x12@\n\x0c\x61uto_publish\x18\x04 \x01(\x0e\x32*.hgitaly.HeptapodConfigSection.AutoPublish\"6\n\x0b\x41utoPublish\x12\x11\n\rWITHOUT_TOPIC\x10\x00\x12\x0b\n\x07NOTHING\x10\x01\x12\x07\n\x03\x41LL\x10\x02\"V\n\x17GetManagedConfigRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\r\n\x05local\x18\x02 \x01(\x08\"]\n\x18GetManagedConfigResponse\x12\x0f\n\x07inherit\x18\x01 \x01(\x08\x12\x30\n\x08heptapod\x18\x02 \x01(\x0b\x32\x1e.hgitaly.HeptapodConfigSection\"\x8a\x01\n\x17SetManagedConfigRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x0f\n\x07inherit\x18\x02 \x01(\x08\x12\x30\n\x08heptapod\x18\x03 \x01(\x0b\x32\x1e.hgitaly.HeptapodConfigSection\"\x1a\n\x18SetManagedConfigResponse\"\x8d\x01\n\x14GetConfigItemRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12(\n\x07\x61s_type\x18\x02 \x01(\x0e\x32\x17.hgitaly.ConfigItemType\x12\x0f\n\x07section\x18\x03 \x01(\t\x12\x0c\n\x04name\x18\x04 \x01(\t\"H\n\x15GetConfigItemResponse\x12\x13\n\tas_string\x18\x01 \x01(\tH\x00\x12\x11\n\x07\x61s_bool\x18\x02 \x01(\x08H\x00\x42\x07\n\x05value\">\n\x0eRecoverRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\"%\n\x0fRecoverResponse\x12\x12\n\nnot_needed\x18\x01 \x01(\x08*&\n\x0e\x43onfigItemType\x12\n\n\x06STRING\x10\x00\x12\x08\n\x04\x42OOL\x10\x01\x32\x85\x03\n\x1aMercurialRepositoryService\x12M\n\nInitConfig\x12\x1a.hgitaly.InitConfigRequest\x1a\x1b.hgitaly.InitConfigResponse\"\x06\xfa\x97(\x02\x08\x01\x12V\n\rGetConfigItem\x12\x1d.hgitaly.GetConfigItemRequest\x1a\x1e.hgitaly.GetConfigItemResponse\"\x06\xfa\x97(\x02\x08\x02\x12_\n\x10GetManagedConfig\x12 .hgitaly.GetManagedConfigRequest\x1a!.hgitaly.GetManagedConfigResponse\"\x06\xfa\x97(\x02\x08\x02\x12_\n\x10SetManagedConfig\x12 .hgitaly.SetManagedConfigRequest\x1a!.hgitaly.SetManagedConfigResponse\"\x06\xfa\x97(\x02\x08\x01\x62\x06proto3'
serialized_pb=b'\n\x1amercurial-repository.proto\x12\x07hgitaly\x1a\nlint.proto\x1a\x0cshared.proto\"Y\n\x11InitConfigRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x16\n\x0enamespace_path\x18\x02 \x01(\t\"\x14\n\x12InitConfigResponse\"\xc8\x01\n\x15HeptapodConfigSection\x12\x1c\n\x14\x61llow_multiple_heads\x18\x02 \x01(\x08\x12\x17\n\x0f\x61llow_bookmarks\x18\x03 \x01(\x08\x12@\n\x0c\x61uto_publish\x18\x04 \x01(\x0e\x32*.hgitaly.HeptapodConfigSection.AutoPublish\"6\n\x0b\x41utoPublish\x12\x11\n\rWITHOUT_TOPIC\x10\x00\x12\x0b\n\x07NOTHING\x10\x01\x12\x07\n\x03\x41LL\x10\x02\"V\n\x17GetManagedConfigRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\r\n\x05local\x18\x02 \x01(\x08\"]\n\x18GetManagedConfigResponse\x12\x0f\n\x07inherit\x18\x01 \x01(\x08\x12\x30\n\x08heptapod\x18\x02 \x01(\x0b\x32\x1e.hgitaly.HeptapodConfigSection\"\x8a\x01\n\x17SetManagedConfigRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x0f\n\x07inherit\x18\x02 \x01(\x08\x12\x30\n\x08heptapod\x18\x03 \x01(\x0b\x32\x1e.hgitaly.HeptapodConfigSection\"\x1a\n\x18SetManagedConfigResponse\"\x8d\x01\n\x14GetConfigItemRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12(\n\x07\x61s_type\x18\x02 \x01(\x0e\x32\x17.hgitaly.ConfigItemType\x12\x0f\n\x07section\x18\x03 \x01(\t\x12\x0c\n\x04name\x18\x04 \x01(\t\"H\n\x15GetConfigItemResponse\x12\x13\n\tas_string\x18\x01 \x01(\tH\x00\x12\x11\n\x07\x61s_bool\x18\x02 \x01(\x08H\x00\x42\x07\n\x05value\">\n\x0eRecoverRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\"%\n\x0fRecoverResponse\x12\x12\n\nnot_needed\x18\x01 \x01(\x08\"Z\n\x17\x42\x61\x63kupAdditionalRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x11\n\tsave_path\x18\x02 \x01(\t\"\x1a\n\x18\x42\x61\x63kupAdditionalResponse\"]\n\x18RestoreAdditionalRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x13\n\x0b\x62undle_path\x18\x02 \x01(\t\"\x1b\n\x19RestoreAdditionalResponse*&\n\x0e\x43onfigItemType\x12\n\n\x06STRING\x10\x00\x12\x08\n\x04\x42OOL\x10\x01\x32\xca\x04\n\x1aMercurialRepositoryService\x12M\n\nInitConfig\x12\x1a.hgitaly.InitConfigRequest\x1a\x1b.hgitaly.InitConfigResponse\"\x06\xfa\x97(\x02\x08\x01\x12V\n\rGetConfigItem\x12\x1d.hgitaly.GetConfigItemRequest\x1a\x1e.hgitaly.GetConfigItemResponse\"\x06\xfa\x97(\x02\x08\x02\x12_\n\x10\x42\x61\x63kupAdditional\x12 .hgitaly.BackupAdditionalRequest\x1a!.hgitaly.BackupAdditionalResponse\"\x06\xfa\x97(\x02\x08\x02\x12\x62\n\x11RestoreAdditional\x12!.hgitaly.RestoreAdditionalRequest\x1a\".hgitaly.RestoreAdditionalResponse\"\x06\xfa\x97(\x02\x08\x02\x12_\n\x10GetManagedConfig\x12 .hgitaly.GetManagedConfigRequest\x1a!.hgitaly.GetManagedConfigResponse\"\x06\xfa\x97(\x02\x08\x02\x12_\n\x10SetManagedConfig\x12 .hgitaly.SetManagedConfigRequest\x1a!.hgitaly.SetManagedConfigResponse\"\x06\xfa\x97(\x02\x08\x01\x62\x06proto3'
,
dependencies=[lint__pb2.DESCRIPTOR,shared__pb2.DESCRIPTOR,])
......@@ -46,8 +46,8 @@
],
containing_type=None,
serialized_options=None,
serialized_start=1054,
serialized_end=1092,
serialized_start=1298,
serialized_end=1336,
)
_sym_db.RegisterEnumDescriptor(_CONFIGITEMTYPE)
......@@ -507,6 +507,134 @@
serialized_end=1052,
)
_BACKUPADDITIONALREQUEST = _descriptor.Descriptor(
name='BackupAdditionalRequest',
full_name='hgitaly.BackupAdditionalRequest',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='repository', full_name='hgitaly.BackupAdditionalRequest.repository', index=0,
number=1, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=b'\230\306,\001', file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='save_path', full_name='hgitaly.BackupAdditionalRequest.save_path', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=1054,
serialized_end=1144,
)
_BACKUPADDITIONALRESPONSE = _descriptor.Descriptor(
name='BackupAdditionalResponse',
full_name='hgitaly.BackupAdditionalResponse',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=1146,
serialized_end=1172,
)
_RESTOREADDITIONALREQUEST = _descriptor.Descriptor(
name='RestoreAdditionalRequest',
full_name='hgitaly.RestoreAdditionalRequest',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='repository', full_name='hgitaly.RestoreAdditionalRequest.repository', index=0,
number=1, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=b'\230\306,\001', file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='bundle_path', full_name='hgitaly.RestoreAdditionalRequest.bundle_path', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=1174,
serialized_end=1267,
)
_RESTOREADDITIONALRESPONSE = _descriptor.Descriptor(
name='RestoreAdditionalResponse',
full_name='hgitaly.RestoreAdditionalResponse',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=1269,
serialized_end=1296,
)
_INITCONFIGREQUEST.fields_by_name['repository'].message_type = shared__pb2._REPOSITORY
_HEPTAPODCONFIGSECTION.fields_by_name['auto_publish'].enum_type = _HEPTAPODCONFIGSECTION_AUTOPUBLISH
_HEPTAPODCONFIGSECTION_AUTOPUBLISH.containing_type = _HEPTAPODCONFIGSECTION
......@@ -523,6 +651,8 @@
_GETCONFIGITEMRESPONSE.fields_by_name['as_bool'])
_GETCONFIGITEMRESPONSE.fields_by_name['as_bool'].containing_oneof = _GETCONFIGITEMRESPONSE.oneofs_by_name['value']
_RECOVERREQUEST.fields_by_name['repository'].message_type = shared__pb2._REPOSITORY
_BACKUPADDITIONALREQUEST.fields_by_name['repository'].message_type = shared__pb2._REPOSITORY
_RESTOREADDITIONALREQUEST.fields_by_name['repository'].message_type = shared__pb2._REPOSITORY
DESCRIPTOR.message_types_by_name['InitConfigRequest'] = _INITCONFIGREQUEST
DESCRIPTOR.message_types_by_name['InitConfigResponse'] = _INITCONFIGRESPONSE
DESCRIPTOR.message_types_by_name['HeptapodConfigSection'] = _HEPTAPODCONFIGSECTION
......@@ -534,6 +664,10 @@
DESCRIPTOR.message_types_by_name['GetConfigItemResponse'] = _GETCONFIGITEMRESPONSE
DESCRIPTOR.message_types_by_name['RecoverRequest'] = _RECOVERREQUEST
DESCRIPTOR.message_types_by_name['RecoverResponse'] = _RECOVERRESPONSE
DESCRIPTOR.message_types_by_name['BackupAdditionalRequest'] = _BACKUPADDITIONALREQUEST