Changeset - 4897dffd46b6
[Not reviewed]
default
0 1 0
domruf - 9 years ago 2017-05-09 22:16:23
dominikruf@gmail.com
vcs: remove main entry point - the code that doesn't work anyway

Import error found by pylint.
1 file changed with 0 insertions and 12 deletions:
0 comments (0 inline, 0 general)
kallithea/lib/vcs/__init__.py
Show inline comments
 
@@ -8,36 +8,24 @@
 

	
 
    :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))
0 comments (0 inline, 0 general)