Questions tagged [hgrc]

Configuration file used by Mercurial to customize behavior. This configuration file can be applied for a specific user or on a specific repository.

Configuration file used by Mercurial to customize behavior. This configuration file can be applied for a specific user or on a specific repository.

Links:

105 questions
2
votes
1 answer

Mercurial: unable to use environment variables in .hgrc file

I have two machines running Mercurial, a Solaris system and a Red Hat system. On the Solaris system I can use environment variables in the .hgrc file, but on the Red Hat system it doesn't seem to work. I have the following example in the .hgrc…
Subbeh
  • 886
  • 2
  • 7
  • 14
1
vote
2 answers

allow_push on .hg/hgrc doesn't seem to work

I'm setting up a mercurial server with LDAP auth where I want to allow access per repo so I'm creating a hgrc under .hg for each repo. [web] allow_push = user1 My problem is that If I use these hgrc files I cannot push with any user (abort:…
F3RD3F
  • 2,309
  • 3
  • 22
  • 26
1
vote
0 answers

Mercurial config: merge-patterns working on `hg update`

In my .hgrc I have this merge pattern defined: [merge-patterns] public_html/** =internal:other When i run hg merge the mergetool still tries to merge al the (generated) files under public_html, which causes to crash my difftool and…
Terrabythia
  • 2,031
  • 3
  • 19
  • 29
1
vote
1 answer

Set Mercurial (Hg) Contact (or owner) via command line

Is there a way to set the owner (contact field) via the hg or hgtk command line options? I can bring up the repository configuration via: >> hgtk repoconfig What I want to do is something along the lines of: [does not work] >> hgtk repoconfig set…
Danny Douglass
  • 390
  • 1
  • 11
1
vote
0 answers

Sharing .hg/hgrc settings across all clones

Is there any way to easily share .hg/hgrc settings across all clones of a Mercurial repo? e.g., I want to automatically enable the commitsigs extension for all clones of a repo (obviously, I'd include a copy of commitsigs.py in the repo). If I make…
XDR
  • 4,070
  • 3
  • 30
  • 54
1
vote
1 answer

ACL in Mercurial

I'm trying to get ACL working in Mercurial. Now, I'm not positive that it will work at all because I'm using hg 1.5.1. (I'm working on figuring out who I have to talk to to get someone to upgrade that for me) Assuming that 1.5.1 will support it, my…
Brian Postow
  • 11,709
  • 17
  • 81
  • 125
1
vote
4 answers

How to checkout configuration file and rename it using mercurial?

How do I tell mercurial to copy a file from /home/configs/config.ini into my local clone everytime I run hg clone /home/hg/repo1 without tracking it ? For example > ls -l /home/hg/repo1 file_one.py file_two.py > hg clone /home/hg/repo1…
Martin
  • 905
  • 9
  • 19
1
vote
0 answers

Are Mercurial hgrc section headings lowercase?

When using uppercase section headings in any hgrc or mercurial.ini file, things behave strange or stop working. Using e.g. an uppercase [PATHS] section like: [PATHS] default = http://myrepo results in the following error: abort: repository…
Kurt Van den Branden
  • 11,995
  • 10
  • 76
  • 85
1
vote
1 answer

Git's alternative to .hgrcpath

Does Git have anything like Hg's HGRCPATH, i.e. an enviromental variable which you can modify to change the location where Hg will search for its global configuration file. In git that can be somewhat accomplished by changing HOME, but that will…
Rook
  • 60,248
  • 49
  • 165
  • 242
1
vote
1 answer

Cannot commit in mercurial repo

I have a Mercuirial (3.6.1) project. Every time I try to commit I get the next error. (project)➜ project hg:(default) ✗ hg commit -m "TICK-190" subfolder/models.py ** unknown exception encountered, please report by visiting **…
user1532587
  • 993
  • 1
  • 14
  • 39
1
vote
1 answer

mercurial hg clone a repo from a server connected through another server

I have three machines local (windows) serverA (linux) with username as userA serverB (linux) with username as userB I want to clone a hg repository in serverB to my local machine using TortoiseHg for windows. The machine serverB can be sshed only…
arunmoezhi
  • 3,082
  • 6
  • 35
  • 54
1
vote
1 answer

How to add different colors to mercurial template command?

What I want: A command that prints number of added (+) and removed (-) from change log, where the added portion(+) written in green and deleted portion (-) written in red. What I have currently: hg log -T {diffstat} prints what I want (+20/-31:)…
hello_harry
  • 1,265
  • 2
  • 14
  • 24
1
vote
2 answers

create hgrc file to work on all paths on a machine, and for several repos

I want to create a hgrc file to set the username and password for all paths on some machine, e.g no matter in which directory I am in, hg clone some_path will always work without prompting for a username and a password (this is for an auto-deploy…
olamundo
  • 23,991
  • 34
  • 108
  • 149
1
vote
1 answer

Prepare commit message hook in Mercurial

What is Mercurial's equivalent to the prepare-commit-message hook in Git? Basically what I'm looking for is any hook that runs as part of a commit but before the commit message has been edited by the user. The hook will edit the commit message and…
Rick
  • 3,240
  • 2
  • 29
  • 53
1
vote
1 answer

Cheat sheet for mercurial's hgrc conf file?

I wonder if there are good cheat sheets for all the options you can set in mercurial's hgrc file? I cant find any.
never_had_a_name
  • 90,630
  • 105
  • 267
  • 383