Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
hgitaly
Manage
Activity
Members
Labels
Plan
Issues
53
Issue boards
Milestones
Code
Merge requests
1
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
Show more breadcrumbs
heptapod
hgitaly
Merge requests
!235
An error occurred while fetching the assigned milestone of the selected merge_request.
Merged oldstable branch into stable
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Merged oldstable branch into stable
topic/stable/merge-oldstable
into
branch/stable
Overview
0
Commits
6
Pipelines
1
Changes
4
Merged
Georges Racinet
requested to merge
topic/stable/merge-oldstable
into
branch/stable
10 months ago
Overview
0
Commits
6
Pipelines
1
Changes
4
Expand
🚀
0
0
Merge request reports
Compare
branch/stable
branch/stable (base)
and
latest version
latest version
3ec6edac
6 commits,
10 months ago
4 files
+
28
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
rust/rhgitaly/src/main.rs
+
24
−
0
Options
@@ -3,7 +3,8 @@
// This software may be used and distributed according to the terms of the
// GNU General Public License version 2 or any later version.
// SPDX-License-Identifier: GPL-2.0-or-later
use
clap
::
Parser
;
use
std
::
error
::
Error
;
use
std
::
net
::
SocketAddr
;
use
std
::
path
::
PathBuf
;
use
std
::
sync
::
Arc
;
@@ -6,7 +7,8 @@
use
std
::
error
::
Error
;
use
std
::
net
::
SocketAddr
;
use
std
::
path
::
PathBuf
;
use
std
::
sync
::
Arc
;
use
tokio
::
fs
::
remove_file
;
use
tokio
::
net
::
UnixListener
;
use
tokio_stream
::
wrappers
::
UnixListenerStream
;
@@ -54,5 +56,25 @@
Err
(
"Unsupported URL"
.into
())
}
#[derive(Parser,
Debug)]
#[command(name
=
"RHGitaly"
)]
#[command(
about
=
"RHGitaly is a partial implementation of the Gitaly and HGitaly gRPC protocols
\
for Mercurial repositories"
)]
#[command(
long_about
=
"RHGitaly is a performance-oriented partial implementation of the Gitaly
\
and HGitaly gRPC protocols for Mercurial repositories.
It is asynchronous with a pool of worker threads, leveraging the Tonic (Tokio) gRPC framework,
\
and the Mercurial primitives implemented in Rust (hg-core crate).
Configuration is for now entirely done by environment variables (see
https://foss.heptapod.net/heptapod/hgitaly/-/issues/181 to follow progress on this)
"
)]
#[command(version
=
HGITALY_VERSION)]
struct
Args
{}
#[tokio::main]
async
fn
main
()
->
Result
<
(),
Box
<
dyn
std
::
error
::
Error
>>
{
@@ -57,5 +79,7 @@
#[tokio::main]
async
fn
main
()
->
Result
<
(),
Box
<
dyn
std
::
error
::
Error
>>
{
let
_args
=
Args
::
parse
();
setup_tracing
();
info!
(
"RHGitaly starting, version {}"
,
HGITALY_VERSION
);
Loading