def __init__(self, url): Repository.__init__(self, url) self.url = url try: self._repository = Branch.open(url) except Exception, errmsg: raise VersionControlError("Error opening BzrDir: %s" % errmsg)
def __init__(self, url): Repository.__init__(self, url) self._ui = ui.ui() # get a ui object try: self._repository = hg.repository(self._ui, url) # need to add a check that this actually is a Mercurial repository except (RepoError, Exception), err: raise VersionControlError("Cannot access repository at %s: %s" % (url, err))
def __init__(self, url): Repository.__init__(self, url) self._client = pysvn.Client() # check that there is a valid Subversion repository at the URL, # without doing a checkout. try: self._client.ls(url) except pysvn._pysvn.ClientError, errmsg: raise VersionControlError(errmsg)
def __init__(self, url, upstream=None): check_version() Repository.__init__(self, url, upstream) self.__repository = None self.upstream = self.upstream or self._get_upstream()
def __init__(self, url, upstream=None): Repository.__init__(self, url, upstream) self.__repository = None self.upstream = self.upstream or self._get_upstream()
def __init__(self, url, upstream=None): Repository.__init__(self, url) self._client = pysvn.Client()
def __init__(self, url, upstream=None): Repository.__init__(self, url, upstream) self.url = url self.__repository = None
def __init__(self, url): check_version() Repository.__init__(self, url) self.checkout(url) # should remove this line - other repos don't call checkout on init