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.

Changes between Version 7 and Version 8 of UsingPidginMercurial


Ignore:
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
  • UsingPidginMercurial

    v7 v8  
    99
    1010== Developers ==
     11
     12=== Configure Mercurial ===
     13Mercurial 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
     15When 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]
     18username = First Last <email@address.tld>
     19}}}
     20
     21Other 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]
     24username = First Last <email@address.tld>
     25verbose = True
     26merge = meld
     27}}}
     28
     29Git diffs can be useful too, and making `hg log -v` the default behavior for `hg log` can be helpful:
     30{{{
     31[diff]
     32git = 1
     33
     34[defaults]
     35log = -v
     36}}}
    1137
    1238=== Configure SSH For Access (Developers/CPW's/SoC Students Only) ===
     
    106132 * [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
    107133  * 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
    109135  * This is registered in the `/srv/mercurial-server/notification-repo/` (which isn't served anywhere)
    110136
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!