# HG changeset patch
# User Georges Racinet <georges.racinet@octobus.net>
# Date 1676888017 -3600
#      Mon Feb 20 11:13:37 2023 +0100
# Node ID c5a8ff21803651cb3d243c36ac1e32741eaf045f
# Parent  6944f8946ada31db0c8837e737dfbc5b132869f1
Repositoryservice: added refactoring TODOs

diff --git a/hgitaly/service/repository.py b/hgitaly/service/repository.py
--- a/hgitaly/service/repository.py
+++ b/hgitaly/service/repository.py
@@ -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)