Skip to content
Snippets Groups Projects
Commit 045e053f authored by Georges Racinet's avatar Georges Racinet
Browse files

MercurialRepositoryService.Push: main implementation

We separate the concern of initialization of the remote peer in
the new `hgitaly.peer` module. URLs referencing the local file
system of the HGitaly server are accepted (for they are very
convenient in tests) yet restrained to the relevant storage, thus
not adding more rights than the callers already have. We expect
the logic to be the same for future subsystems using remote peers.

SSH remotes are not implemented yet.

The test case for exception raised by `urlparse()` would not
pass with Python 3.7 (NKFC normalization exception was introduced
in Python 3.8), this was actually the original motivation for
dropping Python 3.7 compatibility (see 019dc802a624).

Closes #87
parent 52dd4c16
No related branches found
No related tags found
1 merge request!89MercurialRepositoryService.Push
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment