Mercurial > public > src > rhodecode
changeset 2308:954d8952ff2a beta
fixed mising scm key for remote-pulls execution
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Thu, 26 Apr 2012 21:22:13 +0200 |
parents | 17ff5693566b |
children | 19a6c23af14b |
files | rhodecode/model/scm.py |
diffstat | 1 files changed, 11 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/model/scm.py Mon Apr 23 18:32:30 2012 +0200 +++ b/rhodecode/model/scm.py Thu Apr 26 21:22:13 2012 +0200 @@ -343,10 +343,13 @@ repo = dbrepo.scm_instance try: - extras = {'ip': '', - 'username': username, - 'action': 'push_remote', - 'repository': repo_name} + extras = { + 'ip': '', + 'username': username, + 'action': 'push_remote', + 'repository': repo_name, + 'scm': repo.alias, + } #inject ui extra param to log this action via push logger for k, v in extras.items(): @@ -362,9 +365,11 @@ content, f_path): if repo.alias == 'hg': - from rhodecode.lib.vcs.backends.hg import MercurialInMemoryChangeset as IMC + from rhodecode.lib.vcs.backends.hg import \ + MercurialInMemoryChangeset as IMC elif repo.alias == 'git': - from rhodecode.lib.vcs.backends.git import GitInMemoryChangeset as IMC + from rhodecode.lib.vcs.backends.git import \ + GitInMemoryChangeset as IMC # decoding here will force that we have proper encoded values # in any other case this will throw exceptions and deny commit