2009-09-19 25 views

回答

14

只需在每個存儲庫中編輯文件.hg/hgrc即可。它與~/.hgrc的語法相同,但只會影響特定的回購。

repo1/.hg/hgrc

[ui] 
username = Foo Bar <[email protected]> 

而且在repo2/.hg/hgrc

[ui] 
username = Something Else <[email protected]> 
+0

nift你好!非常感謝你 ! – edomaur 2009-09-19 12:02:34

4

或者爲每個存儲庫設置的用戶名可以使用Mercurial Dynamic Username擴展,在全局~/.hgrc這樣設置特定地點的用戶名:

[extensions] 
dynamic_username = 

[dynamic_username] 
work.location = ~/work 
work.username = John Smith <[email protected]> 
hobby.location = ~/hobby ~/blogging 
hobby.username = Johny <[email protected]> 
相關問題