[Pidgin] UsingPidginMercurial modified
Pidgin
trac at pidgin.im
Thu Jun 14 08:50:12 EDT 2012
Changed page "UsingPidginMercurial" by rekkanoryo from 71.61.104.159*
Page URL: <http://developer.pidgin.im/wiki/UsingPidginMercurial>
Diff URL: <http://developer.pidgin.im/wiki/UsingPidginMercurial?action=diff&version=8>
Revision 8
Comment: Add some info about configuring hg via hgrc
-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: UsingPidginMercurial
=========================================================================
--- UsingPidginMercurial (version: 7)
+++ UsingPidginMercurial (version: 8)
@@ -8,6 +8,32 @@
All Pidgin Mercurial repositories will be available via HTTP from [http://hg.pidgin.im http://hg.pidgin.im].
== Developers ==
+
+=== Configure Mercurial ===
+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.
+
+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 at 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`):
+{{{
+[ui]
+username = First Last <email at address.tld>
+}}}
+
+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:
+{{{
+[ui]
+username = First Last <email at address.tld>
+verbose = True
+merge = meld
+}}}
+
+Git diffs can be useful too, and making `hg log -v` the default behavior for `hg log` can be helpful:
+{{{
+[diff]
+git = 1
+
+[defaults]
+log = -v
+}}}
=== Configure SSH For Access (Developers/CPW's/SoC Students Only) ===
If you wish, you can simplify Mercurial ssh: URL's by adding the following to `~/.ssh/config`:
@@ -105,7 +131,7 @@
* Note: an initial manual pull may be necessary for new repos
* [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
* This is registered in the `/srv/mercurial-server/notification-repo/` (which isn't served anywhere)
- * [[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
+ * [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
* This is registered in the `/srv/mercurial-server/notification-repo/` (which isn't served anywhere)
=== hgweb stuff ===
-------8<------8<------8<------8<------8<------8<------8<------8<--------
* The IP shown here might not mean anything if the user or the server is
behind a proxy.
--
Pidgin <http://pidgin.im>
Pidgin
This is an automated message. Someone at http://pidgin.im added your email
address to be notified of changes on UsingPidginMercurial. If it was not you, please
report to .
More information about the Wikiedit
mailing list