tags:

views:

33

answers:

1

Is there any way of having mercurial automatically create hgrc, so that I don't have to create it every time I create a repository? I'd like hgrc to at least contain the following:

[ui]
username = geo

Can this be done?

+5  A: 

You can set the username in mercurial.ini or .hgrc in your Home directory and it will automatically be used for all repositories where it's not overridden by a local hgrc.

In TortoiseHg, this can be set using right-click and choosing TortoiseHg/Global Settings....

See the docs.

Tim Pietzcker