##// END OF EJS Templates
configitems: register the 'win32text.warn' config
Boris Feld -
r34186:f84358f7 default
parent child Browse files
Show More
@@ -49,6 +49,7 b' from mercurial.node import ('
49 short,
49 short,
50 )
50 )
51 from mercurial import (
51 from mercurial import (
52 registrar,
52 util,
53 util,
53 )
54 )
54
55
@@ -58,6 +59,13 b' from mercurial import ('
58 # leave the attribute unspecified.
59 # leave the attribute unspecified.
59 testedwith = 'ships-with-hg-core'
60 testedwith = 'ships-with-hg-core'
60
61
62 configtable = {}
63 configitem = registrar.configitem(configtable)
64
65 configitem('win32text', 'warn',
66 default=True,
67 )
68
61 # regexp for single LF without CR preceding.
69 # regexp for single LF without CR preceding.
62 re_single_lf = re.compile('(^|[^\r])\n', re.MULTILINE)
70 re_single_lf = re.compile('(^|[^\r])\n', re.MULTILINE)
63
71
@@ -178,6 +186,6 b' def reposetup(ui, repo):'
178
186
179 def extsetup(ui):
187 def extsetup(ui):
180 # deprecated config: win32text.warn
188 # deprecated config: win32text.warn
181 if ui.configbool('win32text', 'warn', True):
189 if ui.configbool('win32text', 'warn'):
182 ui.warn(_("win32text is deprecated: "
190 ui.warn(_("win32text is deprecated: "
183 "https://mercurial-scm.org/wiki/Win32TextExtension\n"))
191 "https://mercurial-scm.org/wiki/Win32TextExtension\n"))
General Comments 0
You need to be logged in to leave comments. Login now