mercurial configuration
---

diff --git a/etc/mercurial/hgrc.d/extensions.mq.rc b/etc/mercurial/hgrc.d/extensions.mq.rc
new file mode 100644
--- /dev/null
+++ b/etc/mercurial/hgrc.d/extensions.mq.rc
@@ -0,0 +1,2 @@
+[extensions]
+hgext.mq =
diff --git a/etc/mercurial/hgrc.d/hgrc.rc b/etc/mercurial/hgrc.d/hgrc.rc
new file mode 100644
--- /dev/null
+++ b/etc/mercurial/hgrc.d/hgrc.rc
@@ -0,0 +1,22 @@
+; System-wide Mercurial config file.  To override these settings on a
+; per-user basis, please edit the following file instead, where
+; USERNAME is your Windows user name:
+;   /home/USERNAME\.hgrc
+
+[diff]
+git = 1
+
+[ui]
+editor = notepad
+; username = myusername <my@email>
+
+; By default, we try to encode and decode all files that do not
+; contain ASCII NUL characters.  What this means is that we try to set
+; line endings to Windows style on update, and to Unix style on
+; commit.  This lets us cooperate with Linux and Unix users, so
+; everybody sees files with their native line endings.
+
+[extensions]
+; The win32text extension is available and installed by default.  It
+; provides built-in Python hooks to perform line ending conversions.
+; This is normally much faster than running an external program.
diff --git a/etc/profile.d/mercurial_hgrcpath.sh b/etc/profile.d/mercurial_hgrcpath.sh
new file mode 100644
--- /dev/null
+++ b/etc/profile.d/mercurial_hgrcpath.sh
@@ -0,0 +1,1 @@
+export HGRCPATH=/etc/mercurial/hgrc.d/:$HOME/.hgrc
