hgitaly 17.9.1__tar.gz → 17.9.2__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.9.1/hgitaly.egg-info → hgitaly-17.9.2}/PKG-INFO +10 -1
- hgitaly-17.9.2/hgitaly/VERSION +1 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/revision.py +4 -1
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/service/commit.py +21 -8
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/service/tests/test_commit.py +3 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2/hgitaly.egg-info}/PKG-INFO +10 -1
- hgitaly-17.9.1/hgitaly/VERSION +0 -1
- {hgitaly-17.9.1 → hgitaly-17.9.2}/LICENSE +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/MANIFEST.in +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/README.md +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgext3rd/__init__.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgext3rd/hgitaly/__init__.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgext3rd/hgitaly/revset.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgext3rd/hgitaly/tests/__init__.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgext3rd/hgitaly/tests/test_revset.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgext3rd/hgitaly/tests/test_serve.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/__init__.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/branch.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/changelog.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/diff.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/errors.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/feature.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/file_content.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/file_context.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/git.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/gitlab_ref.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/license_detector/__init__.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/license_detector/spdx-licenses.json +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/linguist/__init__.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/linguist/languages.json +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/logging.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/manifest.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/message.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/oid.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/pagination.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/path.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/peer.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/procutil.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/repository.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/revset.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/scripts.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/server/__init__.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/server/address.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/server/mono.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/server/prefork.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/server/tests/__init__.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/server/tests/test_address.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/server/tests/test_mono.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/server/tests/test_prefork.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/server/tests/test_worker.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/server/worker.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/service/__init__.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/service/analysis.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/service/blob.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/service/diff.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/service/interceptors.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/service/mercurial_changeset.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/service/mercurial_operations.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/service/mercurial_repository.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/service/operations.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/service/ref.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/service/repository.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/service/server.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/service/tests/__init__.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/service/tests/fixture.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/service/tests/test_analysis.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/service/tests/test_blob.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/service/tests/test_default_branch.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/service/tests/test_diff.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/service/tests/test_mercurial_changeset.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/service/tests/test_mercurial_operations.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/service/tests/test_mercurial_repository.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/service/tests/test_operations.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/service/tests/test_ref.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/service/tests/test_repository_service.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/service/tests/test_server.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/servicer.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/ssh.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/stream.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/stub/__init__.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/stub/analysis_pb2.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/stub/analysis_pb2_grpc.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/stub/blob_pb2.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/stub/blob_pb2_grpc.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/stub/commit_pb2.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/stub/commit_pb2_grpc.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/stub/diff_pb2.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/stub/diff_pb2_grpc.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/stub/errors_pb2.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/stub/errors_pb2_grpc.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/stub/lint_pb2.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/stub/lint_pb2_grpc.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/stub/mercurial_aux_git_pb2.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/stub/mercurial_aux_git_pb2_grpc.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/stub/mercurial_changeset_pb2.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/stub/mercurial_changeset_pb2_grpc.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/stub/mercurial_operations_pb2.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/stub/mercurial_operations_pb2_grpc.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/stub/mercurial_repository_pb2.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/stub/mercurial_repository_pb2_grpc.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/stub/operations_pb2.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/stub/operations_pb2_grpc.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/stub/ref_pb2.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/stub/ref_pb2_grpc.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/stub/remote_pb2.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/stub/remote_pb2_grpc.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/stub/repository_pb2.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/stub/repository_pb2_grpc.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/stub/server_pb2.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/stub/server_pb2_grpc.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/stub/shared_pb2.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/stub/shared_pb2_grpc.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/tag.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/testing/__init__.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/testing/bundle.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/testing/context.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/testing/grpc.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/testing/ssh.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/testing/sshd.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/testing/storage.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/testing/tests/__init__.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/testing/tests/test_sshd.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/tests/__init__.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/tests/common.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/tests/test_branch.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/tests/test_diff.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/tests/test_errors.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/tests/test_feature.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/tests/test_file_context.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/tests/test_gitlab_ref.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/tests/test_license_detector.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/tests/test_linguist.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/tests/test_manifest.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/tests/test_messages.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/tests/test_oid.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/tests/test_peer.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/tests/test_repository.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/tests/test_revision.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/tests/test_revset.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/tests/test_servicer.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/tests/test_stream.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/tests/test_tag.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/tests/test_workdir.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/util.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly/workdir.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly.egg-info/SOURCES.txt +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly.egg-info/dependency_links.txt +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly.egg-info/entry_points.txt +0 -0
- hgitaly-17.9.1/install-requirements.txt → hgitaly-17.9.2/hgitaly.egg-info/requires.txt +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/hgitaly.egg-info/top_level.txt +0 -0
- hgitaly-17.9.1/hgitaly.egg-info/requires.txt → hgitaly-17.9.2/install-requirements.txt +5 -5
- {hgitaly-17.9.1 → hgitaly-17.9.2}/setup.cfg +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/setup.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/tests_with_gitaly/__init__.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/tests_with_gitaly/comparison.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/tests_with_gitaly/conftest.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/tests_with_gitaly/gitaly.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/tests_with_gitaly/hgitaly_rhgitaly_comparison.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/tests_with_gitaly/rhgitaly.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/tests_with_gitaly/test_blob_tree.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/tests_with_gitaly/test_commit.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/tests_with_gitaly/test_comparison.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/tests_with_gitaly/test_diff.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/tests_with_gitaly/test_gitaly_server.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/tests_with_gitaly/test_mercurial_aux_git.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/tests_with_gitaly/test_mercurial_repository.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/tests_with_gitaly/test_operations.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/tests_with_gitaly/test_ref.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/tests_with_gitaly/test_remote.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/tests_with_gitaly/test_repository_service.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/tests_with_gitaly/test_rhgitaly_server.py +0 -0
- {hgitaly-17.9.1 → hgitaly-17.9.2}/tests_with_gitaly/test_server.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: hgitaly
|
|
3
|
-
Version: 17.9.
|
|
3
|
+
Version: 17.9.2
|
|
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
|
|
@@ -10,6 +10,15 @@ Keywords: hg mercurial heptapod gitlab
|
|
|
10
10
|
Requires-Python: >=3.8
|
|
11
11
|
Description-Content-Type: text/markdown
|
|
12
12
|
License-File: LICENSE
|
|
13
|
+
Requires-Dist: heptapod>=5.0.0dev0
|
|
14
|
+
Requires-Dist: protobuf~=5.26.0
|
|
15
|
+
Requires-Dist: grpcio~=1.63.0
|
|
16
|
+
Requires-Dist: grpcio-status~=1.63.0
|
|
17
|
+
Requires-Dist: grpc-interceptor
|
|
18
|
+
Requires-Dist: hg-loggingmod>=0.4.1
|
|
19
|
+
Requires-Dist: psutil
|
|
20
|
+
Requires-Dist: importlib_resources~=2.0.0
|
|
21
|
+
Requires-Dist: spdx-lookup
|
|
13
22
|
|
|
14
23
|
# HGitaly
|
|
15
24
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
17.9.2
|
|
@@ -145,6 +145,7 @@ def gitlab_revision_hash(repo, revision):
|
|
|
145
145
|
|
|
146
146
|
|
|
147
147
|
ALL_CHANGESETS = object()
|
|
148
|
+
VISIBLE_CHANGESETS = object()
|
|
148
149
|
|
|
149
150
|
|
|
150
151
|
def resolve_revspecs_positive_negative(repo, revisions,
|
|
@@ -184,9 +185,11 @@ def resolve_revspecs_positive_negative(repo, revisions,
|
|
|
184
185
|
else:
|
|
185
186
|
if rev == b'ALL':
|
|
186
187
|
positive = ALL_CHANGESETS
|
|
188
|
+
elif rev == b'--visible':
|
|
189
|
+
positive = VISIBLE_CHANGESETS
|
|
187
190
|
collection = positive
|
|
188
191
|
|
|
189
|
-
if collection
|
|
192
|
+
if collection in (ALL_CHANGESETS, VISIBLE_CHANGESETS):
|
|
190
193
|
# resolution is useless
|
|
191
194
|
continue
|
|
192
195
|
|
|
@@ -51,6 +51,7 @@ from ..pagination import (
|
|
|
51
51
|
extract_limit,
|
|
52
52
|
)
|
|
53
53
|
from ..revision import (
|
|
54
|
+
VISIBLE_CHANGESETS,
|
|
54
55
|
RevisionNotFound,
|
|
55
56
|
gitlab_revision_changeset,
|
|
56
57
|
resolve_revspecs_positive_negative,
|
|
@@ -902,14 +903,21 @@ class CommitServicer(CommitServiceServicer, HGitalyServicer):
|
|
|
902
903
|
context.abort(StatusCode.INTERNAL,
|
|
903
904
|
"Revision %r could not be resolved" % exc.args[0])
|
|
904
905
|
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
906
|
+
if positive is VISIBLE_CHANGESETS:
|
|
907
|
+
# do not switch to unfiltered view!
|
|
908
|
+
if negative:
|
|
909
|
+
revset = b'not ::%ls'
|
|
910
|
+
else:
|
|
911
|
+
revset = b'all()'
|
|
911
912
|
else:
|
|
912
|
-
|
|
913
|
+
# now that resolution is done, we can and have to switch to
|
|
914
|
+
# the unfiltered view, because the resulting hashes can be of
|
|
915
|
+
# obsolete changesets.
|
|
916
|
+
repo = repo.unfiltered()
|
|
917
|
+
if negative:
|
|
918
|
+
revset = b'only(%ls, %ls)'
|
|
919
|
+
else:
|
|
920
|
+
revset = b'::%ls'
|
|
913
921
|
|
|
914
922
|
msg_patterns = request.commit_message_patterns
|
|
915
923
|
ignore_case = request.ignore_case
|
|
@@ -937,7 +945,12 @@ class CommitServicer(CommitServiceServicer, HGitalyServicer):
|
|
|
937
945
|
revset = b'sort(%s, %s)' % (revset, sort_key)
|
|
938
946
|
|
|
939
947
|
try:
|
|
940
|
-
if
|
|
948
|
+
if positive is VISIBLE_CHANGESETS:
|
|
949
|
+
if negative:
|
|
950
|
+
revs = repo.revs(revset, negative)
|
|
951
|
+
else:
|
|
952
|
+
revs = repo.revs(revset)
|
|
953
|
+
elif negative:
|
|
941
954
|
revs = repo.revs(revset, positive, negative)
|
|
942
955
|
else:
|
|
943
956
|
revs = repo.revs(revset, positive)
|
|
@@ -1333,6 +1333,7 @@ def test_list_commits(commit_fixture_empty_repo):
|
|
|
1333
1333
|
ctx0 = wrapper.commit_file('foo', message="root changeset")
|
|
1334
1334
|
sha0 = ctx0.hex()
|
|
1335
1335
|
ctx1 = wrapper.commit_file('foo', topic='sampletop')
|
|
1336
|
+
sha1 = ctx1.hex()
|
|
1336
1337
|
wrapper.update(ctx0.rev())
|
|
1337
1338
|
wrapper.command(b'mv', wrapper.repo.root + b'/foo',
|
|
1338
1339
|
wrapper.repo.root + b'/zoo')
|
|
@@ -1351,6 +1352,8 @@ def test_list_commits(commit_fixture_empty_repo):
|
|
|
1351
1352
|
def caret(ctx):
|
|
1352
1353
|
return b'^' + ctx.hex()
|
|
1353
1354
|
|
|
1355
|
+
assert list_commits('--visible') == [sha4, sha3, sha2, sha1, sha0]
|
|
1356
|
+
assert list_commits('--visible', caret(ctx3)) == [sha4, sha2, sha1]
|
|
1354
1357
|
assert list_commits(sha4, caret(ctx1)) == [sha4, sha3, sha2]
|
|
1355
1358
|
assert list_commits(sha4, caret(ctx1), reverse=True) == [sha2, sha3, sha4]
|
|
1356
1359
|
assert list_commits(sha4, caret(ctx1), skip=1) == [sha3, sha2]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: hgitaly
|
|
3
|
-
Version: 17.9.
|
|
3
|
+
Version: 17.9.2
|
|
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
|
|
@@ -10,6 +10,15 @@ Keywords: hg mercurial heptapod gitlab
|
|
|
10
10
|
Requires-Python: >=3.8
|
|
11
11
|
Description-Content-Type: text/markdown
|
|
12
12
|
License-File: LICENSE
|
|
13
|
+
Requires-Dist: heptapod>=5.0.0dev0
|
|
14
|
+
Requires-Dist: protobuf~=5.26.0
|
|
15
|
+
Requires-Dist: grpcio~=1.63.0
|
|
16
|
+
Requires-Dist: grpcio-status~=1.63.0
|
|
17
|
+
Requires-Dist: grpc-interceptor
|
|
18
|
+
Requires-Dist: hg-loggingmod>=0.4.1
|
|
19
|
+
Requires-Dist: psutil
|
|
20
|
+
Requires-Dist: importlib_resources~=2.0.0
|
|
21
|
+
Requires-Dist: spdx-lookup
|
|
13
22
|
|
|
14
23
|
# HGitaly
|
|
15
24
|
|
hgitaly-17.9.1/hgitaly/VERSION
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
17.9.1
|
|
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
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
grpc-interceptor
|
|
2
|
-
grpcio-status~=1.63.0
|
|
3
|
-
grpcio~=1.63.0
|
|
4
1
|
heptapod>=5.0.0dev0
|
|
5
|
-
hg-loggingmod>=0.4.1
|
|
6
|
-
importlib_resources~=2.0.0
|
|
7
2
|
protobuf~=5.26.0
|
|
3
|
+
grpcio~=1.63.0
|
|
4
|
+
grpcio-status~=1.63.0
|
|
5
|
+
grpc-interceptor
|
|
6
|
+
hg-loggingmod>=0.4.1
|
|
8
7
|
psutil
|
|
8
|
+
importlib_resources~=2.0.0
|
|
9
9
|
spdx-lookup
|
|
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
|