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
8
votes
1 answer

creating new remote repository for existing project with Mercurial

I have a project with version.2 and i have to start working on it to develop a new version.3 . I want to create a new repo on a remote server (i.e. a mercurial-server) so that my team member could access that repo .I have my project file on my local…
Subhransu Mishra
  • 3,035
  • 11
  • 40
  • 47
8
votes
1 answer

How can I get 'hg pull' to honor trusted-users section in my .hgrc?

I'm sharing a Mercurial repo with a user dias, whom I would trust with my life as well as my data. I therefore added [trusted] users = dias, nr to my ~/.hgrc file. However, when I pull from a remote repo with hg pull -v, I always get this…
Norman Ramsey
  • 198,648
  • 61
  • 360
  • 533
7
votes
3 answers

How to config mercurial to push without asking my password through ssh?

I use mercurial in my project, and every time I push new changesets to the server by ssh, it ask me for a password. Then how to config the mercurial to push with out asking password? I works on Ubuntu 9.10
Croplio
  • 3,433
  • 6
  • 31
  • 37
6
votes
2 answers

Pushing with mercurial: abort: no username supplied (see "hg help config")

I'm not sure why but since today I have the problem with pushing my source to repo. I got abort: no username supplied (see "hg help config") The thing is that I have [ui] section in hgrc: [ui] username = My username verbose = true Where's the…
KennyPowers
  • 4,925
  • 8
  • 36
  • 51
5
votes
1 answer

Make .hgignore in a Mercurial repository available to all subrepos?

I have a Mercurial repository with several subrepos. Is there a possibility to only define a general .hgignore-File (e.g. to ignore object-files) both in the main repository and, optionally a specialized one in the sub-repositories? There is not…
glasflügel
  • 325
  • 2
  • 11
5
votes
5 answers

Get a 404 Error when clone, pull mercurial repository

I have a repository in here http://repos.joomlaguruteam.com/ I using hgweb.cgi this is my hgweb.config file [web] baseurl = #allowpull = true allow_push = * push_ssl = false allow_archive = bz2 gz zip [paths] / = /home/repos/* I can browse it but…
Yuan Chen
  • 1,117
  • 1
  • 11
  • 18
5
votes
1 answer

Enable a mercurial extension in .hgrc only if it's present

I have a lot of things in my .hgrc file so I keep it in a repository and share it between computers. I have a lot of extensions enabled in the [extensions] section, but I don't necessarily want to use all of them on all of my…
HighCommander4
  • 50,428
  • 24
  • 122
  • 194
4
votes
1 answer

Are hgrc files inside a mercurial repo tracked by the repo itself?

We have an hgrc file that contains settings that should be global to all members of our development team. When I make changes to my hgrc file I do not appear to be able to have these changes propagate to anybody else who clones a repo. Is there a…
benstpierre
  • 32,833
  • 51
  • 177
  • 288
4
votes
2 answers

Mercurial hook that operates like 'changegroup', but only on push?

We've built a changeset propagation mechanism, but it relies on bundling and unbundling the new changesets. If we were to use the changegroup hook, then it would cause cyclic behaviors, because the hook is run during a pull, push, or unbundle. What…
voithos
  • 68,482
  • 12
  • 101
  • 116
4
votes
2 answers

Checking hgrc file into Mercurial

I have a project using mercurial for version control, SCons to build, and google test to write unit tests. The hgrc file hooks pre-commit and runs SCons to build the project and and run unit tests. Is there a way to "check-in" a portion of the hgrc…
Jonathan
  • 732
  • 5
  • 19
4
votes
1 answer

Mercurial - User Specific Ignore file

I am trying to get mercurial to ignore hidden files for a specific user. I used the directions here: How to make mercurial ignore all hidden files? and got it to ignore files in a specific repo. I want to extend this behavior to all hg repos for a…
crlane
  • 521
  • 5
  • 16
4
votes
1 answer

mercurial multiple usernames in hgrc

I am accessing multiple mercurial repositories and based on the host name, I want to configure with what name and email address I appear on each of them. The obvious solution would be adding the 'username' to the ui section of each repo's hgrc file…
abdus_salam
  • 738
  • 2
  • 7
  • 19
4
votes
1 answer

File History for Renamed Files in TortoiseHg

I know how to use Mercurial to rename a file. And I understand that the hg log command does not display file history prior to renaming the file unless you use the -f option, and also that you can force the file history to be displayed as described…
Greeso
  • 7,544
  • 9
  • 51
  • 77
4
votes
2 answers

Specifying a per-repository hgrc file

I'm setting up a centrally hosted Mercurial repository. I would like to be able to define only a small set of users that are able to access that repository (maybe 3 or 4) - what do I need to write in the .hg/hgrc file that in order to make it work…
Paul
  • 9,409
  • 13
  • 64
  • 113
4
votes
1 answer

Get Mercurial to tell you the hgrc files it loads

I often have trouble finding the hgrc files loaded by Mercurial. I know the possible locations are documented at http://linux.die.net/man/5/hgrc, but there are quite a few of them, and they vary from platform to platform, and they depend on things…
HighCommander4
  • 50,428
  • 24
  • 122
  • 194