Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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:

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

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?

share|improve this question
up vote 0 down vote accepted

share|improve this answer
For those that don't feel like reading a big .el file: vc-hg.el is not using the HGPLAIN env (which is probably a bug), and barfing when trying to interpret localized UI messages (I guess). This git changeset is somebody manually patching vc-hg.el to fix the problem. An easier solution: just start emacs with env HGPLAIN set! – Ken Feb 15 '11 at 19:04
Actually, I guess it's not that simple. Hmm. – Ken Feb 24 '11 at 20:58

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .