Repo rooted or relative paths from .hg/hgrc
Yuya Nishihara
yuya at tcha.org
Tue Jun 5 13:28:07 UTC 2018
On Sun, 3 Jun 2018 19:05:13 -0400, Ross Goldberg wrote:
> [extensions]
> commitsigs = extensions/commitsigs/commitsigs.py
>
> This works as long as I run hg commands from the root of my repo, but fails
> elsewhere.
>
> I've tried a few ways to possibly get some path to work from any directory
> in the repo, but to no avail.
>
> Is there any way to specify either a path relative to the root of my repo,
> or a path relative to the file in which the path is written (in this case,
> .hg/hgrc)?
I don't think there's a syntax for repo-relative paths.
FWIW, it could be a security risk to load extensions from an untrusted
repository. Instead, maybe you can put extensions somewhere in your home
directory, and use ~/ to specify the extension path.
More information about the Mercurial
mailing list