##// END OF EJS Templates
debuginstall: lowercase status messages
Martin Geisler -
r16934:0c9c41e5 default
parent child Browse files
Show More
@@ -1973,7 +1973,7 b' def debuginstall(ui):'
1973 1973 problems = 0
1974 1974
1975 1975 # encoding
1976 ui.status(_("Checking encoding (%s)...\n") % encoding.encoding)
1976 ui.status(_("checking encoding (%s)...\n") % encoding.encoding)
1977 1977 try:
1978 1978 encoding.fromlocal("test")
1979 1979 except util.Abort, inst:
@@ -1982,7 +1982,7 b' def debuginstall(ui):'
1982 1982 problems += 1
1983 1983
1984 1984 # compiled modules
1985 ui.status(_("Checking installed modules (%s)...\n")
1985 ui.status(_("checking installed modules (%s)...\n")
1986 1986 % os.path.dirname(__file__))
1987 1987 try:
1988 1988 import bdiff, mpatch, base85, osutil
@@ -1996,7 +1996,7 b' def debuginstall(ui):'
1996 1996 # templates
1997 1997 import templater
1998 1998 p = templater.templatepath()
1999 ui.status(_("Checking templates (%s)...\n") % ' '.join(p))
1999 ui.status(_("checking templates (%s)...\n") % ' '.join(p))
2000 2000 try:
2001 2001 templater.templater(templater.templatepath("map-cmdline.default"))
2002 2002 except Exception, inst:
@@ -2005,7 +2005,7 b' def debuginstall(ui):'
2005 2005 problems += 1
2006 2006
2007 2007 # editor
2008 ui.status(_("Checking commit editor...\n"))
2008 ui.status(_("checking commit editor...\n"))
2009 2009 editor = ui.geteditor()
2010 2010 cmdpath = util.findexe(editor) or util.findexe(editor.split()[0])
2011 2011 if not cmdpath:
@@ -2020,7 +2020,7 b' def debuginstall(ui):'
2020 2020 problems += 1
2021 2021
2022 2022 # check username
2023 ui.status(_("Checking username...\n"))
2023 ui.status(_("checking username...\n"))
2024 2024 try:
2025 2025 ui.username()
2026 2026 except util.Abort, e:
@@ -2029,7 +2029,7 b' def debuginstall(ui):'
2029 2029 problems += 1
2030 2030
2031 2031 if not problems:
2032 ui.status(_("No problems detected\n"))
2032 ui.status(_("no problems detected\n"))
2033 2033 else:
2034 2034 ui.write(_("%s problems detected,"
2035 2035 " please check your install!\n") % problems)
@@ -1,19 +1,19 b''
1 1 hg debuginstall
2 2 $ hg debuginstall
3 Checking encoding (ascii)...
4 Checking installed modules (*mercurial)... (glob)
5 Checking templates (*mercurial?templates)... (glob)
6 Checking commit editor...
7 Checking username...
8 No problems detected
3 checking encoding (ascii)...
4 checking installed modules (*mercurial)... (glob)
5 checking templates (*mercurial?templates)... (glob)
6 checking commit editor...
7 checking username...
8 no problems detected
9 9
10 10 hg debuginstall with no username
11 11 $ HGUSER= hg debuginstall
12 Checking encoding (ascii)...
13 Checking installed modules (*mercurial)... (glob)
14 Checking templates (*mercurial?templates)... (glob)
15 Checking commit editor...
16 Checking username...
12 checking encoding (ascii)...
13 checking installed modules (*mercurial)... (glob)
14 checking templates (*mercurial?templates)... (glob)
15 checking commit editor...
16 checking username...
17 17 no username supplied (see "hg help config")
18 18 (specify a username in your configuration file)
19 19 1 problems detected, please check your install!
General Comments 0
You need to be logged in to leave comments. Login now