Show More
@@ -343,10 +343,13 b' class ScmModel(BaseModel):' | |||||
343 |
|
343 | |||
344 | repo = dbrepo.scm_instance |
|
344 | repo = dbrepo.scm_instance | |
345 | try: |
|
345 | try: | |
346 |
extras = { |
|
346 | extras = { | |
347 |
|
|
347 | 'ip': '', | |
348 |
|
|
348 | 'username': username, | |
349 | 'repository': repo_name} |
|
349 | 'action': 'push_remote', | |
|
350 | 'repository': repo_name, | |||
|
351 | 'scm': repo.alias, | |||
|
352 | } | |||
350 |
|
353 | |||
351 | #inject ui extra param to log this action via push logger |
|
354 | #inject ui extra param to log this action via push logger | |
352 | for k, v in extras.items(): |
|
355 | for k, v in extras.items(): | |
@@ -362,9 +365,11 b' class ScmModel(BaseModel):' | |||||
362 | content, f_path): |
|
365 | content, f_path): | |
363 |
|
366 | |||
364 | if repo.alias == 'hg': |
|
367 | if repo.alias == 'hg': | |
365 |
from rhodecode.lib.vcs.backends.hg import |
|
368 | from rhodecode.lib.vcs.backends.hg import \ | |
|
369 | MercurialInMemoryChangeset as IMC | |||
366 | elif repo.alias == 'git': |
|
370 | elif repo.alias == 'git': | |
367 |
from rhodecode.lib.vcs.backends.git import |
|
371 | from rhodecode.lib.vcs.backends.git import \ | |
|
372 | GitInMemoryChangeset as IMC | |||
368 |
|
373 | |||
369 | # decoding here will force that we have proper encoded values |
|
374 | # decoding here will force that we have proper encoded values | |
370 | # in any other case this will throw exceptions and deny commit |
|
375 | # in any other case this will throw exceptions and deny commit |
General Comments 0
You need to be logged in to leave comments.
Login now