diff --git a/docs/usage.rst b/docs/usage.rst index db7c643..994044b 100644 --- a/docs/usage.rst +++ b/docs/usage.rst @@ -838,7 +838,7 @@ Check Mercurial repository source = "mercurial" -This enables you to check tags of an arbitrary mercurial repository. +This enables you to check tags of an arbitrary mercurial (hg) repository. mercurial URL of the Mercurial repository. diff --git a/nvchecker_source/mercurial.py b/nvchecker_source/mercurial.py index db3cd34..92342c8 100644 --- a/nvchecker_source/mercurial.py +++ b/nvchecker_source/mercurial.py @@ -2,7 +2,7 @@ # Copyright (c) 2020 Felix Yan , et al. async def get_version(name, conf, *, cache, **kwargs): - url = conf.get('mercurial') + '/json-tags' + url = conf['mercurial'] + '/json-tags' data = await cache.get_json(url)