Mercurial > kallithea
comparison rhodecode/lib/hooks.py @ 3960:5293d4bbb1ea
Merged dev into stable/default/master branch
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Fri, 07 Jun 2013 00:31:11 +0200 |
parents | 3563bb7b4b82 3208aaefc9ca |
children | cce2d984b001 |
comparison
equal
deleted
inserted
replaced
3879:51596d9ef2f8 | 3960:5293d4bbb1ea |
---|---|
27 import time | 27 import time |
28 import binascii | 28 import binascii |
29 import traceback | 29 import traceback |
30 from inspect import isfunction | 30 from inspect import isfunction |
31 | 31 |
32 from mercurial.scmutil import revrange | 32 from rhodecode.lib.vcs.utils.hgcompat import nullrev, revrange |
33 from mercurial.node import nullrev | |
34 | |
35 from rhodecode.lib import helpers as h | 33 from rhodecode.lib import helpers as h |
36 from rhodecode.lib.utils import action_logger | 34 from rhodecode.lib.utils import action_logger |
37 from rhodecode.lib.vcs.backends.base import EmptyChangeset | 35 from rhodecode.lib.vcs.backends.base import EmptyChangeset |
38 from rhodecode.lib.compat import json | 36 from rhodecode.lib.compat import json |
39 from rhodecode.lib.exceptions import HTTPLockedRC | 37 from rhodecode.lib.exceptions import HTTPLockedRC |
304 an push action together with pushed revisions. It's executed by subprocess | 302 an push action together with pushed revisions. It's executed by subprocess |
305 thus needs all info to be able to create a on the fly pylons enviroment, | 303 thus needs all info to be able to create a on the fly pylons enviroment, |
306 connect to database and run the logging code. Hacky as sh*t but works. | 304 connect to database and run the logging code. Hacky as sh*t but works. |
307 | 305 |
308 :param repo_path: | 306 :param repo_path: |
309 :type repo_path: | |
310 :param revs: | 307 :param revs: |
311 :type revs: | |
312 :param env: | 308 :param env: |
313 :type env: | |
314 """ | 309 """ |
315 from paste.deploy import appconfig | 310 from paste.deploy import appconfig |
316 from sqlalchemy import engine_from_config | 311 from sqlalchemy import engine_from_config |
317 from rhodecode.config.environment import load_environment | 312 from rhodecode.config.environment import load_environment |
318 from rhodecode.model import init_model | 313 from rhodecode.model import init_model |