hgitaly 2.10.0__tar.gz → 17.8.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {hgitaly-2.10.0/hgitaly.egg-info → hgitaly-17.8.1}/PKG-INFO +1 -1
- hgitaly-17.8.1/hgitaly/VERSION +1 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/stub/diff_pb2.py +6 -6
- hgitaly-17.8.1/hgitaly/stub/mercurial_aux_git_pb2.py +35 -0
- hgitaly-17.8.1/hgitaly/stub/mercurial_aux_git_pb2_grpc.py +147 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1/hgitaly.egg-info}/PKG-INFO +1 -1
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly.egg-info/SOURCES.txt +3 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/tests_with_gitaly/comparison.py +4 -1
- {hgitaly-2.10.0 → hgitaly-17.8.1}/tests_with_gitaly/test_commit.py +1 -0
- hgitaly-17.8.1/tests_with_gitaly/test_mercurial_aux_git.py +100 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/tests_with_gitaly/test_ref.py +1 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/tests_with_gitaly/test_repository_service.py +2 -0
- hgitaly-2.10.0/hgitaly/VERSION +0 -1
- {hgitaly-2.10.0 → hgitaly-17.8.1}/LICENSE +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/MANIFEST.in +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/README.md +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgext3rd/__init__.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgext3rd/hgitaly/__init__.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgext3rd/hgitaly/revset.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgext3rd/hgitaly/tests/__init__.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgext3rd/hgitaly/tests/test_revset.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgext3rd/hgitaly/tests/test_serve.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/__init__.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/branch.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/changelog.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/diff.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/errors.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/feature.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/file_content.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/file_context.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/git.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/gitlab_ref.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/license_detector/__init__.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/license_detector/spdx-licenses.json +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/linguist/__init__.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/linguist/languages.json +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/logging.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/manifest.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/message.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/oid.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/pagination.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/path.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/peer.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/procutil.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/repository.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/revision.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/revset.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/scripts.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/server/__init__.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/server/address.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/server/mono.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/server/prefork.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/server/tests/__init__.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/server/tests/test_address.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/server/tests/test_mono.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/server/tests/test_prefork.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/server/tests/test_worker.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/server/worker.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/service/__init__.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/service/analysis.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/service/blob.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/service/commit.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/service/diff.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/service/interceptors.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/service/mercurial_changeset.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/service/mercurial_operations.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/service/mercurial_repository.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/service/operations.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/service/ref.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/service/repository.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/service/server.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/service/tests/__init__.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/service/tests/fixture.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/service/tests/test_analysis.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/service/tests/test_blob.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/service/tests/test_commit.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/service/tests/test_default_branch.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/service/tests/test_diff.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/service/tests/test_mercurial_changeset.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/service/tests/test_mercurial_operations.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/service/tests/test_mercurial_repository.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/service/tests/test_operations.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/service/tests/test_ref.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/service/tests/test_repository_service.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/service/tests/test_server.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/servicer.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/ssh.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/stream.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/stub/__init__.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/stub/analysis_pb2.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/stub/analysis_pb2_grpc.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/stub/blob_pb2.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/stub/blob_pb2_grpc.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/stub/commit_pb2.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/stub/commit_pb2_grpc.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/stub/diff_pb2_grpc.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/stub/errors_pb2.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/stub/errors_pb2_grpc.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/stub/lint_pb2.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/stub/lint_pb2_grpc.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/stub/mercurial_changeset_pb2.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/stub/mercurial_changeset_pb2_grpc.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/stub/mercurial_operations_pb2.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/stub/mercurial_operations_pb2_grpc.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/stub/mercurial_repository_pb2.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/stub/mercurial_repository_pb2_grpc.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/stub/operations_pb2.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/stub/operations_pb2_grpc.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/stub/ref_pb2.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/stub/ref_pb2_grpc.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/stub/remote_pb2.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/stub/remote_pb2_grpc.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/stub/repository_pb2.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/stub/repository_pb2_grpc.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/stub/server_pb2.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/stub/server_pb2_grpc.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/stub/shared_pb2.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/stub/shared_pb2_grpc.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/tag.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/testing/__init__.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/testing/bundle.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/testing/context.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/testing/grpc.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/testing/ssh.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/testing/sshd.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/testing/storage.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/testing/tests/__init__.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/testing/tests/test_sshd.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/tests/__init__.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/tests/common.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/tests/test_branch.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/tests/test_diff.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/tests/test_errors.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/tests/test_feature.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/tests/test_file_context.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/tests/test_gitlab_ref.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/tests/test_license_detector.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/tests/test_linguist.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/tests/test_manifest.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/tests/test_messages.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/tests/test_oid.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/tests/test_peer.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/tests/test_repository.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/tests/test_revision.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/tests/test_revset.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/tests/test_servicer.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/tests/test_stream.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/tests/test_tag.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/tests/test_workdir.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/util.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly/workdir.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly.egg-info/dependency_links.txt +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly.egg-info/entry_points.txt +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly.egg-info/requires.txt +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/hgitaly.egg-info/top_level.txt +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/install-requirements.txt +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/setup.cfg +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/setup.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/tests_with_gitaly/__init__.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/tests_with_gitaly/conftest.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/tests_with_gitaly/gitaly.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/tests_with_gitaly/hgitaly_rhgitaly_comparison.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/tests_with_gitaly/rhgitaly.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/tests_with_gitaly/test_blob_tree.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/tests_with_gitaly/test_comparison.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/tests_with_gitaly/test_diff.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/tests_with_gitaly/test_gitaly_server.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/tests_with_gitaly/test_mercurial_repository.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/tests_with_gitaly/test_operations.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/tests_with_gitaly/test_remote.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/tests_with_gitaly/test_rhgitaly_server.py +0 -0
- {hgitaly-2.10.0 → hgitaly-17.8.1}/tests_with_gitaly/test_server.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
17.8.1
|
|
@@ -15,7 +15,7 @@ from . import lint_pb2 as lint__pb2
|
|
|
15
15
|
from . import shared_pb2 as shared__pb2
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\ndiff.proto\x12\x06gitaly\x1a\nlint.proto\x1a\x0cshared.proto\"\xd8\x06\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\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\x12h\n\"max_patch_bytes_for_file_extension\x18\x10 \x03(\x0b\x32<.gitaly.CommitDiffRequest.MaxPatchBytesForFileExtensionEntry\x12G\n\x12whitespace_changes\x18\x11 \x01(\x0e\x32+.gitaly.CommitDiffRequest.WhitespaceChanges\x12\x19\n\x11\x63ollect_all_paths\x18\x12 \x01(\x08\x1a\x44\n\"MaxPatchBytesForFileExtensionEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x05:\x02\x38\x01\"%\n\x08\x44iffMode\x12\x0b\n\x07\x44\x45\x46\x41ULT\x10\x00\x12\x0c\n\x08WORDDIFF\x10\x01\"y\n\x11WhitespaceChanges\x12\"\n\x1eWHITESPACE_CHANGES_UNSPECIFIED\x10\x00\x12\x1d\n\x19WHITESPACE_CHANGES_IGNORE\x10\x01\x12!\n\x1dWHITESPACE_CHANGES_IGNORE_ALL\x10\x02J\x04\x08\x04\x10\x05R\x18ignore_whitespace_change\"\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\"\xda\x05\n\x17\x46indChangedPathsRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x13\n\x07\x63ommits\x18\x02 \x03(\tB\x02\x18\x01\x12\x39\n\x08requests\x18\x03 \x03(\x0b\x32\'.gitaly.FindChangedPathsRequest.Request\x12S\n\x16merge_commit_diff_mode\x18\x04 \x01(\x0e\x32\x33.gitaly.FindChangedPathsRequest.MergeCommitDiffMode\x12\x14\n\x0c\x66ind_renames\x18\x05 \x01(\x08\x1a\xc2\x02\n\x07Request\x12K\n\x0ctree_request\x18\x01 \x01(\x0b\x32\x33.gitaly.FindChangedPathsRequest.Request.TreeRequestH\x00\x12O\n\x0e\x63ommit_request\x18\x02 \x01(\x0b\x32\x35.gitaly.FindChangedPathsRequest.Request.CommitRequestH\x00\x1a\x46\n\x0bTreeRequest\x12\x1a\n\x12left_tree_revision\x18\x01 \x01(\t\x12\x1b\n\x13right_tree_revision\x18\x02 \x01(\t\x1aI\n\rCommitRequest\x12\x17\n\x0f\x63ommit_revision\x18\x01 \x01(\t\x12\x1f\n\x17parent_commit_revisions\x18\x02 \x03(\tB\x06\n\x04type\"\x90\x01\n\x13MergeCommitDiffMode\x12&\n\"MERGE_COMMIT_DIFF_MODE_UNSPECIFIED\x10\x00\x12)\n%MERGE_COMMIT_DIFF_MODE_INCLUDE_MERGES\x10\x01\x12&\n\"MERGE_COMMIT_DIFF_MODE_ALL_PARENTS\x10\x02\"?\n\x18\x46indChangedPathsResponse\x12#\n\x05paths\x18\x01 \x03(\x0b\x32\x14.gitaly.ChangedPaths\"\x83\x02\n\x0c\x43hangedPaths\x12\x0c\n\x04path\x18\x01 \x01(\x0c\x12+\n\x06status\x18\x02 \x01(\x0e\x32\x1b.gitaly.ChangedPaths.Status\x12\x10\n\x08old_mode\x18\x03 \x01(\x05\x12\x10\n\x08new_mode\x18\x04 \x01(\x05\x12\x13\n\x0bold_blob_id\x18\x05 \x01(\t\x12\x13\n\x0bnew_blob_id\x18\x06 \x01(\t\x12\x10\n\x08old_path\x18\x07 \x01(\x0c\"X\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\x12\x0b\n\x07RENAMED\x10\x05\"m\n\x11GetPatchIDRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x14\n\x0cold_revision\x18\x02 \x01(\x0c\x12\x14\n\x0cnew_revision\x18\x03 \x01(\x0c\"&\n\x12GetPatchIDResponse\x12\x10\n\x08patch_id\x18\x01 \x01(\t\"+\n\tRangePair\x12\x0e\n\x06range1\x18\x01 \x01(\t\x12\x0e\n\x06range2\x18\x02 \x01(\t\"+\n\rRevisionRange\x12\x0c\n\x04rev1\x18\x01 \x01(\t\x12\x0c\n\x04rev2\x18\x02 \x01(\t\"=\n\x11\x42\x61seWithRevisions\x12\x0c\n\x04\x62\x61se\x18\x01 \x01(\t\x12\x0c\n\x04rev1\x18\x02 \x01(\t\x12\x0c\n\x04rev2\x18\x03 \x01(\t\"\xe5\x01\n\x13RawRangeDiffRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\'\n\nrange_pair\x18\x02 \x01(\x0b\x32\x11.gitaly.RangePairH\x00\x12/\n\x0erevision_range\x18\x03 \x01(\x0b\x32\x15.gitaly.RevisionRangeH\x00\x12\x38\n\x13\x62\x61se_with_revisions\x18\x04 \x01(\x0b\x32\x19.gitaly.BaseWithRevisionsH\x00\x42\x0c\n\nrange_spec\"$\n\x14RawRangeDiffResponse\x12\x0c\n\x04\x64\x61ta\x18\x01 \x01(\x0c\"\xe2\x01\n\x10RangeDiffRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\'\n\nrange_pair\x18\x02 \x01(\x0b\x32\x11.gitaly.RangePairH\x00\x12/\n\x0erevision_range\x18\x03 \x01(\x0b\x32\x15.gitaly.RevisionRangeH\x00\x12\x38\n\x13\x62\x61se_with_revisions\x18\x04 \x01(\x0b\x32\x19.gitaly.BaseWithRevisionsH\x00\x42\x0c\n\nrange_spec\"\xc4\x02\n\x11RangeDiffResponse\x12\x16\n\x0e\x66rom_commit_id\x18\x01 \x01(\t\x12\x14\n\x0cto_commit_id\x18\x02 \x01(\t\x12\x38\n\ncomparison\x18\x03 \x01(\x0e\x32$.gitaly.RangeDiffResponse.Comparator\x12\x1c\n\x14\x63ommit_message_title\x18\x07 \x01(\t\x12\x12\n\npatch_data\x18\x08 \x01(\x0c\x12\x14\n\x0c\x65nd_of_patch\x18\t \x01(\x08\"\x7f\n\nComparator\x12 \n\x1c\x43OMPARATOR_EQUAL_UNSPECIFIED\x10\x00\x12\x1b\n\x17\x43OMPARATOR_GREATER_THAN\x10\x01\x12\x18\n\x14\x43OMPARATOR_LESS_THAN\x10\x02\x12\x18\n\x14\x43OMPARATOR_NOT_EQUAL\x10\x03\"\xf9\x03\n\x10\x44iffBlobsRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x35\n\nblob_pairs\x18\x02 \x03(\x0b\x32!.gitaly.DiffBlobsRequest.BlobPair\x12\x34\n\tdiff_mode\x18\x03 \x01(\x0e\x32!.gitaly.DiffBlobsRequest.DiffMode\x12\x46\n\x12whitespace_changes\x18\x04 \x01(\x0e\x32*.gitaly.DiffBlobsRequest.WhitespaceChanges\x12\x19\n\x11patch_bytes_limit\x18\x05 \x01(\x05\x1a\x31\n\x08\x42lobPair\x12\x11\n\tleft_blob\x18\x01 \x01(\x0c\x12\x12\n\nright_blob\x18\x02 \x01(\x0c\"9\n\x08\x44iffMode\x12\x19\n\x15\x44IFF_MODE_UNSPECIFIED\x10\x00\x12\x12\n\x0e\x44IFF_MODE_WORD\x10\x01\"y\n\x11WhitespaceChanges\x12\"\n\x1eWHITESPACE_CHANGES_UNSPECIFIED\x10\x00\x12\x1d\n\x19WHITESPACE_CHANGES_IGNORE\x10\x01\x12!\n\x1dWHITESPACE_CHANGES_IGNORE_ALL\x10\x02\"\
|
|
18
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\ndiff.proto\x12\x06gitaly\x1a\nlint.proto\x1a\x0cshared.proto\"\xd8\x06\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\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\x12h\n\"max_patch_bytes_for_file_extension\x18\x10 \x03(\x0b\x32<.gitaly.CommitDiffRequest.MaxPatchBytesForFileExtensionEntry\x12G\n\x12whitespace_changes\x18\x11 \x01(\x0e\x32+.gitaly.CommitDiffRequest.WhitespaceChanges\x12\x19\n\x11\x63ollect_all_paths\x18\x12 \x01(\x08\x1a\x44\n\"MaxPatchBytesForFileExtensionEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x05:\x02\x38\x01\"%\n\x08\x44iffMode\x12\x0b\n\x07\x44\x45\x46\x41ULT\x10\x00\x12\x0c\n\x08WORDDIFF\x10\x01\"y\n\x11WhitespaceChanges\x12\"\n\x1eWHITESPACE_CHANGES_UNSPECIFIED\x10\x00\x12\x1d\n\x19WHITESPACE_CHANGES_IGNORE\x10\x01\x12!\n\x1dWHITESPACE_CHANGES_IGNORE_ALL\x10\x02J\x04\x08\x04\x10\x05R\x18ignore_whitespace_change\"\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\"\xda\x05\n\x17\x46indChangedPathsRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x13\n\x07\x63ommits\x18\x02 \x03(\tB\x02\x18\x01\x12\x39\n\x08requests\x18\x03 \x03(\x0b\x32\'.gitaly.FindChangedPathsRequest.Request\x12S\n\x16merge_commit_diff_mode\x18\x04 \x01(\x0e\x32\x33.gitaly.FindChangedPathsRequest.MergeCommitDiffMode\x12\x14\n\x0c\x66ind_renames\x18\x05 \x01(\x08\x1a\xc2\x02\n\x07Request\x12K\n\x0ctree_request\x18\x01 \x01(\x0b\x32\x33.gitaly.FindChangedPathsRequest.Request.TreeRequestH\x00\x12O\n\x0e\x63ommit_request\x18\x02 \x01(\x0b\x32\x35.gitaly.FindChangedPathsRequest.Request.CommitRequestH\x00\x1a\x46\n\x0bTreeRequest\x12\x1a\n\x12left_tree_revision\x18\x01 \x01(\t\x12\x1b\n\x13right_tree_revision\x18\x02 \x01(\t\x1aI\n\rCommitRequest\x12\x17\n\x0f\x63ommit_revision\x18\x01 \x01(\t\x12\x1f\n\x17parent_commit_revisions\x18\x02 \x03(\tB\x06\n\x04type\"\x90\x01\n\x13MergeCommitDiffMode\x12&\n\"MERGE_COMMIT_DIFF_MODE_UNSPECIFIED\x10\x00\x12)\n%MERGE_COMMIT_DIFF_MODE_INCLUDE_MERGES\x10\x01\x12&\n\"MERGE_COMMIT_DIFF_MODE_ALL_PARENTS\x10\x02\"?\n\x18\x46indChangedPathsResponse\x12#\n\x05paths\x18\x01 \x03(\x0b\x32\x14.gitaly.ChangedPaths\"\x83\x02\n\x0c\x43hangedPaths\x12\x0c\n\x04path\x18\x01 \x01(\x0c\x12+\n\x06status\x18\x02 \x01(\x0e\x32\x1b.gitaly.ChangedPaths.Status\x12\x10\n\x08old_mode\x18\x03 \x01(\x05\x12\x10\n\x08new_mode\x18\x04 \x01(\x05\x12\x13\n\x0bold_blob_id\x18\x05 \x01(\t\x12\x13\n\x0bnew_blob_id\x18\x06 \x01(\t\x12\x10\n\x08old_path\x18\x07 \x01(\x0c\"X\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\x12\x0b\n\x07RENAMED\x10\x05\"m\n\x11GetPatchIDRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x14\n\x0cold_revision\x18\x02 \x01(\x0c\x12\x14\n\x0cnew_revision\x18\x03 \x01(\x0c\"&\n\x12GetPatchIDResponse\x12\x10\n\x08patch_id\x18\x01 \x01(\t\"+\n\tRangePair\x12\x0e\n\x06range1\x18\x01 \x01(\t\x12\x0e\n\x06range2\x18\x02 \x01(\t\"+\n\rRevisionRange\x12\x0c\n\x04rev1\x18\x01 \x01(\t\x12\x0c\n\x04rev2\x18\x02 \x01(\t\"=\n\x11\x42\x61seWithRevisions\x12\x0c\n\x04\x62\x61se\x18\x01 \x01(\t\x12\x0c\n\x04rev1\x18\x02 \x01(\t\x12\x0c\n\x04rev2\x18\x03 \x01(\t\"\xe5\x01\n\x13RawRangeDiffRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\'\n\nrange_pair\x18\x02 \x01(\x0b\x32\x11.gitaly.RangePairH\x00\x12/\n\x0erevision_range\x18\x03 \x01(\x0b\x32\x15.gitaly.RevisionRangeH\x00\x12\x38\n\x13\x62\x61se_with_revisions\x18\x04 \x01(\x0b\x32\x19.gitaly.BaseWithRevisionsH\x00\x42\x0c\n\nrange_spec\"$\n\x14RawRangeDiffResponse\x12\x0c\n\x04\x64\x61ta\x18\x01 \x01(\x0c\"\xe2\x01\n\x10RangeDiffRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\'\n\nrange_pair\x18\x02 \x01(\x0b\x32\x11.gitaly.RangePairH\x00\x12/\n\x0erevision_range\x18\x03 \x01(\x0b\x32\x15.gitaly.RevisionRangeH\x00\x12\x38\n\x13\x62\x61se_with_revisions\x18\x04 \x01(\x0b\x32\x19.gitaly.BaseWithRevisionsH\x00\x42\x0c\n\nrange_spec\"\xc4\x02\n\x11RangeDiffResponse\x12\x16\n\x0e\x66rom_commit_id\x18\x01 \x01(\t\x12\x14\n\x0cto_commit_id\x18\x02 \x01(\t\x12\x38\n\ncomparison\x18\x03 \x01(\x0e\x32$.gitaly.RangeDiffResponse.Comparator\x12\x1c\n\x14\x63ommit_message_title\x18\x07 \x01(\t\x12\x12\n\npatch_data\x18\x08 \x01(\x0c\x12\x14\n\x0c\x65nd_of_patch\x18\t \x01(\x08\"\x7f\n\nComparator\x12 \n\x1c\x43OMPARATOR_EQUAL_UNSPECIFIED\x10\x00\x12\x1b\n\x17\x43OMPARATOR_GREATER_THAN\x10\x01\x12\x18\n\x14\x43OMPARATOR_LESS_THAN\x10\x02\x12\x18\n\x14\x43OMPARATOR_NOT_EQUAL\x10\x03\"\xf9\x03\n\x10\x44iffBlobsRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x35\n\nblob_pairs\x18\x02 \x03(\x0b\x32!.gitaly.DiffBlobsRequest.BlobPair\x12\x34\n\tdiff_mode\x18\x03 \x01(\x0e\x32!.gitaly.DiffBlobsRequest.DiffMode\x12\x46\n\x12whitespace_changes\x18\x04 \x01(\x0e\x32*.gitaly.DiffBlobsRequest.WhitespaceChanges\x12\x19\n\x11patch_bytes_limit\x18\x05 \x01(\x05\x1a\x31\n\x08\x42lobPair\x12\x11\n\tleft_blob\x18\x01 \x01(\x0c\x12\x12\n\nright_blob\x18\x02 \x01(\x0c\"9\n\x08\x44iffMode\x12\x19\n\x15\x44IFF_MODE_UNSPECIFIED\x10\x00\x12\x12\n\x0e\x44IFF_MODE_WORD\x10\x01\"y\n\x11WhitespaceChanges\x12\"\n\x1eWHITESPACE_CHANGES_UNSPECIFIED\x10\x00\x12\x1d\n\x19WHITESPACE_CHANGES_IGNORE\x10\x01\x12!\n\x1dWHITESPACE_CHANGES_IGNORE_ALL\x10\x02\"\xff\x01\n\x11\x44iffBlobsResponse\x12\x14\n\x0cleft_blob_id\x18\x01 \x01(\t\x12\x15\n\rright_blob_id\x18\x02 \x01(\t\x12\r\n\x05patch\x18\x03 \x01(\x0c\x12\x30\n\x06status\x18\x04 \x01(\x0e\x32 .gitaly.DiffBlobsResponse.Status\x12\x0e\n\x06\x62inary\x18\x05 \x01(\x08\x12\x1e\n\x16over_patch_bytes_limit\x18\x06 \x01(\x08\x12\x12\n\npatch_size\x18\x07 \x01(\x05\"8\n\x06Status\x12\x15\n\x11STATUS_INCOMPLETE\x10\x00\x12\x17\n\x13STATUS_END_OF_PATCH\x10\x01\x32\xa4\x06\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\x12K\n\nGetPatchID\x12\x19.gitaly.GetPatchIDRequest\x1a\x1a.gitaly.GetPatchIDResponse\"\x06\xfa\x97(\x02\x08\x02\x12S\n\x0cRawRangeDiff\x12\x1b.gitaly.RawRangeDiffRequest\x1a\x1c.gitaly.RawRangeDiffResponse\"\x06\xfa\x97(\x02\x08\x02\x30\x01\x12J\n\tRangeDiff\x12\x18.gitaly.RangeDiffRequest\x1a\x19.gitaly.RangeDiffResponse\"\x06\xfa\x97(\x02\x08\x02\x30\x01\x12J\n\tDiffBlobs\x12\x18.gitaly.DiffBlobsRequest\x1a\x19.gitaly.DiffBlobsResponse\"\x06\xfa\x97(\x02\x08\x02\x30\x01\x42\x34Z2gitlab.com/gitlab-org/gitaly/v16/proto/go/gitalypbb\x06proto3')
|
|
19
19
|
|
|
20
20
|
_globals = globals()
|
|
21
21
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -143,9 +143,9 @@ if _descriptor._USE_C_DESCRIPTORS == False:
|
|
|
143
143
|
_globals['_DIFFBLOBSREQUEST_WHITESPACECHANGES']._serialized_start=752
|
|
144
144
|
_globals['_DIFFBLOBSREQUEST_WHITESPACECHANGES']._serialized_end=873
|
|
145
145
|
_globals['_DIFFBLOBSRESPONSE']._serialized_start=4723
|
|
146
|
-
_globals['_DIFFBLOBSRESPONSE']._serialized_end=
|
|
147
|
-
_globals['_DIFFBLOBSRESPONSE_STATUS']._serialized_start=
|
|
148
|
-
_globals['_DIFFBLOBSRESPONSE_STATUS']._serialized_end=
|
|
149
|
-
_globals['_DIFFSERVICE']._serialized_start=
|
|
150
|
-
_globals['_DIFFSERVICE']._serialized_end=
|
|
146
|
+
_globals['_DIFFBLOBSRESPONSE']._serialized_end=4978
|
|
147
|
+
_globals['_DIFFBLOBSRESPONSE_STATUS']._serialized_start=4922
|
|
148
|
+
_globals['_DIFFBLOBSRESPONSE_STATUS']._serialized_end=4978
|
|
149
|
+
_globals['_DIFFSERVICE']._serialized_start=4981
|
|
150
|
+
_globals['_DIFFSERVICE']._serialized_end=5785
|
|
151
151
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: mercurial-aux-git.proto
|
|
4
|
+
"""Generated protocol buffer code."""
|
|
5
|
+
from google.protobuf import descriptor as _descriptor
|
|
6
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
7
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
8
|
+
from google.protobuf.internal import builder as _builder
|
|
9
|
+
# @@protoc_insertion_point(imports)
|
|
10
|
+
|
|
11
|
+
_sym_db = _symbol_database.Default()
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
from . import lint_pb2 as lint__pb2
|
|
15
|
+
from . import shared_pb2 as shared__pb2
|
|
16
|
+
from . import repository_pb2 as repository__pb2
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x17mercurial-aux-git.proto\x12\x07hgitaly\x1a\nlint.proto\x1a\x0cshared.proto\x1a\x10repository.proto2\xcd\x02\n\x16MercurialAuxGitService\x12Y\n\x12\x41uxGitCreateBundle\x12\x1b.gitaly.CreateBundleRequest\x1a\x1c.gitaly.CreateBundleResponse\"\x06\xfa\x97(\x02\x08\x02\x30\x01\x12y\n\x16\x41uxGitCreateFromBundle\x12).gitaly.CreateRepositoryFromBundleRequest\x1a*.gitaly.CreateRepositoryFromBundleResponse\"\x06\xfa\x97(\x02\x08\x01(\x01\x12]\n\x14\x41uxGitRepositorySize\x12\x1d.gitaly.RepositorySizeRequest\x1a\x1e.gitaly.RepositorySizeResponse\"\x06\xfa\x97(\x02\x08\x01\x62\x06proto3')
|
|
20
|
+
|
|
21
|
+
_globals = globals()
|
|
22
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
23
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'mercurial_aux_git_pb2', _globals)
|
|
24
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
25
|
+
|
|
26
|
+
DESCRIPTOR._options = None
|
|
27
|
+
_MERCURIALAUXGITSERVICE.methods_by_name['AuxGitCreateBundle']._options = None
|
|
28
|
+
_MERCURIALAUXGITSERVICE.methods_by_name['AuxGitCreateBundle']._serialized_options = b'\372\227(\002\010\002'
|
|
29
|
+
_MERCURIALAUXGITSERVICE.methods_by_name['AuxGitCreateFromBundle']._options = None
|
|
30
|
+
_MERCURIALAUXGITSERVICE.methods_by_name['AuxGitCreateFromBundle']._serialized_options = b'\372\227(\002\010\001'
|
|
31
|
+
_MERCURIALAUXGITSERVICE.methods_by_name['AuxGitRepositorySize']._options = None
|
|
32
|
+
_MERCURIALAUXGITSERVICE.methods_by_name['AuxGitRepositorySize']._serialized_options = b'\372\227(\002\010\001'
|
|
33
|
+
_globals['_MERCURIALAUXGITSERVICE']._serialized_start=81
|
|
34
|
+
_globals['_MERCURIALAUXGITSERVICE']._serialized_end=414
|
|
35
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
2
|
+
"""Client and server classes corresponding to protobuf-defined services."""
|
|
3
|
+
import grpc
|
|
4
|
+
|
|
5
|
+
from . import repository_pb2 as repository__pb2
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class MercurialAuxGitServiceStub(object):
|
|
9
|
+
"""Methods working on auxiliary Git repositories
|
|
10
|
+
|
|
11
|
+
The auxiliary Git repositories are mostly meant to support mirroring
|
|
12
|
+
to external Git services.
|
|
13
|
+
These are set aside so that Gitaly does not handle them.
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
def __init__(self, channel):
|
|
17
|
+
"""Constructor.
|
|
18
|
+
|
|
19
|
+
Args:
|
|
20
|
+
channel: A grpc.Channel.
|
|
21
|
+
"""
|
|
22
|
+
self.AuxGitCreateBundle = channel.unary_stream(
|
|
23
|
+
'/hgitaly.MercurialAuxGitService/AuxGitCreateBundle',
|
|
24
|
+
request_serializer=repository__pb2.CreateBundleRequest.SerializeToString,
|
|
25
|
+
response_deserializer=repository__pb2.CreateBundleResponse.FromString,
|
|
26
|
+
)
|
|
27
|
+
self.AuxGitCreateFromBundle = channel.stream_unary(
|
|
28
|
+
'/hgitaly.MercurialAuxGitService/AuxGitCreateFromBundle',
|
|
29
|
+
request_serializer=repository__pb2.CreateRepositoryFromBundleRequest.SerializeToString,
|
|
30
|
+
response_deserializer=repository__pb2.CreateRepositoryFromBundleResponse.FromString,
|
|
31
|
+
)
|
|
32
|
+
self.AuxGitRepositorySize = channel.unary_unary(
|
|
33
|
+
'/hgitaly.MercurialAuxGitService/AuxGitRepositorySize',
|
|
34
|
+
request_serializer=repository__pb2.RepositorySizeRequest.SerializeToString,
|
|
35
|
+
response_deserializer=repository__pb2.RepositorySizeResponse.FromString,
|
|
36
|
+
)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
class MercurialAuxGitServiceServicer(object):
|
|
40
|
+
"""Methods working on auxiliary Git repositories
|
|
41
|
+
|
|
42
|
+
The auxiliary Git repositories are mostly meant to support mirroring
|
|
43
|
+
to external Git services.
|
|
44
|
+
These are set aside so that Gitaly does not handle them.
|
|
45
|
+
"""
|
|
46
|
+
|
|
47
|
+
def AuxGitCreateBundle(self, request, context):
|
|
48
|
+
"""Missing associated documentation comment in .proto file."""
|
|
49
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
50
|
+
context.set_details('Method not implemented!')
|
|
51
|
+
raise NotImplementedError('Method not implemented!')
|
|
52
|
+
|
|
53
|
+
def AuxGitCreateFromBundle(self, request_iterator, context):
|
|
54
|
+
"""Missing associated documentation comment in .proto file."""
|
|
55
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
56
|
+
context.set_details('Method not implemented!')
|
|
57
|
+
raise NotImplementedError('Method not implemented!')
|
|
58
|
+
|
|
59
|
+
def AuxGitRepositorySize(self, request, context):
|
|
60
|
+
"""Missing associated documentation comment in .proto file."""
|
|
61
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
62
|
+
context.set_details('Method not implemented!')
|
|
63
|
+
raise NotImplementedError('Method not implemented!')
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
def add_MercurialAuxGitServiceServicer_to_server(servicer, server):
|
|
67
|
+
rpc_method_handlers = {
|
|
68
|
+
'AuxGitCreateBundle': grpc.unary_stream_rpc_method_handler(
|
|
69
|
+
servicer.AuxGitCreateBundle,
|
|
70
|
+
request_deserializer=repository__pb2.CreateBundleRequest.FromString,
|
|
71
|
+
response_serializer=repository__pb2.CreateBundleResponse.SerializeToString,
|
|
72
|
+
),
|
|
73
|
+
'AuxGitCreateFromBundle': grpc.stream_unary_rpc_method_handler(
|
|
74
|
+
servicer.AuxGitCreateFromBundle,
|
|
75
|
+
request_deserializer=repository__pb2.CreateRepositoryFromBundleRequest.FromString,
|
|
76
|
+
response_serializer=repository__pb2.CreateRepositoryFromBundleResponse.SerializeToString,
|
|
77
|
+
),
|
|
78
|
+
'AuxGitRepositorySize': grpc.unary_unary_rpc_method_handler(
|
|
79
|
+
servicer.AuxGitRepositorySize,
|
|
80
|
+
request_deserializer=repository__pb2.RepositorySizeRequest.FromString,
|
|
81
|
+
response_serializer=repository__pb2.RepositorySizeResponse.SerializeToString,
|
|
82
|
+
),
|
|
83
|
+
}
|
|
84
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
85
|
+
'hgitaly.MercurialAuxGitService', rpc_method_handlers)
|
|
86
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
# This class is part of an EXPERIMENTAL API.
|
|
90
|
+
class MercurialAuxGitService(object):
|
|
91
|
+
"""Methods working on auxiliary Git repositories
|
|
92
|
+
|
|
93
|
+
The auxiliary Git repositories are mostly meant to support mirroring
|
|
94
|
+
to external Git services.
|
|
95
|
+
These are set aside so that Gitaly does not handle them.
|
|
96
|
+
"""
|
|
97
|
+
|
|
98
|
+
@staticmethod
|
|
99
|
+
def AuxGitCreateBundle(request,
|
|
100
|
+
target,
|
|
101
|
+
options=(),
|
|
102
|
+
channel_credentials=None,
|
|
103
|
+
call_credentials=None,
|
|
104
|
+
insecure=False,
|
|
105
|
+
compression=None,
|
|
106
|
+
wait_for_ready=None,
|
|
107
|
+
timeout=None,
|
|
108
|
+
metadata=None):
|
|
109
|
+
return grpc.experimental.unary_stream(request, target, '/hgitaly.MercurialAuxGitService/AuxGitCreateBundle',
|
|
110
|
+
repository__pb2.CreateBundleRequest.SerializeToString,
|
|
111
|
+
repository__pb2.CreateBundleResponse.FromString,
|
|
112
|
+
options, channel_credentials,
|
|
113
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
114
|
+
|
|
115
|
+
@staticmethod
|
|
116
|
+
def AuxGitCreateFromBundle(request_iterator,
|
|
117
|
+
target,
|
|
118
|
+
options=(),
|
|
119
|
+
channel_credentials=None,
|
|
120
|
+
call_credentials=None,
|
|
121
|
+
insecure=False,
|
|
122
|
+
compression=None,
|
|
123
|
+
wait_for_ready=None,
|
|
124
|
+
timeout=None,
|
|
125
|
+
metadata=None):
|
|
126
|
+
return grpc.experimental.stream_unary(request_iterator, target, '/hgitaly.MercurialAuxGitService/AuxGitCreateFromBundle',
|
|
127
|
+
repository__pb2.CreateRepositoryFromBundleRequest.SerializeToString,
|
|
128
|
+
repository__pb2.CreateRepositoryFromBundleResponse.FromString,
|
|
129
|
+
options, channel_credentials,
|
|
130
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
131
|
+
|
|
132
|
+
@staticmethod
|
|
133
|
+
def AuxGitRepositorySize(request,
|
|
134
|
+
target,
|
|
135
|
+
options=(),
|
|
136
|
+
channel_credentials=None,
|
|
137
|
+
call_credentials=None,
|
|
138
|
+
insecure=False,
|
|
139
|
+
compression=None,
|
|
140
|
+
wait_for_ready=None,
|
|
141
|
+
timeout=None,
|
|
142
|
+
metadata=None):
|
|
143
|
+
return grpc.experimental.unary_unary(request, target, '/hgitaly.MercurialAuxGitService/AuxGitRepositorySize',
|
|
144
|
+
repository__pb2.RepositorySizeRequest.SerializeToString,
|
|
145
|
+
repository__pb2.RepositorySizeResponse.FromString,
|
|
146
|
+
options, channel_credentials,
|
|
147
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
@@ -98,6 +98,8 @@ hgitaly/stub/errors_pb2.py
|
|
|
98
98
|
hgitaly/stub/errors_pb2_grpc.py
|
|
99
99
|
hgitaly/stub/lint_pb2.py
|
|
100
100
|
hgitaly/stub/lint_pb2_grpc.py
|
|
101
|
+
hgitaly/stub/mercurial_aux_git_pb2.py
|
|
102
|
+
hgitaly/stub/mercurial_aux_git_pb2_grpc.py
|
|
101
103
|
hgitaly/stub/mercurial_changeset_pb2.py
|
|
102
104
|
hgitaly/stub/mercurial_changeset_pb2_grpc.py
|
|
103
105
|
hgitaly/stub/mercurial_operations_pb2.py
|
|
@@ -157,6 +159,7 @@ tests_with_gitaly/test_commit.py
|
|
|
157
159
|
tests_with_gitaly/test_comparison.py
|
|
158
160
|
tests_with_gitaly/test_diff.py
|
|
159
161
|
tests_with_gitaly/test_gitaly_server.py
|
|
162
|
+
tests_with_gitaly/test_mercurial_aux_git.py
|
|
160
163
|
tests_with_gitaly/test_mercurial_repository.py
|
|
161
164
|
tests_with_gitaly/test_operations.py
|
|
162
165
|
tests_with_gitaly/test_ref.py
|
|
@@ -274,7 +274,10 @@ class BaseRpcHelper:
|
|
|
274
274
|
|
|
275
275
|
def rpc(self, backend, **kwargs):
|
|
276
276
|
if self.repository_arg:
|
|
277
|
-
|
|
277
|
+
if backend == 'hg':
|
|
278
|
+
kwargs.setdefault('repository', self.comparison.hgitaly_repo)
|
|
279
|
+
else:
|
|
280
|
+
kwargs.setdefault('repository', self.comparison.gitaly_repo)
|
|
278
281
|
|
|
279
282
|
if self.streaming_request_field is not None:
|
|
280
283
|
request = self.stream_requests(**kwargs)
|
|
@@ -441,6 +441,7 @@ def test_compare_find_commit(gitaly_rhgitaly_comparison, hg_server):
|
|
|
441
441
|
assert_compare_errors(repository=None, # and no revision
|
|
442
442
|
same_details=False)
|
|
443
443
|
fixture.gitaly_repo.relative_path = 'unknown/repo'
|
|
444
|
+
fixture.hgitaly_repo.relative_path = 'unknown/repo'
|
|
444
445
|
assert_compare_errors(revision=b'HEAD', same_details=False)
|
|
445
446
|
|
|
446
447
|
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
from heptapod.testhelpers.git import GitRepo
|
|
2
|
+
|
|
3
|
+
from hgitaly.stub.shared_pb2 import Repository
|
|
4
|
+
from hgitaly.stub.repository_pb2 import (
|
|
5
|
+
CreateBundleRequest,
|
|
6
|
+
CreateRepositoryFromBundleRequest,
|
|
7
|
+
RepositorySizeRequest,
|
|
8
|
+
)
|
|
9
|
+
from hgitaly.stub.mercurial_aux_git_pb2_grpc import MercurialAuxGitServiceStub
|
|
10
|
+
from hgitaly.testing.storage import storage_path
|
|
11
|
+
|
|
12
|
+
import pytest
|
|
13
|
+
from . import skip_comparison_tests
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
if skip_comparison_tests(): # pragma no cover
|
|
17
|
+
pytestmark = pytest.mark.skip
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
def test_create_bundle_create_from_bundle(gitaly_rhgitaly_comparison_native,
|
|
21
|
+
tmpdir,
|
|
22
|
+
server_repos_root):
|
|
23
|
+
fixture = gitaly_rhgitaly_comparison_native
|
|
24
|
+
wrapper = fixture.hg_repo_wrapper
|
|
25
|
+
src_git_repo = fixture.git_repo
|
|
26
|
+
wrapper.write_commit('foo', message="Some foo")
|
|
27
|
+
wrapper.command('hpd-export-native-to-git')
|
|
28
|
+
# export worked
|
|
29
|
+
assert set(src_git_repo.branches()) == {b'branch/default'}
|
|
30
|
+
|
|
31
|
+
rpc_helper = fixture.rpc_helper(
|
|
32
|
+
hg_server='rhgitaly',
|
|
33
|
+
stub_cls=MercurialAuxGitServiceStub,
|
|
34
|
+
method_name='AuxGitCreateBundle',
|
|
35
|
+
request_cls=CreateBundleRequest,
|
|
36
|
+
streaming=True,
|
|
37
|
+
)
|
|
38
|
+
|
|
39
|
+
bundle_data = [r.data for r in rpc_helper.rpc('hg')]
|
|
40
|
+
|
|
41
|
+
# direct check
|
|
42
|
+
clone = GitRepo.create_from_bundle_data(
|
|
43
|
+
tmpdir / 'restored.git',
|
|
44
|
+
bundle_data,
|
|
45
|
+
stream=True,
|
|
46
|
+
tmpdir=tmpdir
|
|
47
|
+
)
|
|
48
|
+
assert clone.branch_titles() == {b'branch/default': b'Some foo'}
|
|
49
|
+
|
|
50
|
+
# remounting via rpc
|
|
51
|
+
rpc_helper = fixture.rpc_helper(
|
|
52
|
+
hg_server='rhgitaly',
|
|
53
|
+
stub_cls=MercurialAuxGitServiceStub,
|
|
54
|
+
method_name='AuxGitCreateFromBundle',
|
|
55
|
+
request_cls=CreateRepositoryFromBundleRequest,
|
|
56
|
+
streaming_request_field='data',
|
|
57
|
+
)
|
|
58
|
+
|
|
59
|
+
restored_gl_repo = Repository(
|
|
60
|
+
relative_path="restore2.git",
|
|
61
|
+
storage_name=fixture.gitaly_repo.storage_name
|
|
62
|
+
)
|
|
63
|
+
|
|
64
|
+
# rpc_helper does not know how to stream on bytes, and we need
|
|
65
|
+
# a custom repository field, let's get down to manual mode
|
|
66
|
+
def stream_requests():
|
|
67
|
+
first = True
|
|
68
|
+
for data in bundle_data:
|
|
69
|
+
if first:
|
|
70
|
+
kw = dict(repository=restored_gl_repo, data=data)
|
|
71
|
+
else:
|
|
72
|
+
kw = dict(data=data) # pragma no cover
|
|
73
|
+
yield CreateRepositoryFromBundleRequest(**kw)
|
|
74
|
+
first = False
|
|
75
|
+
|
|
76
|
+
rpc_helper.stubs['hg'].AuxGitCreateFromBundle(stream_requests())
|
|
77
|
+
|
|
78
|
+
clone2 = GitRepo(storage_path(server_repos_root)
|
|
79
|
+
/ '+hgitaly/hg-git/restore2.git')
|
|
80
|
+
assert clone2.branch_titles() == {b'branch/default': b'Some foo'}
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
def test_repository_size(gitaly_rhgitaly_comparison_native):
|
|
84
|
+
fixture = gitaly_rhgitaly_comparison_native
|
|
85
|
+
wrapper = fixture.hg_repo_wrapper
|
|
86
|
+
src_git_repo = fixture.git_repo
|
|
87
|
+
wrapper.write_commit('foo', message="Some foo",
|
|
88
|
+
content=b"foobar" * 17000)
|
|
89
|
+
wrapper.command('hpd-export-native-to-git')
|
|
90
|
+
# export worked
|
|
91
|
+
assert set(src_git_repo.branches()) == {b'branch/default'}
|
|
92
|
+
|
|
93
|
+
rpc_helper = fixture.rpc_helper(
|
|
94
|
+
hg_server='rhgitaly',
|
|
95
|
+
stub_cls=MercurialAuxGitServiceStub,
|
|
96
|
+
method_name='AuxGitRepositorySize',
|
|
97
|
+
request_cls=RepositorySizeRequest,
|
|
98
|
+
)
|
|
99
|
+
# results may vary according to how system reports size of small files
|
|
100
|
+
assert rpc_helper.rpc('hg').size > 20
|
|
@@ -190,6 +190,7 @@ def test_update_references(gitaly_comparison, server_repos_root):
|
|
|
190
190
|
|
|
191
191
|
# unknown storage
|
|
192
192
|
fixture.gitaly_repo.storage_name = 'unknown'
|
|
193
|
+
fixture.hgitaly_repo.storage_name = 'unknown'
|
|
193
194
|
assert_compare_errors(updates=[Update(reference=b'refs/pipelines/37',
|
|
194
195
|
new_object_id=default_rev)],
|
|
195
196
|
same_details=False)
|
|
@@ -719,6 +719,7 @@ def test_search_files_by_content(gitaly_comparison):
|
|
|
719
719
|
assert_compare_errors(ref=b'')
|
|
720
720
|
assert_compare_errors(repository=None)
|
|
721
721
|
fixture.gitaly_repo.relative_path = 'no/such/repo'
|
|
722
|
+
fixture.hgitaly_repo.relative_path = 'no/such/repo'
|
|
722
723
|
assert_compare_errors(query='foo', same_details=False)
|
|
723
724
|
|
|
724
725
|
|
|
@@ -793,6 +794,7 @@ def test_write_ref(gitaly_comparison, server_repos_root):
|
|
|
793
794
|
|
|
794
795
|
# unknown storage
|
|
795
796
|
fixture.gitaly_repo.storage_name = 'unknown'
|
|
797
|
+
fixture.hgitaly_repo.storage_name = 'unknown'
|
|
796
798
|
assert_compare_errors(ref=b'refs/pipelines/37', revision=default_rev,
|
|
797
799
|
same_details=False)
|
|
798
800
|
|
hgitaly-2.10.0/hgitaly/VERSION
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.10.0
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|