Starting with Mercurial version XXX there is a file .hg/requires which specifies the capabilities needed by a client to access this repository. It is a text file, where each line contains the name of a capability and optionally a parameter separated by a = character.

Capabilities