Mercurial > kallithea
diff rhodecode/model/scm.py @ 3577:238486bb71ab beta
Switched handling of RhodeCode extra params in consistent way
- use only os.environ for both hg and git
- hacking ui objects was bad
- os.environ allows easier to call rhodecode hooks externally
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sun, 24 Mar 2013 03:07:04 +0100 |
parents | c9214877d43e |
children | 7b9d4f6bb04e |
line wrap: on
line diff
--- a/rhodecode/model/scm.py Thu Mar 21 11:26:58 2013 +0100 +++ b/rhodecode/model/scm.py Sun Mar 24 03:07:04 2013 +0100 @@ -44,7 +44,8 @@ from rhodecode import BACKENDS from rhodecode.lib import helpers as h -from rhodecode.lib.utils2 import safe_str, safe_unicode, get_server_url +from rhodecode.lib.utils2 import safe_str, safe_unicode, get_server_url,\ + _set_extras from rhodecode.lib.auth import HasRepoPermissionAny, HasReposGroupPermissionAny from rhodecode.lib.utils import get_filesystem_repos, make_ui, \ action_logger, REMOVED_REPO_PAT @@ -437,7 +438,7 @@ 'locked_by': [None, None] } _scm_repo = repo._repo - repo.inject_ui(**extras) + _set_extras(extras) if repo.alias == 'hg': log_push_action(_scm_repo.ui, _scm_repo, node=revisions[0]) elif repo.alias == 'git':