# HG changeset patch # User Paul Crowley # Date 1258124335 0 # Node ID 0122df83ebd007ee03191669867f7c7471509f0f # Parent 584df0f2e5c7bf9ba434accfe7e5993ee2b98b55 fix configExists test diff -r 584df0f2e5c7 -r 0122df83ebd0 src/mercurialserver/config.py --- 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")