views:

65

answers:

1

I am working on projects for different clients using Mercurial as a VCS. I know how to set a default user, but is there a mean to set a different user for each project ?

+2  A: 

Just edit the file .hg/hgrc inside each repository. It's the same syntax as your ~/.hgrc but will only affect a specific repo.

In repo1/.hg/hgrc:

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

And in repo2/.hg/hgrc:

[ui]
username = Something Else <[email protected]>
tonfa
nifty ! thank you very much !
edomaur