Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
hgitaly
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
This instance will be upgraded to Heptapod 17.9.0 final on 2025-04-04 between 14:00 and 15:00 UTC+2
Show more breadcrumbs
heptapod
hgitaly
Commits
689c8a3c
Commit
689c8a3c
authored
4 years ago
by
Georges Racinet
Browse files
Options
Downloads
Patches
Plain Diff
Fixed/updated server process for new services and structure
parent
806ce304
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#7038
passed with warnings
4 years ago
Stage: main
Stage: compat
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hgext3rd/hgitaly/__init__.py
+12
-7
12 additions, 7 deletions
hgext3rd/hgitaly/__init__.py
with
12 additions
and
7 deletions
hgext3rd/hgitaly/__init__.py
+
12
−
7
View file @
689c8a3c
...
...
@@ -15,11 +15,14 @@
registrar
,
)
from
hgitaly.stub
import
(
commit_pb2_grpc
,
)
from
hgitaly.servicer
import
(
Servicer
as
CommitServicer
,
from
hgitaly.service.commit
import
CommitServicer
from
hgitaly.service.ref
import
RefServicer
from
hgitaly.service.repository_service
import
RepositoryServiceServicer
from
hgitaly.stub.commit_pb2_grpc
import
add_CommitServiceServicer_to_server
from
hgitaly.stub.ref_pb2_grpc
import
add_RefServiceServicer_to_server
from
hgitaly.stub.repository_service_pb2_grpc
import
(
add_RepositoryServiceServicer_to_server
)
# mercurial.urllibcompat seems to be willing to make urlparse access uniform,
...
...
@@ -83,8 +86,10 @@
b
"
the command with the --repositories-root option.
"
))
server
=
grpc
.
server
(
futures
.
ThreadPoolExecutor
(
max_workers
=
1
))
commit_pb2_grpc
.
add_CommitServiceServicer_to_server
(
CommitServicer
(
repos_root
),
server
)
add_CommitServiceServicer_to_server
(
CommitServicer
(
repos_root
),
server
)
add_RefServiceServicer_to_server
(
RefServicer
(
repos_root
),
server
)
add_RepositoryServiceServicer_to_server
(
RepositoryServiceServicer
(
repos_root
),
server
)
for
url
in
listen_urls
:
try
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment