##// END OF EJS Templates
pull request: don't show fake path with owner names - and owner avatars is also not relevant
pull request: don't show fake path with owner names - and owner avatars is also not relevant

File last commit:

r2969:5085e51f beta
r3330:dcd1c159 beta
Show More
__init__.py
118 lines | 3.7 KiB | text/x-python | PythonLexer
added initial rc-extension module...
r2105 # Additional mappings that are not present in the pygments lexers
# used for building stats
updated header instructions for rcextensions
r2403 # format is {'ext':['Names']} eg. {'py':['Python']} note: there can be
# more than one name for extension
added initial rc-extension module...
r2105 # NOTE: that this will overide any mappings in LANGUAGES_EXTENSIONS_MAP
# build by pygments
EXTRA_MAPPINGS = {}
#==============================================================================
# WHOOSH INDEX EXTENSIONS
#==============================================================================
# if INDEX_EXTENSIONS is [] it'll use pygments lexers extensions by default.
# To set your own just add to this list extensions to index with content
INDEX_EXTENSIONS = []
# additional extensions for indexing besides the default from pygments
# those get's added to INDEX_EXTENSIONS
EXTRA_INDEX_EXTENSIONS = []
#==============================================================================
# POST CREATE REPOSITORY HOOK
#==============================================================================
# this function will be executed after each repository is created
def _crhook(*args, **kwargs):
"""
Post create repository HOOK
kwargs available:
:param repo_name:
:param repo_type:
:param description:
:param private:
:param created_on:
:param enable_downloads:
:param repo_id:
:param user_id:
:param enable_statistics:
:param clone_uri:
:param fork_id:
:param group_id:
:param created_by:
"""
return 0
CREATE_REPO_HOOK = _crhook
#==============================================================================
#595 add rcextension hook for repository delete
r2904 # POST DELETE REPOSITORY HOOK
#==============================================================================
# this function will be executed after each repository deletion
def _dlhook(*args, **kwargs):
"""
Post create repository HOOK
kwargs available:
:param repo_name:
:param repo_type:
:param description:
:param private:
:param created_on:
:param enable_downloads:
:param repo_id:
:param user_id:
:param enable_statistics:
:param clone_uri:
:param fork_id:
:param group_id:
:param deleted_by:
:param deleted_on:
"""
return 0
DELETE_REPO_HOOK = _dlhook
#==============================================================================
added initial rc-extension module...
r2105 # POST PUSH HOOK
#==============================================================================
Implemented #628: Pass server URL to rc-extensions hooks...
r2969 # this function will be executed after each push it's executed after the
# build-in hook that RhodeCode uses for logging pushes
added initial rc-extension module...
r2105 def _pushhook(*args, **kwargs):
"""
Post push hook
kwargs available:
Implemented #628: Pass server URL to rc-extensions hooks...
r2969 :param server_url: url of instance that triggered this hook
:param config: path to .ini config used
:param scm: type of VS 'git' or 'hg'
added initial rc-extension module...
r2105 :param username: name of user who pushed
:param ip: ip of who pushed
Implemented #628: Pass server URL to rc-extensions hooks...
r2969 :param action: push
added initial rc-extension module...
r2105 :param repository: repository name
Implemented #628: Pass server URL to rc-extensions hooks...
r2969 :param pushed_revs: list of pushed revisions
added initial rc-extension module...
r2105 """
return 0
PUSH_HOOK = _pushhook
#==============================================================================
# POST PULL HOOK
#==============================================================================
Implemented #628: Pass server URL to rc-extensions hooks...
r2969 # this function will be executed after each push it's executed after the
# build-in hook that RhodeCode uses for logging pulls
added initial rc-extension module...
r2105 def _pullhook(*args, **kwargs):
"""
Post pull hook
kwargs available::
Implemented #628: Pass server URL to rc-extensions hooks...
r2969 :param server_url: url of instance that triggered this hook
:param config: path to .ini config used
:param scm: type of VS 'git' or 'hg'
added initial rc-extension module...
r2105 :param username: name of user who pulled
Implemented #628: Pass server URL to rc-extensions hooks...
r2969 :param ip: ip of who pulled
added initial rc-extension module...
r2105 :param action: pull
:param repository: repository name
"""
return 0
PULL_HOOK = _pullhook