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
277
votes
8 answers

How to save username and password with Mercurial?

I used Mercurial in a personal project, and I have been typing my username and password every time I want to push something to the server. I tried adding the following to the .hgrc file in my home directory, but it seems to be completely…
satoru
  • 31,822
  • 31
  • 91
  • 141
102
votes
1 answer

How to get the remote server hg path?

I have created a remote repo to push my local changes over ssl. I did hg showconfig --debug to find my remote hg path but it's output is messy. Can someone point me how to exactly find it?
TED
  • 1,829
  • 5
  • 18
  • 36
63
votes
2 answers

Mercurial: Globally Ignore Files

I know about .hgignore and how I can ignore files on a project-by-project basis. I want to ignore stuff for all Mercurial repositories. Is there something I can stick in .hgrc? Or put a .hgignore in my $HOME path (I tried that already but maybe I…
mikeycgto
  • 3,368
  • 3
  • 36
  • 47
25
votes
1 answer

Setting username in Mercurial .hgrc file

I have been browsing SO and Google for a solution to my basic problem, and so far I have had no luck. I am brand new to Mercurial and have just installed it on my Mac. I am using it for personal version control and will not be communicating with a…
kamek
  • 2,390
  • 2
  • 19
  • 15
21
votes
1 answer

Pulling from Mercurial - certificate error

I was trying to pull from a server, and I get the following error: C:\Users\User\hg_repo>hg pull abort: error: _ssl.c:490: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICAT E:certificate verify failed I have downloaded the certificate and…
Smashery
  • 57,848
  • 30
  • 97
  • 128
21
votes
4 answers

hg: How do I change the language of my Mercurial(hg) installation? (MacOS)

I re-installed mercurial on my Mac (snow leopard) yesterday. The UI/console language of Mercurial has changed from English to Danish. My machine is set up to US-English and my keyboard layout is Danish. I do not want the Danish translation active as…
17
votes
3 answers

How to solve error message "abort: repository default-push not found! " in Mercurial?

I am new to Mercurial and tried to push a test file to a repository online. I have encountered an error message as abort: repository default-push not found! when I tried to use hg push command. I have searched online and most of the answers…
Cassie
  • 1,179
  • 6
  • 18
  • 30
17
votes
3 answers

Can I set Mercurial config options programmatically?

I'm looking for a way to set .hgrc configuration items without actually editing the text file. I'm trying to standardize the setup of the hgrc across multiple developers and I would like a command like hg --config ui.username=foo but which also…
johnkpaul
  • 417
  • 3
  • 10
17
votes
2 answers

How do I know the current tag of Mercurial?

Now, I am getting vim source code by Mercurial (hg): root@flyingfisher-virtual-machine:/work/ABC/VIM_HG# hg tags |more tip 5228:3f65dc9c8840 v7-4a-039 5227:a08fa2919f2b v7-4a-038 …
harris
  • 1,473
  • 1
  • 17
  • 26
15
votes
1 answer

Can I include sub-config files in my mercurial .hgrc?

I want to keep my main .hgrc in revision control, because I have a fair amount of customization it in, but I want to have different author names depending on which machine I'm using (work, home, &c.). The way I'd do this in a bash script is to…
Chris R
  • 17,546
  • 23
  • 105
  • 172
12
votes
2 answers

How do I move a private Mercurial repository to a central server?

I’m just getting started with Mercurial, and I’ve read Joel Spolsky’s Hg Init tutorial, which I liked. I’m wondering: let’s say I have a private repository and I work on it for about a month. Then I decide I want to centralize it or make it public,…
Andy West
  • 12,302
  • 4
  • 34
  • 52
11
votes
4 answers

Load multiple .hgrc files - ie, some with machine-specific settings?

I'd like to keep two ~/.hgrc files: ~/.hgrc and ~/.hgrc.local – one with "standard" settings (eg, username), the other with machine-specific settings (eg, setting a graphical merge tool). How can I do this with hg? For example, this is how I do it…
David Wolever
  • 148,955
  • 89
  • 346
  • 502
10
votes
1 answer

Repository relative paths in Mercurial .hgrc file

I'm trying to create a shared hgrc file with common extensions for Mercurial, so my coworkers can get a consistent experience and find useful tools. Enabling extensions that don't ship with Mercurial, though, is causing issues. My main repo's hgrc…
jasonrclark
  • 320
  • 1
  • 2
  • 10
10
votes
2 answers

How does one configure mercurial hg to not retain backups by default?

I never use those .orig files, and I hate cleaning them up manually. Is there a way to configure hg revert to use the --no-backups option by default? I can't find it in the Mercurial manual Using a shell alias is possible but isn't desirable.
emmby
  • 99,783
  • 65
  • 191
  • 249
8
votes
2 answers

How can we customize the default commit message used by the fetch extension?

The default commit message that fetch uses, "Automated merge with ...." is long, ugly and litters the history with local directory paths. I'd like to replace it with a simple "Automated merge" or just "Merge".
Plumenator
  • 1,682
  • 3
  • 20
  • 49
1
2 3 4 5 6 7