Mercurial > kallithea
diff rhodecode/lib/vcs/conf/settings.py @ 3797:d7488551578e beta
synced vcs with upstream
- moved subprocessio module to VCS
- many small changes to make embedded vcs as similar to to external lib
- use only absolute imports
- patch vcs config during load pylons env
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sat, 27 Apr 2013 11:24:25 +0200 |
parents | 324ac367a4da |
children | 7e5f8c12a3fc |
line wrap: on
line diff
--- a/rhodecode/lib/vcs/conf/settings.py Sat Apr 27 11:45:27 2013 +0200 +++ b/rhodecode/lib/vcs/conf/settings.py Sat Apr 27 11:24:25 2013 +0200 @@ -1,5 +1,6 @@ import os import tempfile +from rhodecode.lib.vcs.utils import aslist from rhodecode.lib.vcs.utils.paths import get_user_home abspath = lambda * p: os.path.abspath(os.path.join(*p)) @@ -15,9 +16,17 @@ if os.path.isdir(VCSRC_PATH): VCSRC_PATH = os.path.join(VCSRC_PATH, '__init__.py') +# 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' + BACKENDS = { - 'hg': 'vcs.backends.hg.MercurialRepository', - 'git': 'vcs.backends.git.GitRepository', + 'hg': 'rhodecode.lib.vcs.backends.hg.MercurialRepository', + 'git': 'rhodecode.lib.vcs.backends.git.GitRepository', } ARCHIVE_SPECS = { @@ -26,8 +35,3 @@ 'tgz': ('application/x-gzip', '.tar.gz'), 'zip': ('application/zip', '.zip'), } - -BACKENDS = { - 'hg': 'rhodecode.lib.vcs.backends.hg.MercurialRepository', - 'git': 'rhodecode.lib.vcs.backends.git.GitRepository', -}