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