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

Including mercurial extensions from eggs

Is there some way to import an extension from an .egg file? For example hggit installs itself as hg_git-0.2.4-py2.5.egg, which cannot be listed under [extensions] directly, or it's interpreted as a standard .py file. Is there some way to include…
viraptor
  • 33,322
  • 10
  • 107
  • 191
0
votes
1 answer

ignore certain files on HG pull

Thanks for reading my situation.. My situation is this: RepoA (7GB) - I have read access RepoB (7GB - Forked from RepoA) - I have read/write access, but no admin access, and cannot fork. I did not set up any of these, but am now the admin of the…
0
votes
1 answer

Mercurial - How to configure multiline hook on Windows

Running Windows 7, configuring a commit hook in my .hgrc file. The hook calls an external powershell script and passes it a few parameters. When I put all the parameters on one long line, the script receives them just fine. However, when I try…
0
votes
0 answers

Failed to import extension mercurial_keyring - Rhodecode - Object has no attribute NullHandler

Machine Env: Windows7 box with Cygwin/TortoiseHg, Linux box (RHEL). Mercurial/Hg - 3.0.1 version I'm trying to integrate mercurial_keyring to perform username/password less operations. Mercurial keyring prompts first time per user / per repository…
AKS
  • 16,482
  • 43
  • 166
  • 258
0
votes
0 answers

Mercurial deny clone exact branch in repository

I'm using http to serve two branches in HG. I need one user to have access only for certain branch. How can I deny cloning exact branch with AclExtension? My .hg/hgrc is pretxnchangegroup = python:hgext.acl.hook [acl] sources = http, pull,…
skater_nex
  • 453
  • 1
  • 5
  • 11
0
votes
1 answer

Unable to find hgrc file

I am trying to set up my username and password for mercurial. The answers to previous questions says to add the following lines in the .hgrc file [ui] username = MY_USER_NAME password = MY_PASSWORD However I am unable to find this file, I only see…
Noor
  • 11
  • 4
0
votes
1 answer

Mercurial bitbucket authorization failed

I changed my Bitbucket password based on 1Pass's watchtower recommendation. Ever since, I can't pull / push any of my repos, although I can login via a browser. I've tried both HTTP and SSH, and neither work. Here is a sample output. hg pull --debug…
0
votes
1 answer

Is it possible to check in a portion of mercurial hgrc file into the repo? Specifically, the [path] section

After doing a little bit of research on google and stack, it seems that it is not possible to check in a hgrc file into the repo, for various security reasons that make a lot of sense. However, I have an interesting setup and I'm wondering if…
Kevin Jhangiani
  • 1,597
  • 2
  • 13
  • 23
0
votes
1 answer

Edit repo config file from extension

Is there any built in mechanism for editing a repository's hgrc config file using the Mercurial API? I'm writing an extension that requires storing some options in the config file, and I'd like to provide a command for do so (the options that need…
brianmearns
  • 9,581
  • 10
  • 52
  • 79
0
votes
1 answer

Hg (Mercurial SCM) and Notify - How to get project name and edit email subject?

I'm using Hg(1.6.4) with Notify extension and I am trying to override the changeset template with project name on email subject. I read the "hg template help" and I not found a specific tag to get the project name. The {webroot} and {root} tags got…
Ricardo
  • 667
  • 9
  • 25
0
votes
2 answers

hg aborts on outgoing mq hook

I'm trying to run hg pull -u, but it gives the following error: searching for changes /bin/sh: !: not found abort: preoutgoing.mq-no-push hook exited with status 1 my .hgrc includes this hook, which I'm guessing is causing the…
craq
  • 1,441
  • 2
  • 20
  • 39
0
votes
2 answers

Common HgNotify template configuration

Is there a way to point to a common HgNotify configuration in each repositories' hgrc file on windows? I have the below notify section in each hgrc for every repo that I have on the server, and when I want to create a new repo, I have to copy this…
slolife
  • 19,520
  • 20
  • 78
  • 121
0
votes
2 answers

Fix email subject on windows hosted Hg server notifications

I followed the instructions here to get a Mercurial server hosted in IIS7: http://www.firegarden.com/software/hosting-mercurial-repo-iis7-windows-server-2008r2-x64-python-isapi-cgi It works great, clean urls and notifications get sent and are…
slolife
  • 19,520
  • 20
  • 78
  • 121
0
votes
2 answers

push to configured hg repository from web interface

I have a small group of developers and we all develop on our own machines. When we have code that is ready for testing, we merge and push to a RhodeCode installation. The hgrc file for my central RhodeCode repo is set up like this: [paths] test_env…
whiteatom
  • 1,456
  • 2
  • 14
  • 33
0
votes
1 answer

How do I get the name of the branch that has had the most recent commit in Mercurial

What I would like to do is query the HG repo to find the branch name of the last commit. When a user pushes their commit to the repo, I am triggering a batch file via a hook in the .hg/hgrc file in the central repo. Using hg branch in my local repo…
dpmguise
  • 718
  • 1
  • 4
  • 10
1 2 3 4 5 6
7