문제

I often have trouble finding the hgrc files loaded by Mercurial.

I know the possible locations are documented at http://linux.die.net/man/5/hgrc, but there are quite a few of them, and they vary from platform to platform, and they depend on things like the "Mercurial installation directory" which is yet another thing to have to track down. And sometimes, it seems like it's loading hgrc files from locations that are not on that list at all!

It would be great if I could get Mercurial to tell me which hgrc files it's loading, so I don't have to spend time searching for them. Basically, I'd like to be able to pass hg an option, like hg -debug-hgrc-paths and have it print the full path to each hgrc file that it loads. Much like how you can get gcc to print the header file search paths it is using with gcc -v -E. Does anyone know of such an option?

도움이 되었습니까?

해결책

It might be more than you actually need but

hg --debug showconfig

will tell you quite a bit about what values are being set from where.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top