# HG changeset patch # User Marcin Kuzminski # Date 2016-08-09 22:49:05 # Node ID 064401feb9d37641860cd92e70bc7ab739e34e46 # Parent dce4efbaeb830e2614482588c9b5553237424d4e scm-app: allow to set documented pyro4 as scm_app_implementation. The documented ini setting allows to set pyro4 as scm_app, while the backend code crashes on import of pyro4 module. This change allows to configure the app based on the .ini docs. if we pass pyro4 as backedn, we simply skip import and use the default pyro4 scm_app diff --git a/rhodecode/lib/middleware/simplevcs.py b/rhodecode/lib/middleware/simplevcs.py --- a/rhodecode/lib/middleware/simplevcs.py +++ b/rhodecode/lib/middleware/simplevcs.py @@ -99,7 +99,7 @@ class SimpleVCS(object): @property def scm_app(self): custom_implementation = self.config.get('vcs.scm_app_implementation') - if custom_implementation: + if custom_implementation and custom_implementation != 'pyro4': log.info( "Using custom implementation of scm_app: %s", custom_implementation)