--- a/src/mercurialserver/config.py Fri Nov 13 14:42:46 2009 +0000
+++ b/src/mercurialserver/config.py Fri Nov 13 14:58:55 2009 +0000
@@ -13,13 +13,6 @@
globalconfig.read(os.path.expanduser("~/.mercurial-server"))
return globalconfig
-def configExists():
- try:
- _getConf()
- return True
- except:
- return False
-
def _getPath(name):
return os.path.expanduser(_getConf().get("paths", name))
@@ -30,6 +23,13 @@
def getReposPath(): return _getPath("repos")
def getAuthorizedKeysPath(): return _getPath("authorized_keys")
+def configExists():
+ try:
+ _getAuthorizedKeysPath()
+ return True
+ except:
+ return False
+
def getKeysPaths(): return _getPaths("keys")
def getAccessPaths(): return _getPaths("access")