Mercurial > public > mercurial-scm > hg
diff mercurial/version.py @ 5481:003d1f174fe1
Fix Windows os.popen bug with interleaved stdout/stderr output
See python bug 1366 "popen spawned process may not write to stdout under windows" for more details.
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Thu, 01 Nov 2007 12:05:14 +0100 |
parents | cff3e4b4a8de |
children | 6482d34974ac |
line wrap: on
line diff
--- a/mercurial/version.py Tue Oct 30 16:54:25 2007 -0700 +++ b/mercurial/version.py Thu Nov 01 12:05:14 2007 +0100 @@ -50,7 +50,7 @@ """Store version information.""" global remembered_version if not version and os.path.isdir(".hg"): - f = os.popen("hg identify 2> %s" % util.nulldev) # use real hg installation + f = util.popen("hg identify") # use real hg installation ident = f.read()[:-1] if not f.close() and ident: ids = ident.split(' ', 1)