swh.loader.mercurial.utils module#

swh.loader.mercurial.utils.get_minimum_env() Dict[str, str][source]#

Return the smallest viable environment for hg suprocesses


Catches all kinds of exceptions which translate to an inexistent repository and reraise as a NotFound exception. Any other exceptions are propagated to the caller.

  • NotFound – when an inexistent repository is detected

  • * – Any other exceptions raised within the try block