mercurial/version.py
changeset 461 9ae0034f2772
parent 429 688d03d6997a
child 464 50da4bb9cab6
--- a/mercurial/version.py	Fri Jun 24 22:51:39 2005 -0800
+++ b/mercurial/version.py	Fri Jun 24 22:58:14 2005 -0800
@@ -13,6 +13,7 @@
 import os.path
 import re
 import time
+import util
 
 unknown_version = 'unknown'
 remembered_version = False
@@ -37,7 +38,7 @@
     """Store version information."""
     global remembered_version
     if not version and os.path.isdir(".hg"):
-        f = os.popen("hg identify 2>/dev/null")  # use real hg installation
+        f = os.popen("hg identify 2> %s" % util.nulldev)  # use real hg installation
         ident = f.read()[:-1]
         if not f.close() and ident:
             ids = ident.split(' ', 1)