def __init__(self, path):
     """
     :raises: VcsError if python-svn not detected
     """
     VcsClientBase.__init__(self, 'svn', path)
     # test for svn here, we need it for status
     _get_svn_version()
示例#2
0
文件: svn.py 项目: btubbs/vcstools
 def __init__(self, path):
     """
     :raises: VcsError if python-svn not detected
     """
     VcsClientBase.__init__(self, 'svn', path)
     # test for svn here, we need it for status
     _get_svn_version()
示例#3
0
    def __init__(self, path, cache=False):
        """
        :raises: VcsError if git not detected
        """
        VcsClientBase.__init__(self, 'git', path)
        self.gitversion = _get_git_version()
        self.cache = cache

        # initialize cache variables
        self.url = None
        self.version = None
        self.versions = {}
        self.fetch = False
示例#4
0
 def __init__(self, path):
     """
     @raise VcsError if tar not detected
     """
     VcsClientBase.__init__(self, 'tar', path)
     self.metadata_path = os.path.join(self._path, _METADATA_FILENAME)
示例#5
0
文件: hg.py 项目: k-okada/vcstools
 def __init__(self, path):
     """
     :raises: VcsError if hg not detected
     """
     VcsClientBase.__init__(self, 'hg', path)
     _get_hg_version()
示例#6
0
文件: git.py 项目: po1/vcstools
 def __init__(self, path):
     """
     :raises: VcsError if git not detected
     """
     VcsClientBase.__init__(self, 'git', path)
     self.gitversion = _get_git_version()
示例#7
0
 def __init__(self, path):
     """
     :raises: VcsError if bzr not detected
     """
     VcsClientBase.__init__(self, 'bzr', path)
     _get_bzr_version()
示例#8
0
 def __init__(self, path):
     """
     @raise VcsError if tar not detected
     """
     VcsClientBase.__init__(self, 'tar', path)
     self.metadata_path = os.path.join(self._path, _METADATA_FILENAME)
示例#9
0
 def __init__(self, path):
     """
     :raises: VcsError if hg not detected
     """
     VcsClientBase.__init__(self, 'hg', path)
     _get_hg_version()
示例#10
0
 def __init__(self, path):
     """
     :raises: VcsError if git not detected
     """
     VcsClientBase.__init__(self, 'git', path)
     self.gitversion = _get_git_version()
示例#11
0
文件: bzr.py 项目: btubbs/vcstools
 def __init__(self, path):
     """
     :raises: VcsError if bzr not detected
     """
     VcsClientBase.__init__(self, 'bzr', path)
     _get_bzr_version()