开发者

Setting-up multiple mercurial users under the same user account

I have the following scenario. I am using mercurial on the projects that I am working for at my company, thus I created my .hg开发者_Go百科rc file with the following settings:

#first username: work repo
username = pablo <pablo@work.com>

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 <pablo@funmail.com>

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜