Domanda

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?

È stato utile?

Soluzione

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top