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.
Files changed (315) hide show
  1. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/.hgtags +1 -0
  2. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/PKG-INFO +1 -1
  3. hgitaly-18.0.0a1/hgitaly/VERSION +1 -0
  4. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/service/repository.py +11 -4
  5. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/service/tests/test_repository_service.py +22 -0
  6. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/servicer.py +7 -1
  7. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/testing/ssh.py +1 -0
  8. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/tests/test_servicer.py +18 -0
  9. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly.egg-info/PKG-INFO +1 -1
  10. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly.egg-info/SOURCES.txt +7 -0
  11. hgitaly-18.0.0a1/protos/mercurial-aux-git.proto +33 -0
  12. hgitaly-18.0.0a1/ruby/lib/hgitaly/mercurial-aux-git_pb.rb +15 -0
  13. hgitaly-18.0.0a1/ruby/lib/hgitaly/mercurial-aux-git_services_pb.rb +29 -0
  14. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/ruby/lib/hgitaly/version.rb +1 -1
  15. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/Cargo.lock +483 -29
  16. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/rhgitaly/Cargo.toml +2 -0
  17. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/rhgitaly/build.rs +2 -0
  18. hgitaly-18.0.0a1/rust/rhgitaly/src/bundle.rs +300 -0
  19. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/rhgitaly/src/errors.rs +8 -0
  20. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/rhgitaly/src/main.rs +18 -2
  21. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/rhgitaly/src/repository/spawner.rs +13 -3
  22. hgitaly-18.0.0a1/rust/rhgitaly/src/repository.rs +587 -0
  23. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/rhgitaly/src/service/analysis.rs +0 -1
  24. hgitaly-18.0.0a1/rust/rhgitaly/src/service/commit.rs +624 -0
  25. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/rhgitaly/src/service/diff.rs +41 -1
  26. hgitaly-18.0.0a1/rust/rhgitaly/src/service/mercurial_aux_git.rs +180 -0
  27. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/rhgitaly/src/service/mercurial_repository.rs +63 -2
  28. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/rhgitaly/src/service/mod.rs +2 -0
  29. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/rhgitaly/src/service/ref.rs +130 -12
  30. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/rhgitaly/src/service/remote.rs +125 -1
  31. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/rhgitaly/src/service/repository.rs +78 -123
  32. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/rhgitaly/src/service/server.rs +17 -1
  33. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/rhgitaly/src/sidecar.rs +45 -1
  34. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/tests_with_gitaly/test_ref.py +6 -2
  35. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/tests_with_gitaly/test_remote.py +37 -0
  36. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/tests_with_gitaly/test_repository_service.py +28 -5
  37. hgitaly-17.11.2/hgitaly/VERSION +0 -1
  38. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/.coveragerc +0 -0
  39. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/.gitlab-ci.yml +0 -0
  40. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/.hgignore +0 -0
  41. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/LICENSE +0 -0
  42. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/MANIFEST.in +0 -0
  43. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/README.md +0 -0
  44. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/ci/heptapod-sftp-push +0 -0
  45. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/ci/heptapod-sign-package +0 -0
  46. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/ci/heptapod_known_hosts.ssh +0 -0
  47. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/ci/upload-rhgitaly +0 -0
  48. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/conftest.py +0 -0
  49. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/dev-requirements.txt +0 -0
  50. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/examples/client.py +0 -0
  51. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/examples/client_list_lcft.py +0 -0
  52. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/generate-stubs +0 -0
  53. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgext3rd/__init__.py +0 -0
  54. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgext3rd/hgitaly/__init__.py +0 -0
  55. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgext3rd/hgitaly/revset.py +0 -0
  56. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgext3rd/hgitaly/tests/__init__.py +0 -0
  57. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgext3rd/hgitaly/tests/test_revset.py +0 -0
  58. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgext3rd/hgitaly/tests/test_serve.py +0 -0
  59. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/__init__.py +0 -0
  60. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/branch.py +0 -0
  61. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/changelog.py +0 -0
  62. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/diff.py +0 -0
  63. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/errors.py +0 -0
  64. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/feature.py +0 -0
  65. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/file_content.py +0 -0
  66. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/file_context.py +0 -0
  67. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/git.py +0 -0
  68. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/gitlab_ref.py +0 -0
  69. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/identification.py +0 -0
  70. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/license_detector/GPL-2.sample +0 -0
  71. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/license_detector/__init__.py +0 -0
  72. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/license_detector/spdx-licenses.json +0 -0
  73. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/linguist/__init__.py +0 -0
  74. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/linguist/languages.json +0 -0
  75. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/logging.py +0 -0
  76. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/manifest.py +0 -0
  77. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/message.py +0 -0
  78. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/oid.py +0 -0
  79. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/pagination.py +0 -0
  80. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/path.py +0 -0
  81. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/peer.py +0 -0
  82. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/procutil.py +0 -0
  83. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/repository.py +0 -0
  84. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/revision.py +0 -0
  85. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/revset.py +0 -0
  86. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/scripts.py +0 -0
  87. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/server/__init__.py +0 -0
  88. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/server/address.py +0 -0
  89. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/server/mono.py +0 -0
  90. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/server/prefork.py +0 -0
  91. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/server/tests/__init__.py +0 -0
  92. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/server/tests/test_address.py +0 -0
  93. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/server/tests/test_mono.py +0 -0
  94. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/server/tests/test_prefork.py +0 -0
  95. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/server/tests/test_worker.py +0 -0
  96. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/server/worker.py +0 -0
  97. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/service/__init__.py +0 -0
  98. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/service/analysis.py +0 -0
  99. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/service/blob.py +0 -0
  100. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/service/commit.py +0 -0
  101. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/service/diff.py +0 -0
  102. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/service/interceptors.py +0 -0
  103. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/service/mercurial_changeset.py +0 -0
  104. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/service/mercurial_operations.py +0 -0
  105. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/service/mercurial_repository.py +0 -0
  106. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/service/operations.py +0 -0
  107. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/service/ref.py +0 -0
  108. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/service/server.py +0 -0
  109. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/service/tests/__init__.py +0 -0
  110. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/service/tests/fixture.py +0 -0
  111. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/service/tests/test_analysis.py +0 -0
  112. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/service/tests/test_blob.py +0 -0
  113. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/service/tests/test_commit.py +0 -0
  114. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/service/tests/test_default_branch.py +0 -0
  115. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/service/tests/test_diff.py +0 -0
  116. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/service/tests/test_mercurial_changeset.py +0 -0
  117. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/service/tests/test_mercurial_operations.py +0 -0
  118. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/service/tests/test_mercurial_repository.py +0 -0
  119. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/service/tests/test_operations.py +0 -0
  120. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/service/tests/test_ref.py +0 -0
  121. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/service/tests/test_server.py +0 -0
  122. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/ssh.py +0 -0
  123. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/stream.py +0 -0
  124. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/stub/__init__.py +0 -0
  125. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/stub/analysis_pb2.py +0 -0
  126. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/stub/analysis_pb2_grpc.py +0 -0
  127. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/stub/blob_pb2.py +0 -0
  128. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/stub/blob_pb2_grpc.py +0 -0
  129. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/stub/commit_pb2.py +0 -0
  130. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/stub/commit_pb2_grpc.py +0 -0
  131. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/stub/diff_pb2.py +0 -0
  132. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/stub/diff_pb2_grpc.py +0 -0
  133. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/stub/errors_pb2.py +0 -0
  134. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/stub/errors_pb2_grpc.py +0 -0
  135. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/stub/lint_pb2.py +0 -0
  136. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/stub/lint_pb2_grpc.py +0 -0
  137. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/stub/mercurial_aux_git_pb2.py +0 -0
  138. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/stub/mercurial_aux_git_pb2_grpc.py +0 -0
  139. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/stub/mercurial_changeset_pb2.py +0 -0
  140. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/stub/mercurial_changeset_pb2_grpc.py +0 -0
  141. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/stub/mercurial_operations_pb2.py +0 -0
  142. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/stub/mercurial_operations_pb2_grpc.py +0 -0
  143. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/stub/mercurial_repository_pb2.py +0 -0
  144. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/stub/mercurial_repository_pb2_grpc.py +0 -0
  145. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/stub/operations_pb2.py +0 -0
  146. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/stub/operations_pb2_grpc.py +0 -0
  147. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/stub/ref_pb2.py +0 -0
  148. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/stub/ref_pb2_grpc.py +0 -0
  149. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/stub/remote_pb2.py +0 -0
  150. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/stub/remote_pb2_grpc.py +0 -0
  151. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/stub/repository_pb2.py +0 -0
  152. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/stub/repository_pb2_grpc.py +0 -0
  153. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/stub/server_pb2.py +0 -0
  154. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/stub/server_pb2_grpc.py +0 -0
  155. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/stub/shared_pb2.py +0 -0
  156. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/stub/shared_pb2_grpc.py +0 -0
  157. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/tag.py +0 -0
  158. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/testing/__init__.py +0 -0
  159. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/testing/bundle.py +0 -0
  160. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/testing/context.py +0 -0
  161. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/testing/data/authorized_keys +0 -0
  162. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/testing/data/backup_additional_no_git.tar +0 -0
  163. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/testing/data/id_ecdsa_user +0 -0
  164. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/testing/data/known_hosts +0 -0
  165. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/testing/data/ssh_host_ecdsa_key +0 -0
  166. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/testing/data/ssh_host_ecdsa_key.pub +0 -0
  167. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/testing/data/ssh_host_ed25519 +0 -0
  168. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/testing/data/ssh_host_ed25519.pub +0 -0
  169. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/testing/data/sshd_config +0 -0
  170. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/testing/grpc.py +0 -0
  171. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/testing/multiprocessing.py +0 -0
  172. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/testing/sshd.py +0 -0
  173. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/testing/storage.py +0 -0
  174. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/testing/tests/__init__.py +0 -0
  175. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/testing/tests/test_sshd.py +0 -0
  176. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/tests/__init__.py +0 -0
  177. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/tests/common.py +0 -0
  178. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/tests/test_branch.py +0 -0
  179. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/tests/test_diff.py +0 -0
  180. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/tests/test_errors.py +0 -0
  181. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/tests/test_feature.py +0 -0
  182. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/tests/test_file_context.py +0 -0
  183. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/tests/test_gitlab_ref.py +0 -0
  184. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/tests/test_identification.py +0 -0
  185. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/tests/test_license_detector.py +0 -0
  186. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/tests/test_linguist.py +0 -0
  187. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/tests/test_manifest.py +0 -0
  188. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/tests/test_messages.py +0 -0
  189. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/tests/test_oid.py +0 -0
  190. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/tests/test_peer.py +0 -0
  191. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/tests/test_repository.py +0 -0
  192. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/tests/test_revision.py +0 -0
  193. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/tests/test_revset.py +0 -0
  194. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/tests/test_stream.py +0 -0
  195. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/tests/test_tag.py +0 -0
  196. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/tests/test_workdir.py +0 -0
  197. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/util.py +0 -0
  198. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly/workdir.py +0 -0
  199. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly.egg-info/dependency_links.txt +0 -0
  200. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly.egg-info/entry_points.txt +0 -0
  201. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly.egg-info/requires.txt +0 -0
  202. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/hgitaly.egg-info/top_level.txt +0 -0
  203. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/install-requirements.txt +0 -0
  204. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/lint +0 -0
  205. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/protos/analysis.proto +0 -0
  206. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/protos/blob.proto +0 -0
  207. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/protos/cleanup.proto +0 -0
  208. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/protos/cluster.proto +0 -0
  209. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/protos/commit.proto +0 -0
  210. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/protos/conflicts.proto +0 -0
  211. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/protos/diff.proto +0 -0
  212. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/protos/errors.proto +0 -0
  213. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/protos/hook.proto +0 -0
  214. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/protos/internal.proto +0 -0
  215. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/protos/lint.proto +0 -0
  216. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/protos/log.proto +0 -0
  217. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/protos/mercurial-changeset.proto +0 -0
  218. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/protos/mercurial-operations.proto +0 -0
  219. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/protos/mercurial-repository.proto +0 -0
  220. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/protos/namespace.proto +0 -0
  221. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/protos/objectpool.proto +0 -0
  222. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/protos/operations.proto +0 -0
  223. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/protos/packfile.proto +0 -0
  224. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/protos/partition.proto +0 -0
  225. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/protos/praefect.proto +0 -0
  226. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/protos/ref.proto +0 -0
  227. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/protos/remote.proto +0 -0
  228. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/protos/repository.proto +0 -0
  229. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/protos/server.proto +0 -0
  230. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/protos/service_config.proto +0 -0
  231. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/protos/shared.proto +0 -0
  232. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/protos/smarthttp.proto +0 -0
  233. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/protos/ssh.proto +0 -0
  234. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/protos/transaction.proto +0 -0
  235. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/protos/wiki.proto +0 -0
  236. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/ruby/.ruby-version +0 -0
  237. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/ruby/Gemfile +0 -0
  238. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/ruby/README.md +0 -0
  239. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/ruby/generate-grpc-lib +0 -0
  240. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/ruby/hgitaly.gemspec +0 -0
  241. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/ruby/lib/hgitaly/mercurial-changeset_pb.rb +0 -0
  242. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/ruby/lib/hgitaly/mercurial-changeset_services_pb.rb +0 -0
  243. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/ruby/lib/hgitaly/mercurial-operations_pb.rb +0 -0
  244. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/ruby/lib/hgitaly/mercurial-operations_services_pb.rb +0 -0
  245. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/ruby/lib/hgitaly/mercurial-repository_pb.rb +0 -0
  246. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/ruby/lib/hgitaly/mercurial-repository_services_pb.rb +0 -0
  247. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/ruby/lib/hgitaly.rb +0 -0
  248. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/ruby/run.rb +0 -0
  249. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/run-all-tests +0 -0
  250. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/Cargo.toml +0 -0
  251. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/Makefile +0 -0
  252. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/build-from-tarball.sh +0 -0
  253. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/check-line-width +0 -0
  254. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/dependencies/README.md +0 -0
  255. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/dependencies/mercurial.patch +0 -0
  256. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/dependencies/proto/google/protobuf/any.proto +0 -0
  257. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/dependencies/proto/google/protobuf/api.proto +0 -0
  258. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/dependencies/proto/google/protobuf/compiler/plugin.proto +0 -0
  259. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/dependencies/proto/google/protobuf/descriptor.proto +0 -0
  260. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/dependencies/proto/google/protobuf/duration.proto +0 -0
  261. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/dependencies/proto/google/protobuf/empty.proto +0 -0
  262. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/dependencies/proto/google/protobuf/field_mask.proto +0 -0
  263. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/dependencies/proto/google/protobuf/source_context.proto +0 -0
  264. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/dependencies/proto/google/protobuf/struct.proto +0 -0
  265. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/dependencies/proto/google/protobuf/timestamp.proto +0 -0
  266. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/dependencies/proto/google/protobuf/type.proto +0 -0
  267. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/dependencies/proto/google/protobuf/wrappers.proto +0 -0
  268. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/go-enry.rev +0 -0
  269. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/lint +0 -0
  270. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/mercurial.rev +0 -0
  271. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/rhgitaly/clippy.toml +0 -0
  272. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/rhgitaly/src/config.rs +0 -0
  273. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/rhgitaly/src/generated/README.md +0 -0
  274. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/rhgitaly/src/git.rs +0 -0
  275. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/rhgitaly/src/gitlab/mod.rs +0 -0
  276. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/rhgitaly/src/gitlab/reference.rs +0 -0
  277. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/rhgitaly/src/gitlab/revision.rs +0 -0
  278. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/rhgitaly/src/gitlab/state.rs +0 -0
  279. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/rhgitaly/src/glob.rs +0 -0
  280. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/rhgitaly/src/lib.rs +0 -0
  281. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/rhgitaly/src/mercurial.rs +0 -0
  282. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/rhgitaly/src/message.rs +0 -0
  283. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/rhgitaly/src/metadata.rs +0 -0
  284. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/rhgitaly/src/oid.rs +0 -0
  285. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/rhgitaly/src/process.rs +0 -0
  286. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/rhgitaly/src/service/blob.rs +0 -0
  287. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/rhgitaly/src/service/commit/find_commits.rs +0 -0
  288. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/rhgitaly/src/service/commit/get_tree_entries.rs +0 -0
  289. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/rhgitaly/src/service/commit/last_commits.rs +0 -0
  290. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/rhgitaly/src/service/commit/tree_entry.rs +0 -0
  291. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/rhgitaly/src/ssh.rs +0 -0
  292. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/rhgitaly/src/streaming.rs +0 -0
  293. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/rhgitaly/src/util.rs +0 -0
  294. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/rs-enry.rev +0 -0
  295. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/rust/src-tarball.sh +0 -0
  296. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/setup.cfg +0 -0
  297. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/setup.py +0 -0
  298. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/test-requirements.txt +0 -0
  299. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/tests_with_gitaly/__init__.py +0 -0
  300. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/tests_with_gitaly/comparison.py +0 -0
  301. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/tests_with_gitaly/conftest.py +0 -0
  302. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/tests_with_gitaly/gitaly.py +0 -0
  303. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/tests_with_gitaly/hgitaly_rhgitaly_comparison.py +0 -0
  304. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/tests_with_gitaly/rhgitaly.py +0 -0
  305. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/tests_with_gitaly/test_blob_tree.py +0 -0
  306. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/tests_with_gitaly/test_commit.py +0 -0
  307. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/tests_with_gitaly/test_comparison.py +0 -0
  308. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/tests_with_gitaly/test_diff.py +0 -0
  309. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/tests_with_gitaly/test_gitaly_server.py +0 -0
  310. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/tests_with_gitaly/test_mercurial_aux_git.py +0 -0
  311. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/tests_with_gitaly/test_mercurial_operations.py +0 -0
  312. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/tests_with_gitaly/test_mercurial_repository.py +0 -0
  313. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/tests_with_gitaly/test_operations.py +0 -0
  314. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/tests_with_gitaly/test_rhgitaly_server.py +0 -0
  315. {hgitaly-17.11.2 → hgitaly-18.0.0a1}/tests_with_gitaly/test_server.py +0 -0
@@ -143,3 +143,4 @@ c964e44bbddc2d8fd41fd72a685535dc7c793150 17.9.2
143
143
  fdf0201ab1df3afbb372f4dd1005009ca37be713 17.11.0a0
144
144
  035b7b7e03a1c34fea4bc7995d54d2c8d088c3f7 17.11.0
145
145
  82eb6e9f12cb5a63bcd6a1f5e9c5ff26fb17b0f6 17.11.1
146
+ c719859a655c7de4b357d1c2ff0046fe55f78e2a 18.0.0a0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: hgitaly
3
- Version: 17.11.2
3
+ Version: 18.0.0a1
4
4
  Summary: Server-side implementation of Gitaly protocol for Mercurial
5
5
  Home-page: https://foss.heptapod.net/heptapod/hgitaly
6
6
  Author: Georges Racinet
@@ -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
- def load_repo(req, context):
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=load_repo
510
- ) as (repo, tmpf):
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
@@ -9,6 +9,7 @@ from pathlib import Path
9
9
  import sys
10
10
 
11
11
 
12
+ # TODO move up to hgitaly.testing
12
13
  def hg_exe_path(): # pragma no cover
13
14
  """Return a Mercurial executable path consistent with these tests.
14
15
 
@@ -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))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: hgitaly
3
- Version: 17.11.2
3
+ Version: 18.0.0a1
4
4
  Summary: Server-side implementation of Gitaly protocol for Mercurial
5
5
  Home-page: https://foss.heptapod.net/heptapod/hgitaly
6
6
  Author: Georges Racinet
@@ -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
@@ -1,4 +1,4 @@
1
1
  # This file is generated by generate-grpc-lib. Do not edit.
2
2
  module Hgitaly
3
- VERSION = '17.11.1'
3
+ VERSION = '18.0.0a0'
4
4
  end