# HG changeset patch # User Marcin Kuzminski # Date 2010-04-28 20:09:33 # Node ID 345811faa8a07d36b85345139e303dc4bda6ae12 # Parent 8c038e588a4282dc72fe5a6f315a3403a69180fd Changed simplehg middleware repo name function diff --git a/pylons_app/lib/simplehg.py b/pylons_app/lib/simplehg.py --- a/pylons_app/lib/simplehg.py +++ b/pylons_app/lib/simplehg.py @@ -12,7 +12,8 @@ class SimpleHg(object): if not is_mercurial(environ): return self.application(environ, start_response) else: - repo_name = environ['PATH_INFO'].replace('/', '') + #repo_name = environ['PATH_INFO'].replace('/', '') + repo_name = environ['PATH_INFO'].split('/')[1] if not environ['PATH_INFO'].endswith == '/': environ['PATH_INFO'] += '/' #environ['SCRIPT_NAME'] = request.path