Mercurial > kallithea
view rhodecode/lib/vcs/__init__.py @ 3574:000653f7cdf9 beta
avoid displaying repr of internal classes in user facing messages
The context of the message will tell where the problem was and there is no reason to show
... does not exist for this repository <MercurialRepository at /home/marcink/repos/rhodecode>
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Thu, 21 Mar 2013 11:17:01 +0100 |
parents | 03a770980b55 |
children | d7488551578e |
line wrap: on
line source
# -*- 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, 3, 0, 'dev') __version__ = '.'.join((str(each) for each in VERSION[:4])) __all__ = [ 'get_version', 'get_repo', 'get_backend', 'VCSError', 'RepositoryError', 'ChangesetError'] import sys from rhodecode.lib.vcs.backends import get_repo, get_backend from rhodecode.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 rhodecode.lib.vcs.cli import ExecutionManager manager = ExecutionManager(argv) manager.execute() return 0 if __name__ == '__main__': sys.exit(main(sys.argv))