##// END OF EJS Templates
First step in two-part process to rename directories to kallithea....
First step in two-part process to rename directories to kallithea. This first step is to change all references in the files where they refer to the old directory name.

File last commit:

r4186:7e5f8c12 kallithea-2.2.5-r...
r4186:7e5f8c12 kallithea-2.2.5-r...
Show More
__init__.py
43 lines | 996 B | text/x-python | PythonLexer
# -*- coding: utf-8 -*-
"""
vcs
~~~
Various version Control System (vcs) management abstraction layer for
Python.
:created_on: Apr 8, 2010
:copyright: (c) 2010-2011 by Marcin Kuzminski, Lukasz Balcerzak.
"""
VERSION = (0, 5, 0, 'dev')
__version__ = '.'.join((str(each) for each in VERSION[:4]))
__all__ = [
'get_version', 'get_repo', 'get_backend',
'VCSError', 'RepositoryError', 'ChangesetError'
]
import sys
from kallithea.lib.vcs.backends import get_repo, get_backend
from kallithea.lib.vcs.exceptions import VCSError, RepositoryError, ChangesetError
def get_version():
"""
Returns shorter version (digit parts only) as string.
"""
return '.'.join((str(each) for each in VERSION[:3]))
def main(argv=None):
if argv is None:
argv = sys.argv
from kallithea.lib.vcs.cli import ExecutionManager
manager = ExecutionManager(argv)
manager.execute()
return 0
if __name__ == '__main__':
sys.exit(main(sys.argv))