Pergunta

I have two machines running Mercurial, a Solaris system and a Red Hat system.

On the Solaris system I can use environment variables in the .hgrc file, but on the Red Hat system it doesn't seem to work.

I have the following example in the .hgrc file:

[ui]
username = $SUDO_USER

but hg log shows me the following:

user:        $SUDO_USER

The variable is set and is exported:

$ env|grep SUDO_USER
SUDO_USER=testuser

The same setup works fine on the Solaris system. Can anyone tell me why this doesn't work?

Foi útil?

Solução

You can only use environment variables with mercurial version 1.4+ according to this page.

So make sure you have the most recent version installed.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top