##// END OF EJS Templates
fixes issue #860....
fixes issue #860. IMC web commits poisoned caches when they failed. We now always invalidate caches so objects are refreshed and will be accessible.

File last commit:

r3797:d7488551 beta
r4070:008e460c default
Show More
settings.py
37 lines | 1.0 KiB | text/x-python | PythonLexer
Added VCS into rhodecode core for faster and easier deployments of new versions
r2007 import os
import tempfile
synced vcs with upstream...
r3797 from rhodecode.lib.vcs.utils import aslist
Added VCS into rhodecode core for faster and easier deployments of new versions
r2007 from rhodecode.lib.vcs.utils.paths import get_user_home
abspath = lambda * p: os.path.abspath(os.path.join(*p))
VCSRC_PATH = os.environ.get('VCSRC_PATH')
if not VCSRC_PATH:
HOME_ = get_user_home()
if not HOME_:
HOME_ = tempfile.gettempdir()
VCSRC_PATH = VCSRC_PATH or abspath(HOME_, '.vcsrc')
if os.path.isdir(VCSRC_PATH):
VCSRC_PATH = os.path.join(VCSRC_PATH, '__init__.py')
synced vcs with upstream...
r3797 # list of default encoding used in safe_unicode/safe_str methods
DEFAULT_ENCODINGS = aslist('utf8')
# path to git executable runned by run_git_command function
GIT_EXECUTABLE_PATH = 'git'
# can be also --branches --tags
GIT_REV_FILTER = '--all'
Added VCS into rhodecode core for faster and easier deployments of new versions
r2007 BACKENDS = {
synced vcs with upstream...
r3797 'hg': 'rhodecode.lib.vcs.backends.hg.MercurialRepository',
'git': 'rhodecode.lib.vcs.backends.git.GitRepository',
Added VCS into rhodecode core for faster and easier deployments of new versions
r2007 }
ARCHIVE_SPECS = {
'tar': ('application/x-tar', '.tar'),
'tbz2': ('application/x-bzip2', '.tar.bz2'),
'tgz': ('application/x-gzip', '.tar.gz'),
'zip': ('application/zip', '.zip'),
}