Mercurial > kallithea
comparison rhodecode/lib/hooks.py @ 3549:e4a4006faceb beta
no_cache version of scm is now a function
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Tue, 19 Mar 2013 23:43:40 +0100 |
parents | 7174ee850baa |
children | 238486bb71ab |
comparison
equal
deleted
inserted
replaced
3548:b44bb596ddb2 | 3549:e4a4006faceb |
---|---|
417 baseui.setconfig('rhodecode_extras', k, v) | 417 baseui.setconfig('rhodecode_extras', k, v) |
418 if hook_type == 'pre': | 418 if hook_type == 'pre': |
419 repo = repo.scm_instance | 419 repo = repo.scm_instance |
420 else: | 420 else: |
421 #post push shouldn't use the cached instance never | 421 #post push shouldn't use the cached instance never |
422 repo = repo.scm_instance_no_cache | 422 repo = repo.scm_instance_no_cache() |
423 | 423 |
424 repo.ui = baseui | 424 repo.ui = baseui |
425 | 425 |
426 if hook_type == 'pre': | 426 if hook_type == 'pre': |
427 pre_push(baseui, repo) | 427 pre_push(baseui, repo) |