diff --git a/mesonbuild/utils/universal.py b/mesonbuild/utils/universal.py index f26a9a3de8c6..c0afaebb4d66 100644 --- a/mesonbuild/utils/universal.py +++ b/mesonbuild/utils/universal.py @@ -772,6 +772,14 @@ def detect_vcs(source_dir: T.Union[str, Path]) -> T.Optional[T.Dict[str, str]]: 'rev_regex': '(.*)', 'dep': '.hg/dirstate' }, + { + 'name': 'mercurial', + 'cmd': 'cat', + 'repo_dir': '.', + 'get_rev': 'cat .hg_archival.txt', + 'rev_regex': 'node: (.*)\n', + 'dep': '.hg_archival.txt' + }, { 'name': 'subversion', 'cmd': 'svn',