Mercurial은 특정 우선 순위를 가진 여러 구성 파일을 확인합니다. 이렇게하면 전역, 사용자 별 및 저장소 별 설정을 가질 수 있습니다.
이
$ hg help config
Configuration Files
Mercurial reads configuration data from several files, if they exist. Below we list the most specific file first.
On Windows, these configuration files are read:
- "<repo>\.hg\hgrc"
- "%USERPROFILE%\.hgrc"
- "%USERPROFILE%\Mercurial.ini"
- "%HOME%\.hgrc"
- "%HOME%\Mercurial.ini"
- "C:\Mercurial\Mercurial.ini"
- "HKEY_LOCAL_MACHINE\SOFTWARE\Mercurial"
- "<install-dir>\Mercurial.ini"
On Unix, these files are read:
- "<repo>/.hg/hgrc"
- "$HOME/.hgrc"
- "/etc/mercurial/hgrc"
- "/etc/mercurial/hgrc.d/*.rc"
- "<install-root>/etc/mercurial/hgrc"
- "<install-root>/etc/mercurial/hgrc.d/*.rc"
The configuration files for Mercurial use a simple ini-file format. A configuration file consists of sections, led by a "[section]" header and followed by
"name = value" entries:
[ui]
username = Firstname Lastname <[email protected]>
verbose = True
This above entries will be referred to as "ui.username" and "ui.verbose", respectively. Please see the hgrc man page for a full description of the possible
configuration values:
- on Unix-like systems: "man hgrc"
- online: http://www.selenic.com/mercurial/hgrc.5.html
당신은 hg showconfig
와 현재 설정을 나열 할 수 있습니다 : 의욕 버전> = 1.4 좋은 개요이를 설명하는 hg help config
명령이 있습니다.
경외감 - 그게 내가 찾고 있던 바로 그거야. 감사. –
와우, 나는 그 존재를 전혀 몰랐다. 좋은. –
Hrm, 정말 멋지 네요 ...하지만 hg 1.3.1 또는 1.4.1에서는 작동하지 않습니다 ... 그리고 '% import'에 대한 hg 소스 트리 (1.4.1 + 7-4ddfad7ebd98)를 grepping하면 바뀌지 않습니다 어떤 것도. 그래서 ... 그걸 어디서 발견 했니? –