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

Repositoryservice: added refactoring TODOs

parent 6944f894
No related branches found
No related tags found
1 merge request!137Logging correlation_id
......@@ -489,6 +489,7 @@
def FetchBundle(self, request: FetchBundleRequest,
context) -> FetchBundleResponse:
def load_or_init_repo(req, context):
# TODO this should move to hgitaly.repository
repo_path = self.repo_disk_path(req.repository, context)
if os.path.lexists(repo_path):
logger.info("FetchBundle: no need to create repo %r",
......@@ -517,6 +518,7 @@
contains only data (i.e. the actual bundle sent in parts).
"""
def init_repo(req, context):
# TODO should move to hgitaly.repository
self.hg_init_repository(req.repository, context)
return self.load_repo(req.repository, context)
......
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