105 questions
4 votes
2 answers
366 views
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 ...
3 votes
1 answer
104 views
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 ~/....
2 votes
2 answers
86 views
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 ...
1 vote
0 answers
120 views
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 <branch_name> the mergetool still tries to merge al the (generated) files ...
1 vote
0 answers
98 views
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 ...
1 vote
0 answers
55 views
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 ...
0 votes
1 answer
78 views
Untracking files without them being deleted from yours AND OTHERS' file system?
I used hg forget <files> to untrack some files without them being deleted from my file system like using hg rm <files> does. I committed the change and running hg status listed these files ...
1 vote
1 answer
1k views
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, ...
0 votes
1 answer
173 views
hgk/hg view works with established repo but not with new repo
My vm system: > uname -a Linux xxx 2.6.32-573.22.1.el6.i686 #1 SMP Wed Mar 23 00:37:12 UTC 2016 i686 i686 i386 GNU/Linux > python --version Python 2.6.6 > hg --version Mercurial ...
0 votes
1 answer
51 views
Can I reuse a Mercurial config item?
Here is what I mean: [paths] default = some/path/to/something another_path = [paths.default]/something/else Can it be done somehow? Thanks ;)
0 votes
1 answer
82 views
hgignore - ignore file by specific remote location
I have checkout from a local mercurial repository and want to make a backup on another repo. but files is too large. it's there any chance to ignoring some directories/files on specific remote?
0 votes
1 answer
351 views
Kallithea does not use hooks defined in .hg/hgrc
I want to allow pushing to the default branch only for certain users. Since Kallithea does not have this functionality built in my attempt was creating a hook that should provide that behavior. I know ...
1 vote
1 answer
1k views
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 ...
3 votes
0 answers
55 views
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 ...
2 votes
1 answer
50 views
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 ...