Fullfil hgrc file

Slava Davydov's Avatar

Slava Davydov

05 Sep, 2013 02:08 PM

Is there a way after cloning the repository as specified user, e.g.: hg clone http://[email blocked]/hg/project/repository fill the hgrc file with specified information from HGLAB database:

username = MyNameInHgLab <MyEmailInHglab>

hglab.prefix = [hglab site or so on]
hglab.username = [user login in hglab]


  1. Support Staff 1 Posted by Anton Gogolev on 05 Sep, 2013 02:38 PM

    Anton Gogolev's Avatar


    Mercurial does not transfer .hgrc files on clones/pulls. There is, however, a Projrc extension ( http://mercurial.selenic.com/wiki/ProjrcExtension ), but it is per-repository, not per-user and it's not currently supported by HgLab.

  2. Anton Gogolev closed this discussion on 05 Sep, 2013 02:38 PM.

  3. Slava Davydov re-opened this discussion on 05 Sep, 2013 03:25 PM

  4. 2 Posted by Slava Davydov on 05 Sep, 2013 03:25 PM

    Slava Davydov's Avatar

    AFAIK you have own implementation of mercurial hg. And now it includes

    default = http://user@hgserver/hg/project/repo
    on cloning ....
  5. Support Staff 3 Posted by Anton Gogolev on 05 Sep, 2013 04:31 PM

    Anton Gogolev's Avatar


    The user@ part is there due to the fact that it is actually included as a part of a clone URL. Mercurial stores this exact address in the paths section as a default push and pull URL, but even this behavior is outside my control.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

12 Jan, 2023 12:25 PM
10 Jan, 2023 04:49 PM
03 Aug, 2022 01:49 PM
05 Jul, 2022 07:01 PM
28 Mar, 2022 04:42 PM


21 Jan, 2022 10:43 AM
20 Jan, 2022 10:45 AM
18 Jan, 2022 10:15 AM
19 Mar, 2021 06:13 PM
01 Mar, 2021 02:51 PM
01 Jan, 2021 02:19 AM