comparison rhodecode/lib/hooks.py @ 3589:35454cd8233b beta

kill depracated .ui objects on git repos
author Marcin Kuzminski <marcin@python-works.com>
date Mon, 25 Mar 2013 22:17:17 +0100
parents 238486bb71ab
children 47631be9f449
comparison
equal deleted inserted replaced
3588:6750e8b5d234 3589:35454cd8233b
345 repo = repo.scm_instance 345 repo = repo.scm_instance
346 else: 346 else:
347 #post push shouldn't use the cached instance never 347 #post push shouldn't use the cached instance never
348 repo = repo.scm_instance_no_cache() 348 repo = repo.scm_instance_no_cache()
349 349
350 repo.ui = baseui
351
352 if hook_type == 'pre': 350 if hook_type == 'pre':
353 pre_push(baseui, repo) 351 pre_push(baseui, repo)
354 352
355 # if push hook is enabled via web interface 353 # if push hook is enabled via web interface
356 elif hook_type == 'post' and _hooks.get(RhodeCodeUi.HOOK_PUSH): 354 elif hook_type == 'post' and _hooks.get(RhodeCodeUi.HOOK_PUSH):