Mercurial says hgrc is untrusted in Emacs, but works fine from the command line
Posted
by
Ken
on Super User
See other posts from Super User
or by Ken
Published on 2010-07-02T16:52:49Z
Indexed on
2011/01/13
4:55 UTC
Read the original article
Hit count: 266
I've got some Mercurial checkouts in a directory that was mounted by root. Mercurial is usually suspicious of files that aren't mine, but I'm the only user here, so I put:
[trusted]
users = root
groups = root
in my ~/.hgrc, and now I can use hg
from the command line with no warnings or errors about anything being untrusted. So far, great.
But when I try to run, say, vc-annotate
in Emacs, I get an Annotate buffer that says:
abort: unknown revision 'Not trusting file /home/me/.../working-copy/.hg/hgrc from untrusted user root, group root
Not trusting file /home/me/.../working-copy/.hg/hgrc from untrusted user root, group root
7648'!
The message area says:
Running hg annotate -d -n --follow -r... my-file.c...FAILED (status 255)
I don't have anything in my .emacs related to vc or hg. Other commands, like vc-diff
, work fine.
What am I missing here?
© Super User or respective owner