Show More
@@ -45,6 +45,7 b' from rhodecode.lib.middleware.utils impo' | |||
|
45 | 45 | from rhodecode.lib.utils import ( |
|
46 | 46 | is_valid_repo, get_rhodecode_realm, get_rhodecode_base_path) |
|
47 | 47 | from rhodecode.lib.utils2 import safe_str, fix_PATH, str2bool |
|
48 | from rhodecode.lib.vcs.conf import settings as vcs_settings | |
|
48 | 49 | from rhodecode.model import meta |
|
49 | 50 | from rhodecode.model.db import User, Repository |
|
50 | 51 | from rhodecode.model.scm import ScmModel |
@@ -429,8 +430,8 b' class SimpleVCS(object):' | |||
|
429 | 430 | |
|
430 | 431 | def _prepare_callback_daemon(self, extras): |
|
431 | 432 | return prepare_callback_daemon( |
|
432 | extras, protocol=self.config.get('vcs.hooks.protocol'), | |
|
433 | use_direct_calls=self.config.get('vcs.hooks.direct_calls')) | |
|
433 | extras, protocol=vcs_settings.HOOKS_PROTOCOL, | |
|
434 | use_direct_calls=vcs_settings.HOOKS_DIRECT_CALLS) | |
|
434 | 435 | |
|
435 | 436 | |
|
436 | 437 | def _should_check_locking(query_string): |
@@ -49,6 +49,9 b' ARCHIVE_SPECS = {' | |||
|
49 | 49 | 'zip': ('application/zip', '.zip'), |
|
50 | 50 | } |
|
51 | 51 | |
|
52 | HOOKS_PROTOCOL = None | |
|
53 | HOOKS_DIRECT_CALLS = False | |
|
54 | ||
|
52 | 55 | PYRO_PORT = 9900 |
|
53 | 56 | |
|
54 | 57 | PYRO_GIT = 'git_remote' |
@@ -31,7 +31,6 b' import datetime' | |||
|
31 | 31 | from pylons.i18n.translation import _ |
|
32 | 32 | from pylons.i18n.translation import lazy_ugettext |
|
33 | 33 | |
|
34 | import rhodecode | |
|
35 | 34 | from rhodecode.lib import helpers as h, hooks_utils, diffs |
|
36 | 35 | from rhodecode.lib.compat import OrderedDict |
|
37 | 36 | from rhodecode.lib.hooks_daemon import prepare_callback_daemon |
@@ -41,13 +40,14 b' from rhodecode.lib.utils import action_l' | |||
|
41 | 40 | from rhodecode.lib.utils2 import safe_unicode, safe_str, md5_safe |
|
42 | 41 | from rhodecode.lib.vcs.backends.base import ( |
|
43 | 42 | Reference, MergeResponse, MergeFailureReason) |
|
43 | from rhodecode.lib.vcs.conf import settings as vcs_settings | |
|
44 | 44 | from rhodecode.lib.vcs.exceptions import ( |
|
45 | 45 | CommitDoesNotExistError, EmptyRepositoryError) |
|
46 | 46 | from rhodecode.model import BaseModel |
|
47 | 47 | from rhodecode.model.changeset_status import ChangesetStatusModel |
|
48 | 48 | from rhodecode.model.comment import ChangesetCommentsModel |
|
49 | 49 | from rhodecode.model.db import ( |
|
50 |
PullRequest, PullRequestReviewers, |
|
|
50 | PullRequest, PullRequestReviewers, ChangesetStatus, | |
|
51 | 51 | PullRequestVersion, ChangesetComment) |
|
52 | 52 | from rhodecode.model.meta import Session |
|
53 | 53 | from rhodecode.model.notification import NotificationModel, \ |
@@ -423,12 +423,11 b' class PullRequestModel(BaseModel):' | |||
|
423 | 423 | } |
|
424 | 424 | |
|
425 | 425 | workspace_id = self._workspace_id(pull_request) |
|
426 | protocol = rhodecode.CONFIG.get('vcs.hooks.protocol') | |
|
427 | use_direct_calls = rhodecode.CONFIG.get('vcs.hooks.direct_calls') | |
|
428 | 426 | use_rebase = self._use_rebase_for_merging(pull_request) |
|
429 | 427 | |
|
430 | 428 | callback_daemon, extras = prepare_callback_daemon( |
|
431 | extras, protocol=protocol, use_direct_calls=use_direct_calls) | |
|
429 | extras, protocol=vcs_settings.HOOKS_PROTOCOL, | |
|
430 | use_direct_calls=vcs_settings.HOOKS_DIRECT_CALLS) | |
|
432 | 431 | |
|
433 | 432 | with callback_daemon: |
|
434 | 433 | # TODO: johbo: Implement a clean way to run a config_override |
General Comments 0
You need to be logged in to leave comments.
Login now