mercurial: less duplication in hgrc file

Posted by zaharpopov on Stack Overflow See other posts from Stack Overflow or by zaharpopov
Published on 2010-05-21T04:49:28Z Indexed on 2010/05/21 6:10 UTC
Read the original article Hit count: 298

Filed under:

Hi there.

I have using Hg for some projects on my google code hosting. For each projects I set in [auth] section of .hgrc the username/password to push without every asking for password. But it is lots of duplication like:

[auth]
proj1.prefix = ... 111
proj1.username = google code username
proj1.password = google code password

proj2.prefix = ... 222
proj2.username = google code username
proj2.password = google code password

Can this somehow be doing with less duplications? Maybe set variable in hgrc and refer to it from all username/password lines?

Thanks in advance for your help

© Stack Overflow or respective owner

Related posts about mercurial