Multiple personalities

Alan Mackenzie acm at muc.de
Wed Apr 4 10:50:02 UTC 2012


Hi, Mercurial!

My first post here.

What is the best way of managing several identities?  When I commit to
one repository I am (i) acm at muc.de.  When I commit to another, I am
(ii) bug-cc-mode at gnu.org.

At the moment, I cope with this by having two username settings: in
~/.hgrc I have (i) and in <repository>/.hg/hgrc I have (ii).  Trouble
is, this username isn't propagated when I clone the repo.  So I've got a
rather clumsy bash script called cc-clone, which copies the username
from the original repo to the new one.

This doesn't feel optimal.  Is there a better solution to this dual
identity problem?

-- 
Alan Mackenzie (Nuremberg, Germany).



More information about the Mercurial mailing list