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
1
vote
1 answer

Disabling Mercurial Hooks For Specific Repo Sources

On my computer I have some Mercurial commit hooks that run on every commit that make sure I branch correctly and do a few other things. But I only need these for work projects. Here are the hooks implemented in my ~/.hgrc file: [hooks] # This hook…
Patrick
  • 3,302
  • 4
  • 28
  • 47
1
vote
1 answer

hg update over ssh not working (hg clone works well...)

I have some code on bitbucket.org under mercurial version control. Now I want to download the code on my ubuntu machine over ssh. When I use hg clone everything works well. However hg update never updates any files. I'm not even asked for my ssh…
ACNB
  • 816
  • 9
  • 18
1
vote
1 answer

Mercurial HG 'pretxncommit.whitespace hook exited with status 1' but no hook specified

the title of this request says it all pretty much. I have no hooks defined in my .hgrc file, but I am getting this rollback message on running hg commit: transaction abort! rollback completed abort: pretxncommit.whitespace hook exited with status…
Nebelhom
  • 3,783
  • 4
  • 21
  • 22
1
vote
3 answers

Allow commits in Mercurial only with specific filenames

Is there a way to use the hg commit command only when filenames are supplied? This should work: hg commit file1 file2 This should not: hg commit I don't want people to mistakenly commit files that aren't supposed to be commited.
Subbeh
  • 886
  • 2
  • 7
  • 14
1
vote
1 answer

Mecurial repository files lost - How do I recreate and push to the original cloned repo?

I just lost my .hg* files for my repository after a migration and I have made a bunch of unpushed changes to some code. I need to Init a new repository and then push my changes to an existing remote repository. Do I just need to init a new repo and…
Fostah
  • 2,947
  • 4
  • 56
  • 78
1
vote
1 answer

Getting ~ to expand in .hgrc on Windows

Is it possible to get the following to work? [ui] ssh = ~\bin\ssh -i ~\.ssh\my_key Using the Googles implies it must work for some people (Linux users?), but it's definitely not working for me. I'd also accept $HOME (or some variant), but I can't…
moswald
  • 11,491
  • 7
  • 52
  • 78
1
vote
1 answer

How to specify username and password for Hgsubversion

I would like to know how to specify user name and password to be used in pushing changes to subversion repository from HG using Hgsubversion I would like to know where in my repository I should set "hgsubversion.username",…
Emmanuel N
  • 7,350
  • 2
  • 26
  • 36
0
votes
1 answer

How do I reference the repository's hgrc sections from within my custom hook?

I've written a generic changegroup hook function that I would like to customize for each repository by setting some hgrc section variables, like so: [my_hook_params] name = whatever version = 1.0 How should I go about doing this?
moswald
  • 11,491
  • 7
  • 52
  • 78
0
votes
2 answers

How to change revision format in Google Code?

I'm REALLY new to DVCS and am trying out Mercurial with Google Code as I'd like to share some extensions that I recently wrote for Google Chrome. I notice that in Google Code, most projects seem to refer to changesets via sequential numbers (eg. 1,…
jsejcksn
  • 27,667
  • 4
  • 38
  • 62
0
votes
1 answer

Untracking files without them being deleted from yours AND OTHERS' file system?

I used hg forget to untrack some files without them being deleted from my file system like using hg rm does. I committed the change and running hg status listed these files as being untracked ? as expected. I then pushed the…
Kevin
  • 367
  • 1
  • 2
  • 12
0
votes
2 answers

How do I write my hgrc so that Mercurial detects my hooks?

've written two functions in a file commit_hooks.py that I want to run before any commit is made persistent, but I can't figure out how to write my hgrc to detect them. The function headers are: def precommit_bad_merge(ui, repo, parent1=None,…
MdaG
  • 2,680
  • 2
  • 34
  • 46
0
votes
1 answer

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 Distributed SCM (version 2.2.2) > cat ~/.hgrc [extensions] hgext.hgk…
Blessed Geek
  • 21,058
  • 23
  • 106
  • 176
0
votes
1 answer

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 ;)
hollov
  • 25
  • 5
0
votes
1 answer

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?
Dee Donny
  • 37
  • 7
0
votes
1 answer

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 that Kallithea has a GUI for this but I wanted…
Mario
  • 128
  • 7