Can I make Mercurial set windows login id as username automatically

Viewed 108

I looking for a way to set automatically the windows login id as username, so any user that clones my repository won't have to write his own username, but when he clones my repository he will get as username his windows login id automatically.

1 Answers

If I understand correctly, you can configure the mercurial.ini (C:\user\yourUsuario\mercurial.ini), not to be asked for User and password for each clone, pull, push, etc. To this end:

[auth]
hg.prefix = mercurialAddress
hg.username = user
hg.password = pass
hg.schemes = http

Or this way to make the clone:

hg clone http:\\user:pass@mercurialAddress/Folder/repository


translated by google translate.

Related