--- a/mercurial/util.py Sat Feb 16 11:55:33 2008 +0100
+++ b/mercurial/util.py Wed Feb 13 23:09:28 2008 +0100
@@ -901,6 +901,9 @@
'''Are we running in a GUI?'''
return os.name == "nt" or os.name == "mac" or os.environ.get("DISPLAY")
+def lookup_reg(key, name=None, scope=None):
+ return None
+
# Platform specific variants
if os.name == 'nt':
import msvcrt
@@ -1092,9 +1095,6 @@
else:
nulldev = '/dev/null'
- def lookup_reg(key, name=None, scope=None):
- return None
-
def rcfiles(path):
rcs = [os.path.join(path, 'hgrc')]
rcdir = os.path.join(path, 'hgrc.d')