##// END OF EJS Templates
merge with stable
Matt Mackall -
r17393:99a2a4ae merge default
parent child Browse files
Show More
@@ -15,7 +15,7 b''
15 <File Name="mercurial.osutil.pyd" />
15 <File Name="mercurial.osutil.pyd" />
16 <File Name="mercurial.parsers.pyd" />
16 <File Name="mercurial.parsers.pyd" />
17 <File Name="pyexpat.pyd" />
17 <File Name="pyexpat.pyd" />
18 <File Name="python26.dll" />
18 <File Name="python27.dll" />
19 <File Name="bz2.pyd" />
19 <File Name="bz2.pyd" />
20 <File Name="select.pyd" />
20 <File Name="select.pyd" />
21 <File Name="unicodedata.pyd" />
21 <File Name="unicodedata.pyd" />
@@ -276,9 +276,9 b' class commandline(object):'
276 pass
276 pass
277 cmdline = [util.shellquote(arg) for arg in cmdline]
277 cmdline = [util.shellquote(arg) for arg in cmdline]
278 if not self.ui.debugflag:
278 if not self.ui.debugflag:
279 cmdline += ['2>', util.nulldev]
279 cmdline += ['2>', os.devnull]
280 if closestdin:
280 if closestdin:
281 cmdline += ['<', util.nulldev]
281 cmdline += ['<', os.devnull]
282 cmdline = ' '.join(cmdline)
282 cmdline = ' '.join(cmdline)
283 return cmdline
283 return cmdline
284
284
@@ -184,7 +184,7 b' class gnuarch_source(converter_source, c'
184 cmdline = [self.execmd, cmd]
184 cmdline = [self.execmd, cmd]
185 cmdline += args
185 cmdline += args
186 cmdline = [util.shellquote(arg) for arg in cmdline]
186 cmdline = [util.shellquote(arg) for arg in cmdline]
187 cmdline += ['>', util.nulldev, '2>', util.nulldev]
187 cmdline += ['>', os.devnull, '2>', os.devnull]
188 cmdline = util.quotecommand(' '.join(cmdline))
188 cmdline = util.quotecommand(' '.join(cmdline))
189 self.ui.debug(cmdline, '\n')
189 self.ui.debug(cmdline, '\n')
190 return os.system(cmdline)
190 return os.system(cmdline)
@@ -515,7 +515,7 b' def service(opts, parentfn=None, initfn='
515 sys.stdout.flush()
515 sys.stdout.flush()
516 sys.stderr.flush()
516 sys.stderr.flush()
517
517
518 nullfd = os.open(util.nulldev, os.O_RDWR)
518 nullfd = os.open(os.devnull, os.O_RDWR)
519 logfilefd = nullfd
519 logfilefd = nullfd
520 if logfile:
520 if logfile:
521 logfilefd = os.open(logfile, os.O_RDWR | os.O_CREAT | os.O_APPEND)
521 logfilefd = os.open(logfile, os.O_RDWR | os.O_CREAT | os.O_APPEND)
@@ -1998,6 +1998,10 b' def debuginstall(ui):'
1998 ui.write(_(" (check that your locale is properly set)\n"))
1998 ui.write(_(" (check that your locale is properly set)\n"))
1999 problems += 1
1999 problems += 1
2000
2000
2001 # Python lib
2002 ui.status(_("checking Python lib (%s)...\n")
2003 % os.path.dirname(os.__file__))
2004
2001 # compiled modules
2005 # compiled modules
2002 ui.status(_("checking installed modules (%s)...\n")
2006 ui.status(_("checking installed modules (%s)...\n")
2003 % os.path.dirname(__file__))
2007 % os.path.dirname(__file__))
@@ -10,7 +10,6 b' import encoding'
10 import os, sys, errno, stat, getpass, pwd, grp, tempfile, unicodedata
10 import os, sys, errno, stat, getpass, pwd, grp, tempfile, unicodedata
11
11
12 posixfile = open
12 posixfile = open
13 nulldev = '/dev/null'
14 normpath = os.path.normpath
13 normpath = os.path.normpath
15 samestat = os.path.samestat
14 samestat = os.path.samestat
16 oslink = os.link
15 oslink = os.link
@@ -45,7 +45,6 b' makedir = platform.makedir'
45 nlinks = platform.nlinks
45 nlinks = platform.nlinks
46 normpath = platform.normpath
46 normpath = platform.normpath
47 normcase = platform.normcase
47 normcase = platform.normcase
48 nulldev = platform.nulldev
49 openhardlinks = platform.openhardlinks
48 openhardlinks = platform.openhardlinks
50 oslink = platform.oslink
49 oslink = platform.oslink
51 parsepatchoutput = platform.parsepatchoutput
50 parsepatchoutput = platform.parsepatchoutput
@@ -24,7 +24,6 b' termwidth = win32.termwidth'
24 testpid = win32.testpid
24 testpid = win32.testpid
25 unlink = win32.unlink
25 unlink = win32.unlink
26
26
27 nulldev = 'NUL:'
28 umask = 0022
27 umask = 0022
29
28
30 # wrap osutil.posixfile to provide friendlier exceptions
29 # wrap osutil.posixfile to provide friendlier exceptions
@@ -174,7 +173,7 b" def popen(command, mode='r'):"
174 # Work around "popen spawned process may not write to stdout
173 # Work around "popen spawned process may not write to stdout
175 # under windows"
174 # under windows"
176 # http://bugs.python.org/issue1366
175 # http://bugs.python.org/issue1366
177 command += " 2> %s" % nulldev
176 command += " 2> %s" % os.devnull
178 return os.popen(quotecommand(command), mode)
177 return os.popen(quotecommand(command), mode)
179
178
180 def explainexit(code):
179 def explainexit(code):
@@ -1,6 +1,7 b''
1 hg debuginstall
1 hg debuginstall
2 $ hg debuginstall
2 $ hg debuginstall
3 checking encoding (ascii)...
3 checking encoding (ascii)...
4 checking Python lib (*lib*)... (glob)
4 checking installed modules (*mercurial)... (glob)
5 checking installed modules (*mercurial)... (glob)
5 checking templates (*mercurial?templates)... (glob)
6 checking templates (*mercurial?templates)... (glob)
6 checking commit editor...
7 checking commit editor...
@@ -10,6 +11,7 b' hg debuginstall'
10 hg debuginstall with no username
11 hg debuginstall with no username
11 $ HGUSER= hg debuginstall
12 $ HGUSER= hg debuginstall
12 checking encoding (ascii)...
13 checking encoding (ascii)...
14 checking Python lib (*lib*)... (glob)
13 checking installed modules (*mercurial)... (glob)
15 checking installed modules (*mercurial)... (glob)
14 checking templates (*mercurial?templates)... (glob)
16 checking templates (*mercurial?templates)... (glob)
15 checking commit editor...
17 checking commit editor...
General Comments 0
You need to be logged in to leave comments. Login now