Mercurial > hg
comparison mercurial/config.py @ 22419:fdfc9faca273
ui: move samplehgrcs from config
config is generic code that doesn't know about Mercurial usage, so
this was at the wrong layer
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 11 Sep 2014 12:26:12 -0500 |
parents | 192c798aabee |
children | 3182965b3971 |
comparison
equal
deleted
inserted
replaced
22418:192c798aabee | 22419:fdfc9faca273 |
---|---|
6 # GNU General Public License version 2 or any later version. | 6 # GNU General Public License version 2 or any later version. |
7 | 7 |
8 from i18n import _ | 8 from i18n import _ |
9 import error, util | 9 import error, util |
10 import os, errno | 10 import os, errno |
11 | |
12 samplehgrcs = { | |
13 'user': | |
14 """# example user config (see "hg help config" for more info) | |
15 [ui] | |
16 # name and email, e.g. | |
17 # username = Jane Doe <jdoe@example.com> | |
18 username = | |
19 | |
20 [extensions] | |
21 # uncomment these lines to enable some popular extensions | |
22 # (see "hg help extensions" for more info) | |
23 # | |
24 # pager = | |
25 # progress = | |
26 # color =""", | |
27 | |
28 'local': | |
29 """# example repository config (see "hg help config" for more info) | |
30 """, | |
31 | |
32 'global': | |
33 """# example system-wide hg config (see "hg help config" for more info) | |
34 | |
35 [extensions] | |
36 # uncomment these lines to enable some popular extensions | |
37 # (see "hg help extensions" for more info) | |
38 # | |
39 # blackbox = | |
40 # progress = | |
41 # color = | |
42 # pager =""", | |
43 } | |
44 | 11 |
45 class config(object): | 12 class config(object): |
46 def __init__(self, data=None): | 13 def __init__(self, data=None): |
47 self._data = {} | 14 self._data = {} |
48 self._source = {} | 15 self._source = {} |