You cannot refer to other values in the .hgrc
when defining a new value. However, for this particular case you're in luck: things like ~foo
and $USER
are expanded in aliases. This means that you can define your alias like this
[alias]
ulog = log -u $USER
This is not quite what you ask for, but if all your users are on Linux, it should work fine.