Mercurial > public > mercurial-scm > hg
comparison mercurial/ui.py @ 33687:6294654453ee
py3: use bytes IO to write sample hgrc
Unicode sucks. Stop using Text IO and manually convert line endings.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Thu, 03 Aug 2017 00:45:02 +0900 |
parents | d90f9e4704de |
children | d880a6bcef2f |
comparison
equal
deleted
inserted
replaced
33686:5aac617a028d | 33687:6294654453ee |
---|---|
58 git = 1 | 58 git = 1 |
59 """ | 59 """ |
60 | 60 |
61 samplehgrcs = { | 61 samplehgrcs = { |
62 'user': | 62 'user': |
63 """# example user config (see 'hg help config' for more info) | 63 b"""# example user config (see 'hg help config' for more info) |
64 [ui] | 64 [ui] |
65 # name and email, e.g. | 65 # name and email, e.g. |
66 # username = Jane Doe <jdoe@example.com> | 66 # username = Jane Doe <jdoe@example.com> |
67 username = | 67 username = |
68 | 68 |
80 # | 80 # |
81 # churn = | 81 # churn = |
82 """, | 82 """, |
83 | 83 |
84 'cloned': | 84 'cloned': |
85 """# example repository config (see 'hg help config' for more info) | 85 b"""# example repository config (see 'hg help config' for more info) |
86 [paths] | 86 [paths] |
87 default = %s | 87 default = %s |
88 | 88 |
89 # path aliases to other clones of this repo in URLs or filesystem paths | 89 # path aliases to other clones of this repo in URLs or filesystem paths |
90 # (see 'hg help config.paths' for more info) | 90 # (see 'hg help config.paths' for more info) |
97 # name and email (local to this repository, optional), e.g. | 97 # name and email (local to this repository, optional), e.g. |
98 # username = Jane Doe <jdoe@example.com> | 98 # username = Jane Doe <jdoe@example.com> |
99 """, | 99 """, |
100 | 100 |
101 'local': | 101 'local': |
102 """# example repository config (see 'hg help config' for more info) | 102 b"""# example repository config (see 'hg help config' for more info) |
103 [paths] | 103 [paths] |
104 # path aliases to other clones of this repo in URLs or filesystem paths | 104 # path aliases to other clones of this repo in URLs or filesystem paths |
105 # (see 'hg help config.paths' for more info) | 105 # (see 'hg help config.paths' for more info) |
106 # | 106 # |
107 # default = http://example.com/hg/example-repo | 107 # default = http://example.com/hg/example-repo |
113 # name and email (local to this repository, optional), e.g. | 113 # name and email (local to this repository, optional), e.g. |
114 # username = Jane Doe <jdoe@example.com> | 114 # username = Jane Doe <jdoe@example.com> |
115 """, | 115 """, |
116 | 116 |
117 'global': | 117 'global': |
118 """# example system-wide hg config (see 'hg help config' for more info) | 118 b"""# example system-wide hg config (see 'hg help config' for more info) |
119 | 119 |
120 [ui] | 120 [ui] |
121 # uncomment to disable color in command output | 121 # uncomment to disable color in command output |
122 # (see 'hg help color' for details) | 122 # (see 'hg help color' for details) |
123 # color = never | 123 # color = never |