Equivalent of .gitattributes export-ignore for Mercurial?

PIERRE AUGIER pierre.augier at univ-grenoble-alpes.fr
Wed Jan 31 10:22:41 UTC 2024


Hi,

For Git repositories, [Meson](https://mesonbuild.com/) is sensible to .gitattributes export-ignore to choose which files are included in a dist archive. In the background it uses `git archive`. This is convenient because .gitattributes is versioned.

I'd like to find if something similar can be done for Mercurial repositories.

I guess Meson uses `hg archive`.

I didn't find in the doc how to configure `hg archive` and if it is possible to configure it from a versioned file in the repository.

Is it already possible? If no, would it be possible to do that with a future Mercurial version?

Pierre

--
Pierre Augier - CR CNRS                 http://www.legi.grenoble-inp.fr
LEGI (UMR 5519) Laboratoire des Ecoulements Geophysiques et Industriels
BP53, 38041 Grenoble Cedex, France                tel:+33.4.56.52.86.16


More information about the Mercurial mailing list