hgrc

Mercurial: Globally Ignore Files

依然范特西╮ 提交于 2019-11-29 20:23:27
I know about .hgignore and how I can ignore files on a project-by-project basis. I want to ignore stuff for all Mercurial repositories. Is there something I can stick in .hgrc ? Or put a .hgignore in my $HOME path (I tried that already but maybe I did something wrong). You can add a path to a global or per-user ignore file in the [ui] section of your global/user hgrc or Mercurial.ini : [ui] ignore = ~/.hgignore On Windows: [ui] ignore = %USERPROFILE%\.hgignore In powershell, you can get to your global files like this. PS> notepad $env:userprofile/mercurial.ini ... [ui] ignore = %USERPROFILE%\

hg: How do I change the language of my Mercurial(hg) installation? (MacOS)

你说的曾经没有我的故事 提交于 2019-11-29 01:14:55
I re-installed mercurial on my Mac (snow leopard) yesterday. The UI/console language of Mercurial has changed from English to Danish. My machine is set up to US-English and my keyboard layout is Danish. I do not want the Danish translation active as it is incomplete. I just need Mercurial to "speak" English again. :-) How do i change this? If you set your LANG environment variable to en_US.UTF-8 your can change the language of the Mercurial client (Hg). export LANG=en_US.UTF-8 If you don't want to change your environment variables (as this might influence other applications you actually want

Mercurial: Globally Ignore Files

泄露秘密 提交于 2019-11-28 16:25:11
问题 I know about .hgignore and how I can ignore files on a project-by-project basis. I want to ignore stuff for all Mercurial repositories. Is there something I can stick in .hgrc ? Or put a .hgignore in my $HOME path (I tried that already but maybe I did something wrong). 回答1: You can add a path to a global or per-user ignore file in the [ui] section of your global/user hgrc or Mercurial.ini : [ui] ignore = ~/.hgignore On Windows: [ui] ignore = %USERPROFILE%\.hgignore 回答2: In powershell, you can

How to save username and password with Mercurial?

孤街浪徒 提交于 2019-11-26 21:09:42
I used Mercurial in a personal project, and I have been typing my username and password every time I want to push something to the server. I tried adding the following to the .hgrc file in my home directory, but it seems to be completely ignored. [ui] username = MY_USER_NAME password = MY_PASSWORD How to do this the right way? Laurens Holst You can make an auth section in your .hgrc or Mercurial.ini file, like so: [auth] bb.prefix = https://bitbucket.org/repo/path bb.username = foo bb.password = foo_passwd The ‘bb’ part is an arbitrary identifier and is used to match prefix with username and