hgitaly 17.11.2__tar.gz → 18.0.0a1__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-17.11.2 → hgitaly-18.0.0a1}/.hgtags +1 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/PKG-INFO +1 -1
- hgitaly-18.0.0a1/hgitaly/VERSION +1 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/service/repository.py +11 -4
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/service/tests/test_repository_service.py +22 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/servicer.py +7 -1
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/testing/ssh.py +1 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/tests/test_servicer.py +18 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly.egg-info/PKG-INFO +1 -1
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly.egg-info/SOURCES.txt +7 -0
- hgitaly-18.0.0a1/protos/mercurial-aux-git.proto +33 -0
- hgitaly-18.0.0a1/ruby/lib/hgitaly/mercurial-aux-git_pb.rb +15 -0
- hgitaly-18.0.0a1/ruby/lib/hgitaly/mercurial-aux-git_services_pb.rb +29 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/ruby/lib/hgitaly/version.rb +1 -1
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/Cargo.lock +483 -29
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/rhgitaly/Cargo.toml +2 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/rhgitaly/build.rs +2 -0
- hgitaly-18.0.0a1/rust/rhgitaly/src/bundle.rs +300 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/rhgitaly/src/errors.rs +8 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/rhgitaly/src/main.rs +18 -2
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/rhgitaly/src/repository/spawner.rs +13 -3
- hgitaly-18.0.0a1/rust/rhgitaly/src/repository.rs +587 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/rhgitaly/src/service/analysis.rs +0 -1
- hgitaly-18.0.0a1/rust/rhgitaly/src/service/commit.rs +624 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/rhgitaly/src/service/diff.rs +41 -1
- hgitaly-18.0.0a1/rust/rhgitaly/src/service/mercurial_aux_git.rs +180 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/rhgitaly/src/service/mercurial_repository.rs +63 -2
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/rhgitaly/src/service/mod.rs +2 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/rhgitaly/src/service/ref.rs +130 -12
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/rhgitaly/src/service/remote.rs +125 -1
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/rhgitaly/src/service/repository.rs +78 -123
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/rhgitaly/src/service/server.rs +17 -1
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/rhgitaly/src/sidecar.rs +45 -1
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/tests_with_gitaly/test_ref.py +6 -2
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/tests_with_gitaly/test_remote.py +37 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/tests_with_gitaly/test_repository_service.py +28 -5
- hgitaly-17.11.2/hgitaly/VERSION +0 -1
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/.coveragerc +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/.gitlab-ci.yml +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/.hgignore +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/LICENSE +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/MANIFEST.in +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/README.md +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/ci/heptapod-sftp-push +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/ci/heptapod-sign-package +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/ci/heptapod_known_hosts.ssh +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/ci/upload-rhgitaly +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/conftest.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/dev-requirements.txt +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/examples/client.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/examples/client_list_lcft.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/generate-stubs +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgext3rd/__init__.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgext3rd/hgitaly/__init__.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgext3rd/hgitaly/revset.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgext3rd/hgitaly/tests/__init__.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgext3rd/hgitaly/tests/test_revset.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgext3rd/hgitaly/tests/test_serve.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/__init__.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/branch.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/changelog.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/diff.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/errors.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/feature.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/file_content.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/file_context.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/git.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/gitlab_ref.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/identification.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/license_detector/GPL-2.sample +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/license_detector/__init__.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/license_detector/spdx-licenses.json +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/linguist/__init__.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/linguist/languages.json +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/logging.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/manifest.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/message.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/oid.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/pagination.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/path.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/peer.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/procutil.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/repository.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/revision.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/revset.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/scripts.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/server/__init__.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/server/address.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/server/mono.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/server/prefork.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/server/tests/__init__.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/server/tests/test_address.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/server/tests/test_mono.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/server/tests/test_prefork.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/server/tests/test_worker.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/server/worker.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/service/__init__.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/service/analysis.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/service/blob.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/service/commit.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/service/diff.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/service/interceptors.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/service/mercurial_changeset.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/service/mercurial_operations.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/service/mercurial_repository.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/service/operations.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/service/ref.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/service/server.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/service/tests/__init__.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/service/tests/fixture.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/service/tests/test_analysis.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/service/tests/test_blob.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/service/tests/test_commit.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/service/tests/test_default_branch.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/service/tests/test_diff.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/service/tests/test_mercurial_changeset.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/service/tests/test_mercurial_operations.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/service/tests/test_mercurial_repository.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/service/tests/test_operations.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/service/tests/test_ref.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/service/tests/test_server.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/ssh.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/stream.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/stub/__init__.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/stub/analysis_pb2.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/stub/analysis_pb2_grpc.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/stub/blob_pb2.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/stub/blob_pb2_grpc.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/stub/commit_pb2.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/stub/commit_pb2_grpc.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/stub/diff_pb2.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/stub/diff_pb2_grpc.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/stub/errors_pb2.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/stub/errors_pb2_grpc.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/stub/lint_pb2.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/stub/lint_pb2_grpc.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/stub/mercurial_aux_git_pb2.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/stub/mercurial_aux_git_pb2_grpc.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/stub/mercurial_changeset_pb2.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/stub/mercurial_changeset_pb2_grpc.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/stub/mercurial_operations_pb2.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/stub/mercurial_operations_pb2_grpc.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/stub/mercurial_repository_pb2.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/stub/mercurial_repository_pb2_grpc.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/stub/operations_pb2.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/stub/operations_pb2_grpc.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/stub/ref_pb2.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/stub/ref_pb2_grpc.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/stub/remote_pb2.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/stub/remote_pb2_grpc.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/stub/repository_pb2.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/stub/repository_pb2_grpc.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/stub/server_pb2.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/stub/server_pb2_grpc.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/stub/shared_pb2.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/stub/shared_pb2_grpc.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/tag.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/testing/__init__.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/testing/bundle.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/testing/context.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/testing/data/authorized_keys +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/testing/data/backup_additional_no_git.tar +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/testing/data/id_ecdsa_user +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/testing/data/known_hosts +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/testing/data/ssh_host_ecdsa_key +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/testing/data/ssh_host_ecdsa_key.pub +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/testing/data/ssh_host_ed25519 +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/testing/data/ssh_host_ed25519.pub +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/testing/data/sshd_config +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/testing/grpc.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/testing/multiprocessing.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/testing/sshd.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/testing/storage.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/testing/tests/__init__.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/testing/tests/test_sshd.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/tests/__init__.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/tests/common.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/tests/test_branch.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/tests/test_diff.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/tests/test_errors.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/tests/test_feature.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/tests/test_file_context.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/tests/test_gitlab_ref.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/tests/test_identification.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/tests/test_license_detector.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/tests/test_linguist.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/tests/test_manifest.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/tests/test_messages.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/tests/test_oid.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/tests/test_peer.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/tests/test_repository.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/tests/test_revision.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/tests/test_revset.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/tests/test_stream.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/tests/test_tag.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/tests/test_workdir.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/util.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/workdir.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly.egg-info/dependency_links.txt +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly.egg-info/entry_points.txt +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly.egg-info/requires.txt +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly.egg-info/top_level.txt +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/install-requirements.txt +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/lint +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/protos/analysis.proto +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/protos/blob.proto +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/protos/cleanup.proto +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/protos/cluster.proto +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/protos/commit.proto +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/protos/conflicts.proto +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/protos/diff.proto +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/protos/errors.proto +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/protos/hook.proto +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/protos/internal.proto +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/protos/lint.proto +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/protos/log.proto +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/protos/mercurial-changeset.proto +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/protos/mercurial-operations.proto +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/protos/mercurial-repository.proto +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/protos/namespace.proto +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/protos/objectpool.proto +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/protos/operations.proto +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/protos/packfile.proto +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/protos/partition.proto +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/protos/praefect.proto +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/protos/ref.proto +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/protos/remote.proto +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/protos/repository.proto +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/protos/server.proto +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/protos/service_config.proto +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/protos/shared.proto +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/protos/smarthttp.proto +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/protos/ssh.proto +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/protos/transaction.proto +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/protos/wiki.proto +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/ruby/.ruby-version +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/ruby/Gemfile +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/ruby/README.md +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/ruby/generate-grpc-lib +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/ruby/hgitaly.gemspec +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/ruby/lib/hgitaly/mercurial-changeset_pb.rb +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/ruby/lib/hgitaly/mercurial-changeset_services_pb.rb +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/ruby/lib/hgitaly/mercurial-operations_pb.rb +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/ruby/lib/hgitaly/mercurial-operations_services_pb.rb +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/ruby/lib/hgitaly/mercurial-repository_pb.rb +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/ruby/lib/hgitaly/mercurial-repository_services_pb.rb +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/ruby/lib/hgitaly.rb +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/ruby/run.rb +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/run-all-tests +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/Cargo.toml +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/Makefile +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/build-from-tarball.sh +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/check-line-width +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/dependencies/README.md +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/dependencies/mercurial.patch +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/dependencies/proto/google/protobuf/any.proto +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/dependencies/proto/google/protobuf/api.proto +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/dependencies/proto/google/protobuf/compiler/plugin.proto +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/dependencies/proto/google/protobuf/descriptor.proto +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/dependencies/proto/google/protobuf/duration.proto +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/dependencies/proto/google/protobuf/empty.proto +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/dependencies/proto/google/protobuf/field_mask.proto +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/dependencies/proto/google/protobuf/source_context.proto +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/dependencies/proto/google/protobuf/struct.proto +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/dependencies/proto/google/protobuf/timestamp.proto +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/dependencies/proto/google/protobuf/type.proto +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/dependencies/proto/google/protobuf/wrappers.proto +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/go-enry.rev +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/lint +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/mercurial.rev +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/rhgitaly/clippy.toml +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/rhgitaly/src/config.rs +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/rhgitaly/src/generated/README.md +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/rhgitaly/src/git.rs +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/rhgitaly/src/gitlab/mod.rs +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/rhgitaly/src/gitlab/reference.rs +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/rhgitaly/src/gitlab/revision.rs +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/rhgitaly/src/gitlab/state.rs +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/rhgitaly/src/glob.rs +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/rhgitaly/src/lib.rs +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/rhgitaly/src/mercurial.rs +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/rhgitaly/src/message.rs +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/rhgitaly/src/metadata.rs +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/rhgitaly/src/oid.rs +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/rhgitaly/src/process.rs +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/rhgitaly/src/service/blob.rs +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/rhgitaly/src/service/commit/find_commits.rs +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/rhgitaly/src/service/commit/get_tree_entries.rs +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/rhgitaly/src/service/commit/last_commits.rs +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/rhgitaly/src/service/commit/tree_entry.rs +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/rhgitaly/src/ssh.rs +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/rhgitaly/src/streaming.rs +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/rhgitaly/src/util.rs +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/rs-enry.rev +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/src-tarball.sh +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/setup.cfg +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/setup.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/test-requirements.txt +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/tests_with_gitaly/__init__.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/tests_with_gitaly/comparison.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/tests_with_gitaly/conftest.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/tests_with_gitaly/gitaly.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/tests_with_gitaly/hgitaly_rhgitaly_comparison.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/tests_with_gitaly/rhgitaly.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/tests_with_gitaly/test_blob_tree.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/tests_with_gitaly/test_commit.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/tests_with_gitaly/test_comparison.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/tests_with_gitaly/test_diff.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/tests_with_gitaly/test_gitaly_server.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/tests_with_gitaly/test_mercurial_aux_git.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/tests_with_gitaly/test_mercurial_operations.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/tests_with_gitaly/test_mercurial_repository.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/tests_with_gitaly/test_operations.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/tests_with_gitaly/test_rhgitaly_server.py +0 -0
- {hgitaly-17.11.2 → hgitaly-18.0.0a1}/tests_with_gitaly/test_server.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
18.0.0a1
|
|
@@ -501,13 +501,20 @@ class RepositoryServicer(RepositoryServiceServicer, HGitalyServicer):
|
|
|
501
501
|
match_data.seek(0)
|
|
502
502
|
|
|
503
503
|
def set_custom_hooks(self, request, context):
|
|
504
|
-
|
|
505
|
-
return self.load_repo(req.repository, context)
|
|
504
|
+
logger = LoggerAdapter(base_logger, context)
|
|
506
505
|
|
|
507
506
|
with streaming_request_tempfile_extract(
|
|
508
507
|
request, context,
|
|
509
|
-
first_request_handler=
|
|
510
|
-
) as (
|
|
508
|
+
first_request_handler=lambda req, _context: req.repository
|
|
509
|
+
) as (grpc_repo, tmpf):
|
|
510
|
+
if self.is_repo_aux_git(grpc_repo):
|
|
511
|
+
logger.warning(
|
|
512
|
+
"Heptapod does not currently use custom hooks "
|
|
513
|
+
"on auxiliary Git repositories. Nothing to do"
|
|
514
|
+
)
|
|
515
|
+
return
|
|
516
|
+
|
|
517
|
+
repo = self.load_repo(grpc_repo, context)
|
|
511
518
|
tmpf.flush()
|
|
512
519
|
try:
|
|
513
520
|
restore_additional(repo.ui, repo,
|
|
@@ -38,6 +38,7 @@ from hgitaly.revision import ZERO_SHA
|
|
|
38
38
|
from hgitaly.stream import WRITE_BUFFER_SIZE
|
|
39
39
|
from hgitaly.testing import TEST_DATA_DIR
|
|
40
40
|
from hgitaly.testing.bundle import list_bundle_contents
|
|
41
|
+
from hgitaly.testing.storage import GIT_REPOS_STOWED_AWAY_PATH
|
|
41
42
|
from hgitaly.workdir import (
|
|
42
43
|
ROSTER_FILE_NAME as WDS_ROSTER_FILE_NAME,
|
|
43
44
|
working_directory,
|
|
@@ -349,6 +350,19 @@ def test_repository_exists(fixture_with_repo):
|
|
|
349
350
|
assert exc_info.value.code() == INVALID_ARGUMENT
|
|
350
351
|
|
|
351
352
|
|
|
353
|
+
def test_vcs_qualified_storage(fixture_with_repo):
|
|
354
|
+
fixture = fixture_with_repo
|
|
355
|
+
|
|
356
|
+
fixture.grpc_repo.storage_name = 'hg:default'
|
|
357
|
+
assert fixture.exists()
|
|
358
|
+
|
|
359
|
+
fixture.grpc_repo.storage_name = 'rhg:default'
|
|
360
|
+
assert fixture.exists()
|
|
361
|
+
|
|
362
|
+
fixture.grpc_repo.relative_path = 'no/such/path'
|
|
363
|
+
assert not fixture.exists()
|
|
364
|
+
|
|
365
|
+
|
|
352
366
|
def test_repository_size(fixture_with_repo):
|
|
353
367
|
fixture = fixture_with_repo
|
|
354
368
|
size = fixture.size()
|
|
@@ -854,6 +868,14 @@ def test_set_custom_hooks(fixture_with_repo, tmpdir, rpc_name):
|
|
|
854
868
|
meth(invalid_tarball_path)
|
|
855
869
|
assert exc_info.value.code() == INTERNAL
|
|
856
870
|
|
|
871
|
+
# case of Aux Git repository (nothing to be done, no error even if
|
|
872
|
+
# repository does not exist)
|
|
873
|
+
meth(tarball_path,
|
|
874
|
+
Repository(
|
|
875
|
+
storage_name=fixture.grpc_repo.storage_name,
|
|
876
|
+
relative_path=str(GIT_REPOS_STOWED_AWAY_PATH / 'some.git'),
|
|
877
|
+
))
|
|
878
|
+
|
|
857
879
|
|
|
858
880
|
@parametrize('rpc_name', ['backup', 'get'])
|
|
859
881
|
def test_backup_custom_hooks(fixture_with_repo, tmpdir, rpc_name):
|
|
@@ -32,6 +32,7 @@ from .stub.shared_pb2 import (
|
|
|
32
32
|
|
|
33
33
|
GARBAGE_COLLECTING_RATE_GEN2 = 250
|
|
34
34
|
GARBAGE_COLLECTING_RATE_GEN1 = 20
|
|
35
|
+
AUX_GIT_REPOS_RELATIVE_DIR = "+hgitaly/hg-git"
|
|
35
36
|
HG_GIT_MIRRORING_MD_KEY = 'x-heptapod-hg-git-mirroring'
|
|
36
37
|
NATIVE_PROJECT_MD_KEY = 'x-heptapod-hg-native'
|
|
37
38
|
# TODO check if there is a GitLab MD for this, it should:
|
|
@@ -129,6 +130,11 @@ class HGitalyServicer:
|
|
|
129
130
|
# (typically ignoring some settings that can be critical to
|
|
130
131
|
# operation)
|
|
131
132
|
|
|
133
|
+
def is_repo_aux_git(self, repository: Repository):
|
|
134
|
+
if repository is None:
|
|
135
|
+
return False
|
|
136
|
+
return repository.relative_path.startswith(AUX_GIT_REPOS_RELATIVE_DIR)
|
|
137
|
+
|
|
132
138
|
def load_repo(self, repository: Repository, context,
|
|
133
139
|
for_mutation_by=None,
|
|
134
140
|
):
|
|
@@ -288,7 +294,7 @@ class HGitalyServicer:
|
|
|
288
294
|
# in request, without having the request object itself
|
|
289
295
|
raise ValueError('repository not set')
|
|
290
296
|
|
|
291
|
-
root_dir = self.storages.get(storage_name)
|
|
297
|
+
root_dir = self.storages.get(storage_name.rsplit(':', 1)[-1])
|
|
292
298
|
if root_dir is None:
|
|
293
299
|
raise KeyError('storage', storage_name)
|
|
294
300
|
return root_dir
|
|
@@ -28,6 +28,7 @@ from ..testing.context import (
|
|
|
28
28
|
FakeServicerContext,
|
|
29
29
|
metadatum,
|
|
30
30
|
)
|
|
31
|
+
from ..testing.storage import GIT_REPOS_STOWED_AWAY_PATH
|
|
31
32
|
from ..servicer import (
|
|
32
33
|
HG_GIT_MIRRORING_MD_KEY,
|
|
33
34
|
NATIVE_PROJECT_MD_KEY,
|
|
@@ -107,6 +108,23 @@ def test_load_repo(tmpdir):
|
|
|
107
108
|
assert context.code == grpc.StatusCode.NOT_FOUND
|
|
108
109
|
|
|
109
110
|
|
|
111
|
+
def test_is_repo_aux_git(tmpdir):
|
|
112
|
+
storage_root = tmpdir.join('repos')
|
|
113
|
+
storage_root_bytes = pycompat.sysbytes(str(storage_root))
|
|
114
|
+
servicer = HGitalyServicer(dict(storname=storage_root_bytes))
|
|
115
|
+
|
|
116
|
+
assert not servicer.is_repo_aux_git(None)
|
|
117
|
+
assert not servicer.is_repo_aux_git(
|
|
118
|
+
Repository(storage_name='storname',
|
|
119
|
+
relative_path='some/repo.git')
|
|
120
|
+
)
|
|
121
|
+
assert servicer.is_repo_aux_git(
|
|
122
|
+
Repository(
|
|
123
|
+
storage_name='storname',
|
|
124
|
+
relative_path=str(GIT_REPOS_STOWED_AWAY_PATH / 'repo.git'))
|
|
125
|
+
)
|
|
126
|
+
|
|
127
|
+
|
|
110
128
|
def test_load_repo_for_mutation(tmpdir):
|
|
111
129
|
storage_root = tmpdir.join('repos')
|
|
112
130
|
storage_root_bytes = pycompat.sysbytes(str(storage_root))
|
|
@@ -189,6 +189,7 @@ protos/hook.proto
|
|
|
189
189
|
protos/internal.proto
|
|
190
190
|
protos/lint.proto
|
|
191
191
|
protos/log.proto
|
|
192
|
+
protos/mercurial-aux-git.proto
|
|
192
193
|
protos/mercurial-changeset.proto
|
|
193
194
|
protos/mercurial-operations.proto
|
|
194
195
|
protos/mercurial-repository.proto
|
|
@@ -215,6 +216,8 @@ ruby/generate-grpc-lib
|
|
|
215
216
|
ruby/hgitaly.gemspec
|
|
216
217
|
ruby/run.rb
|
|
217
218
|
ruby/lib/hgitaly.rb
|
|
219
|
+
ruby/lib/hgitaly/mercurial-aux-git_pb.rb
|
|
220
|
+
ruby/lib/hgitaly/mercurial-aux-git_services_pb.rb
|
|
218
221
|
ruby/lib/hgitaly/mercurial-changeset_pb.rb
|
|
219
222
|
ruby/lib/hgitaly/mercurial-changeset_services_pb.rb
|
|
220
223
|
ruby/lib/hgitaly/mercurial-operations_pb.rb
|
|
@@ -249,6 +252,7 @@ rust/dependencies/proto/google/protobuf/compiler/plugin.proto
|
|
|
249
252
|
rust/rhgitaly/Cargo.toml
|
|
250
253
|
rust/rhgitaly/build.rs
|
|
251
254
|
rust/rhgitaly/clippy.toml
|
|
255
|
+
rust/rhgitaly/src/bundle.rs
|
|
252
256
|
rust/rhgitaly/src/config.rs
|
|
253
257
|
rust/rhgitaly/src/errors.rs
|
|
254
258
|
rust/rhgitaly/src/git.rs
|
|
@@ -260,6 +264,7 @@ rust/rhgitaly/src/message.rs
|
|
|
260
264
|
rust/rhgitaly/src/metadata.rs
|
|
261
265
|
rust/rhgitaly/src/oid.rs
|
|
262
266
|
rust/rhgitaly/src/process.rs
|
|
267
|
+
rust/rhgitaly/src/repository.rs
|
|
263
268
|
rust/rhgitaly/src/sidecar.rs
|
|
264
269
|
rust/rhgitaly/src/ssh.rs
|
|
265
270
|
rust/rhgitaly/src/streaming.rs
|
|
@@ -272,7 +277,9 @@ rust/rhgitaly/src/gitlab/state.rs
|
|
|
272
277
|
rust/rhgitaly/src/repository/spawner.rs
|
|
273
278
|
rust/rhgitaly/src/service/analysis.rs
|
|
274
279
|
rust/rhgitaly/src/service/blob.rs
|
|
280
|
+
rust/rhgitaly/src/service/commit.rs
|
|
275
281
|
rust/rhgitaly/src/service/diff.rs
|
|
282
|
+
rust/rhgitaly/src/service/mercurial_aux_git.rs
|
|
276
283
|
rust/rhgitaly/src/service/mercurial_repository.rs
|
|
277
284
|
rust/rhgitaly/src/service/mod.rs
|
|
278
285
|
rust/rhgitaly/src/service/ref.rs
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package hgitaly;
|
|
4
|
+
|
|
5
|
+
import "lint.proto";
|
|
6
|
+
import "shared.proto";
|
|
7
|
+
import "repository.proto";
|
|
8
|
+
|
|
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
|
+
service MercurialAuxGitService {
|
|
15
|
+
rpc AuxGitCreateBundle(.gitaly.CreateBundleRequest) returns (stream .gitaly.CreateBundleResponse) {
|
|
16
|
+
option (.gitaly.op_type) = {
|
|
17
|
+
op: ACCESSOR
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
rpc AuxGitCreateFromBundle(stream .gitaly.CreateRepositoryFromBundleRequest) returns (.gitaly.CreateRepositoryFromBundleResponse) {
|
|
22
|
+
option (.gitaly.op_type) = {
|
|
23
|
+
op: MUTATOR
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
rpc AuxGitRepositorySize(.gitaly.RepositorySizeRequest) returns (.gitaly.RepositorySizeResponse) {
|
|
28
|
+
option (.gitaly.op_type) = {
|
|
29
|
+
op: MUTATOR
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
|
+
# source: mercurial-aux-git.proto
|
|
3
|
+
|
|
4
|
+
require 'lint_pb'
|
|
5
|
+
require 'shared_pb'
|
|
6
|
+
require 'repository_pb'
|
|
7
|
+
require 'google/protobuf'
|
|
8
|
+
|
|
9
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
10
|
+
add_file("mercurial-aux-git.proto", :syntax => :proto3) do
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
module Hgitaly
|
|
15
|
+
end
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
|
+
# Source: mercurial-aux-git.proto for package 'hgitaly'
|
|
3
|
+
|
|
4
|
+
require 'grpc'
|
|
5
|
+
require 'mercurial-aux-git_pb'
|
|
6
|
+
|
|
7
|
+
module Hgitaly
|
|
8
|
+
module MercurialAuxGitService
|
|
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
|
+
class Service
|
|
15
|
+
|
|
16
|
+
include ::GRPC::GenericService
|
|
17
|
+
|
|
18
|
+
self.marshal_class_method = :encode
|
|
19
|
+
self.unmarshal_class_method = :decode
|
|
20
|
+
self.service_name = 'hgitaly.MercurialAuxGitService'
|
|
21
|
+
|
|
22
|
+
rpc :AuxGitCreateBundle, ::Gitaly::CreateBundleRequest, stream(::Gitaly::CreateBundleResponse)
|
|
23
|
+
rpc :AuxGitCreateFromBundle, stream(::Gitaly::CreateRepositoryFromBundleRequest), ::Gitaly::CreateRepositoryFromBundleResponse
|
|
24
|
+
rpc :AuxGitRepositorySize, ::Gitaly::RepositorySizeRequest, ::Gitaly::RepositorySizeResponse
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
Stub = Service.rpc_stub_class
|
|
28
|
+
end
|
|
29
|
+
end
|