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
4
votes
2 answers

Edit .hgrc of repository on bitbucket

Is there a way to access and edit the .hgrc file of a Mercurial repository on Bitbucket? I am talking about the repository on Bitbucket itself, not a local clone of it. The use case is that I would like to add the following in the .hgrc…
HighCommander4
  • 50,428
  • 24
  • 122
  • 194
4
votes
1 answer

How do I resolve an 'unknown repository format: requires features 'largefiles' (upgrade Mercurial)' error with Mercurial?

My server is running Mercurial 2.6 via the Python Module, exposed by HTTPS via IIS 6.1 (Server 2008 R2). I've verified that the Mercurial version has the largefiles extension build in, and I've converted my repository using the "hg lfconvert"…
Peter Bernier
  • 8,038
  • 6
  • 38
  • 53
4
votes
1 answer

Creating remote bookmarks while pushing to hgweb server

There's a lot of questions about bookmarks but none of them answers my question: What should I do to allow for creating bookmarks while pushing to my hgweb server? Here's what I'm getting while trying to push bookmark: $ hg push -B feature1 pushing…
seler
  • 8,803
  • 4
  • 41
  • 54
3
votes
1 answer

Mercurial: Prevent Untrusted warning from printing out

When performing some action on another user's repo, you will see the message Not trusting file /home/bob/repo/.hg/hgrc from untrusted user bob, group users This is fine, and I don't necessarily want to trust bob, but when running certain commands,…
Explosion Pills
  • 188,624
  • 52
  • 326
  • 405
3
votes
4 answers

How do I set up a hook in HG / Mercurial that gets dictated by the repository?

I have a need for a hook to run after update (this will build the solution they have updated) and I don't want to have to add that hook manually for each person that clones my central repository. When someone first clones my central repository, is…
sebastiaan
  • 5,870
  • 5
  • 38
  • 68
3
votes
2 answers

How to set up a different pager and color mode in Mercurial?

I set up Mercurial in .hgrc to use less as a pager together with customized colors and templates following this guide: [pager] pager = LESS='FSrX' less [templates] # ... [color] mode=terminfo This works very nicely and I'd like to keep this for…
Petr
  • 62,528
  • 13
  • 153
  • 317
3
votes
3 answers

Cross-platform hgrc solution?

I'm looking for a solution to have one .hgrc for mercurial to work in all my working environments(win/lin/mac), just like one vimrc to rule all. It comes to a problem when I have to specify the path for some extensions, for example, hg-git: on…
frank28_nfls
  • 229
  • 3
  • 10
3
votes
2 answers

Mercurial Conditional %include?

I would like parent directories of projects to include an hgrc file that a repo in that folder inherits from, e.g. ~/work/ ~/work/hgrc ~/work/project1/ ~/work/project2/ ~/personal/hgrc ~/personal/project1 ~/personal/project2 ~/personal/project3 Any…
Jonathan
  • 732
  • 5
  • 19
3
votes
0 answers

How can we unset all names in a section (Mercurial)

Our team are using mercurial both on Windows and Linux, and many members have their own customized .hgrc files in their home directories in order to convert source code; We're using .hgrc files (in home directory) with non-empty [encode]/[decode]…
3
votes
2 answers

Beyond compare with Mercurial: How to get refresh & save to work properly?

I am trying to configure beyondcompare with mercurial to setup several workflows. Currently I can do this: Launch hg bcompare or hg bcompare --rev Make some changes to the file on the right Save in beyond compare Close beyond…
sixtyfootersdude
  • 25,859
  • 43
  • 145
  • 213
3
votes
3 answers

mercurial .hgrc notify hook

Could someone tell me what is incorrect in my .hgrc configuration? I am trying to use gmail to send a e-mail after each push and/or commit. .hgrc [paths] default = ssh://www.domain.com/repo/hg [ui] username = intern…
Eeyore
  • 2,126
  • 7
  • 33
  • 49
3
votes
4 answers

Mercurial built-in template style description

I am trying to tune the output of hg log by defining my own style. In fact, just adding information to the default style would be perfect. Is there a place where I can get the description of the default styles (default, compact, ...) to write my…
Vinz
  • 5,997
  • 1
  • 31
  • 52
3
votes
1 answer

Cannot use filter pattern for largefiles extension for hg

My hgrc config files is as follow: [extensions] largefiles = [largefiles] patterns = *.jpg *.png *.bmp *.gif *.mp3 *.a *.jar *.psd *.ai *.unity *.ttf *.zip *.rar I tested by created a file a.jpg ,hg add --large a.jpg, file has been created in…
Paiboon Panusbordee
  • 781
  • 2
  • 10
  • 26
3
votes
1 answer

tortoisehg and pre-status hook

I've added "pre-status" hook to hgrc file, and it works pretty well, if I type "hg status" in console. But this hook doesn't work in Tortoise HG. I spent several hours trying to solve this riddle, but looks like Tortoise HG uses something different…
LOMS
  • 51
  • 6
3
votes
4 answers

Convert Subversion repository to Mercurial

I am trying to convert an SVN repository to Mercurial, but I'm having some troubles. These are the steps I've taken: (I am on Windows) Turned on "convert" in the extensions Opened a command window, and typed: hg convert…
Paul
  • 9,409
  • 13
  • 64
  • 113