Trac is being migrated to new services! Issues can be found in our new
YouTrack instance and WIKI pages can be found on our
website.
- Timestamp:
-
Jun 14, 2012, 12:50:09 PM (12 years ago)
- Author:
-
John Bailey
- Comment:
-
Add some info about configuring hg via hgrc
Legend:
- Unmodified
- Added
- Removed
- Modified
-
|
v7
|
v8
|
|
| 9 | 9 | |
| 10 | 10 | == Developers == |
| | 11 | |
| | 12 | === Configure Mercurial === |
| | 13 | Mercurial uses an rc file to control its configuration. There are several that will affect your use. One set of them is in `/etc/mercurial` and will be controlled by your package manager. The others are entirely under your control. Each repository has its own `hgrc` file in `repository/.hg/hgrc` which can be used to configure mercurial's behavior when interacting with that repository. Finally, there is `~/.hgrc`, which will configure mercurial's behavior for any repository your user account touches. |
| | 14 | |
| | 15 | When working with Pidgin's mercurial repositories, we expect that you will have at least a minimum configuration that gives your name in the 'First Last <email@address.tld>' format. To do that, two simple lines need to be inserted into an appropriate `hgrc` (I believe most people will want to do this in `~/.hgrc`): |
| | 16 | {{{ |
| | 17 | [ui] |
| | 18 | username = First Last <email@address.tld> |
| | 19 | }}} |
| | 20 | |
| | 21 | Other useful options that can be set in the `[ui]` section of an `hgrc` are the merge tool and to make mercurial verbose or not: |
| | 22 | {{{ |
| | 23 | [ui] |
| | 24 | username = First Last <email@address.tld> |
| | 25 | verbose = True |
| | 26 | merge = meld |
| | 27 | }}} |
| | 28 | |
| | 29 | Git diffs can be useful too, and making `hg log -v` the default behavior for `hg log` can be helpful: |
| | 30 | {{{ |
| | 31 | [diff] |
| | 32 | git = 1 |
| | 33 | |
| | 34 | [defaults] |
| | 35 | log = -v |
| | 36 | }}} |
| 11 | 37 | |
| 12 | 38 | === Configure SSH For Access (Developers/CPW's/SoC Students Only) === |
| … |
… |
|
| 106 | 132 | * [http://hg.pidgin.im/util/hg_hooks/file/tip/notify.py notify.py] slightly tweaked version of the built-in hg hook to facilitate using a separate repo for driving the notifications |
| 107 | 133 | * This is registered in the `/srv/mercurial-server/notification-repo/` (which isn't served anywhere) |
| 108 | | * [[http://hg.pidgin.im/util/hg_hooks/file/tip/hgcia.py hgcia.py] slightly tweaked version of the built-in hg hook for CIA bot notification |
| | 134 | * [http://hg.pidgin.im/util/hg_hooks/file/tip/hgcia.py hgcia.py] slightly tweaked version of the built-in hg hook for CIA bot notification |
| 109 | 135 | * This is registered in the `/srv/mercurial-server/notification-repo/` (which isn't served anywhere) |
| 110 | 136 | |
All information, including names and email addresses, entered onto this website or sent to mailing lists affiliated with this website will be public. Do not post confidential information, especially passwords!