问题描述:

I have the following scenario. I am using mercurial on the projects that I am working for at my company, thus I created my .hgrc file with the following settings:

#first username: work repo

username = pablo <[email protected]>

I would like to, in addition to that, be able to commit to my private repository, with my private repository from the same computer/account. Would it be possible to have another username? For example:

#second username, used for private repo

username = pablo <[email protected]>

If so, how would I commit choose which account is committing to a repository?

网友答案:

Each Mercurial working directory has a .hg/hgrc file, and those settings take precedence over the settings in your $HOME/.hgrc file or the /etc/hgrc file.

相关阅读:
Top