mercurial/config.py
changeset 22383 f58b41f6708b
parent 22037 8665c647da6e
child 22384 091306562855
--- a/mercurial/config.py	Mon Sep 01 11:48:55 2014 +0200
+++ b/mercurial/config.py	Wed Aug 13 17:05:48 2014 -0400
@@ -9,6 +9,31 @@
 import error, util
 import os, errno
 
+samplehgrcs = {
+    'user':
+"""# example user config (see "hg help config" for more info)
+[ui]
+# name and email, e.g.
+# username = Jane Doe <jdoe@example.com>
+username =
+
+[extensions]
+# uncomment these lines to enable some popular extensions
+# (see "hg help extensions" for more info)
+#
+# pager =
+# progress =
+# color =""",
+
+    'local':
+"""# example repository config (see "hg help config" for more info)
+""",
+
+    'global':
+"""# example system-wide hg config (see "hg help config" for more info)
+""",
+}
+
 class config(object):
     def __init__(self, data=None):
         self._data = {}