Maybe try something like this as root:

ps -A ux |grep apache

Output:
www-data  1659  0.0  0.2  32180  7524 ?        S    16:24   0:00 /usr/sbin/apache2 -k start
___^--- Username to use

Then:

chown www-data: /path/to/my/repo/.hg/hgrc




On Mon, Oct 20, 2008 at 4:06 PM, Matt Mackall <mercurial-bugs@selenic.com> wrote:

Matt Mackall <mpm@selenic.com> added the comment:

If your web server runs hgweb as user 'nobody' or 'www', it will not trust most
entries in .hg/hgrc unless that file is also owned by 'nobody' or 'www'.
Otherwise, malicious users could do malicious things.

The 'user' you're trying to push with has no relation to the problem as it's not
even a real user in operating system terms.

____________________________________________________
Mercurial issue tracker <mercurial-bugs@selenic.com>
<http://www.selenic.com/mercurial/bts/issue1274>
____________________________________________________