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?



  • 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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.