Skip to content
Snippets Groups Projects
Commit 1ee95f7d authored by Patrick Mezard's avatar Patrick Mezard
Browse files

util: always define a dummy lookup_reg()

parent fddeeb00
No related branches found
No related tags found
No related merge requests found
......@@ -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')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment