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

Mercurial: remote operation with different environments (remotecmd .hgrc)

There are two project in which I collaborate, they live in different servers, A and B. While A has the hg program in /opt/mercurial/bin/hg, B has it in /usr/local/bin/hg. When I want to pull/push changes to either remote, I have to manually modify…
pgpb.padilla
  • 2,318
  • 2
  • 20
  • 44
2
votes
1 answer

Mercurial - cleverencode - cleverdecode - multiple file patterns - mercurial.ini

How do I specify the CRLF encode/decode option in mercurial.ini in Windows? The documentation gives the following options: [extensions] win32text = [decode] ** = cleverdecode: [encode] ** = cleverencode: for all files and, [extensions] win32text…
Shyam Kumar Sundarakumar
  • 5,649
  • 13
  • 42
  • 69
2
votes
1 answer

Modify the default command of mercurial

by default, just typing hg in the command prompt will show the basic help - what is nice for novice, of course. But is there a way to modify this, so that for example the current summary is shown? (i.e. get the result of hg sum when just typing…
mr_georg
  • 3,635
  • 5
  • 35
  • 52
2
votes
1 answer

mercurial on macos doesn't read ~/.config/hg/hgrc

I installed mercurial on my Mabook-Air (M1) using: brew install mercurial Mercurial (6.1.2) is working fine, but the configurations files that I copied over from my Linux setup (everything under ~/.config/hg/ including hgrc and a global hgignore)…
Anthon
  • 69,918
  • 32
  • 186
  • 246
2
votes
2 answers

Post-clone hook in .hgrc is not always executed?

I have created a post-clone hook in .hg/hgrc. This hook sometimes executed, and sometimes not, depending on which directory hg is called from. Let the repository be in /path/to/repos/. The post-clone hook is in /path/to/repos/.hg/hgrc. Cloning from…
2
votes
1 answer

Mercurial - how to force a merge for certain files?

I am trying to force a manual merge for certain files per this question but it isn't working. Certain pom files are being auto merged even though I believe I have configured my .hgrc correctly. Any ideas? I tried fiddling with the merge tools…
Marcus Leon
  • 55,199
  • 118
  • 297
  • 429
2
votes
2 answers

Mercurial deny clone/pull?

I'm currently developing a Python Fabric script that contains some sensitive information. I would like to put this in a repository for a certain few users to access. I've put this in my hgrc file: [web] allowpull = false allow_read = user1,…
EddyR
  • 6,891
  • 7
  • 42
  • 50
2
votes
1 answer

In Mercurial, after "hg init" to create a project and pushing onto server, how to make local directory to have "hg path" of the server?

When a project is started with mkdir proj cd proj hg init [create some files] hg add file.txt hg commit hg push ssh://me@somewhere.somehost.com/proj now when hg path is issued, nothing will show. How do we actually change the repository so that it…
nonopolarity
  • 146,324
  • 131
  • 460
  • 740
2
votes
1 answer

What is the entry upstream in hgrc for?

In the hgrc file for my repository, I have two paths, one default and the other upstream. They are identical. Do I need the entry for upstream and if so why? I have no idea why I have that for upstream. [paths] default = https://myUrl upstream =…
finch
  • 549
  • 1
  • 6
  • 18
2
votes
1 answer

How do I swap my master repository location in mercurial

I have a local mercurial repository. And I back it up with a clone in a separate folder that lives in my google drive folder. Every now and again I'll go into the google drive repo and do an hg pull, and google drive takes care of backing it up. But…
2
votes
1 answer

Is the mercurial default glob matching syntax configurable?

To run a command on a single file, I recently realized I can do this: hg log relglob:UniqueFilename instead of: hg log some/really/deep/directory/hierarchy/UniqueFilename I'd like to take this one step further and make relglob the default matching…
ataylor
  • 64,891
  • 24
  • 161
  • 189
2
votes
1 answer

Mercurial changes the file's owner after update

I have a php webapp controlled by mercurial. It's in /var/www/directory/. The files are owned by user and group 'www-data'. After I pull some changes, the files become owned by root.root. That's because the hg is run by root? it's a remote server…
Kreker
  • 2,438
  • 3
  • 23
  • 27
2
votes
1 answer

Mercurial HG: "hg push" returns abort: HTTP Error 500: No such file or directory

I am using mercurial and when I am trying to use hg push, I am getting this error: abort: HTTP Error 500: No such file or directory Server information: Nginx with Mercurial Debian 7.1 Any idea why? The pull works fine. EDIT: By enabling to push…
Milos Cuculovic
  • 19,631
  • 51
  • 159
  • 265
2
votes
1 answer

Hg pager extension doesn't work for 'blame'

I am using Merucrial with the pager extension, and I am trying to configure out to use the pager for blame, but it's not working. I have in my .hgrc file: [extensions] pager = [pager] pager = less -FRX attend = diff, status, help, log, blame The…
HighCommander4
  • 50,428
  • 24
  • 122
  • 194
2
votes
2 answers

Configure HG to use uncompressed transfer for specific servers

Is it possible to configure Mercurial or TortoiseHG to always use uncompressed transfer when pulling or cloning from certain servers? We have repositories on Kiln that have sub-repositories located on the local LAN (mostly large binary files). When…
Dave Nay
  • 549
  • 5
  • 23