swh.loader.mercurial.utils module

swh.loader.mercurial.utils.parse_visit_date(visit_date: Optional[Union[datetime.datetime, str]])Optional[datetime.datetime][source]

Convert visit date from either None, a string or a datetime to either None or datetime.

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

Return the smallest viable environment for hg suprocesses