Add support for .hg_archival to detect_vcs

This allows vcs_tag() to work on a mercurial archived tarball so programs can
display the revision at runtime.
pull/14044/head
Gary Kramlich 2 months ago
parent b825faebaf
commit a4fd5c965e
  1. 8
      mesonbuild/utils/universal.py

@ -773,6 +773,14 @@ def detect_vcs(source_dir: T.Union[str, Path]) -> T.Optional[VcsData]:
rev_regex = '(.*)',
dep= '.hg/dirstate',
),
VcsData(
name = 'mercurial',
cmd = 'cat',
repo_dir = '.',
get_rev = ['cat', '.hg_archival.txt'],
rev_regex = 'node: (.*)\n',
dep = '.hg_archival.txt',
),
VcsData(
name = 'subversion',
cmd = 'svn',

Loading…
Cancel
Save