def __init__(self, repository): self.repopath = repository.path if self.repopath[-1] == '/': self.repopath = self.repopath[:-1] SCMTool.__init__(self, repository)
def __init__(self, repository): self.repopath = repository.path SCMTool.__init__(self, repository) self.client = ClearCaseClient(self.repopath) self.uses_atomic_revisions = False
def __init__(self, repository): SCMTool.__init__(self, repository) self.client = self._create_client( str(repository.mirror_path or repository.path), str(repository.username), str(repository.password), str(repository.encoding))
def __init__(self, repository): self.repopath = repository.path if self.repopath[-1] == '/': self.repopath = self.repopath[:-1] SCMTool.__init__(self, repository) import pysvn self.client = pysvn.Client() if repository.username: self.client.set_default_username(str(repository.username)) if repository.password: self.client.set_default_password(str(repository.password)) self.uses_atomic_revisions = True # svnlook uses 'rev 0', while svn diff uses 'revision 0' self.revision_re = re.compile(""" ^(\(([^\)]+)\)\s)? # creating diffs between two branches # of a remote repository will insert # extra "relocation information" into # the diff. (?:\d+-\d+-\d+\ + # svnlook-style diffs contain a \d+:\d+:\d+\ + # timestamp on each line before the [A-Z]+\ +)? # revision number. This here is # probably a really crappy way to # express that, but oh well. \ *\([Rr]ev(?:ision)?\ (\d+)\)$ # svnlook uses 'rev 0' while svn diff # uses 'revision 0' """, re.VERBOSE)
def __init__(self, repository): self.repopath = repository.path if self.repopath[-1] == '/': self.repopath = self.repopath[:-1] SCMTool.__init__(self, repository) import pysvn self.client = pysvn.Client() if repository.username: self.client.set_default_username(str(repository.username)) if repository.password: self.client.set_default_password(str(repository.password)) # svnlook uses 'rev 0', while svn diff uses 'revision 0' self.revision_re = re.compile(""" ^(\(([^\)]+)\)\s)? # creating diffs between two branches # of a remote repository will insert # extra "relocation information" into # the diff. (?:\d+-\d+-\d+\ + # svnlook-style diffs contain a \d+:\d+:\d+\ + # timestamp on each line before the [A-Z]+\ +)? # revision number. This here is # probably a really crappy way to # express that, but oh well. \ *\([Rr]ev(?:ision)?\ (\d+)\)$ # svnlook uses 'rev 0' while svn diff # uses 'revision 0' """, re.VERBOSE)
def __init__(self, repository): SCMTool.__init__(self, repository) self.client = self._create_client( str(repository.mirror_path or repository.path), str(repository.username), str(repository.password))
def __init__(self, repository): SCMTool.__init__(self, repository) self.cvsroot, self.repopath = \ self.build_cvsroot(self.repository.path, self.repository.username, self.repository.password) self.client = CVSClient(self.cvsroot, self.repopath)
def __init__(self, repository): SCMTool.__init__(self, repository) self.client = self._create_client( str(repository.mirror_path or repository.path), str(repository.username), str(repository.password), str(repository.encoding), repository.extra_data.get('use_ticket_auth', False))
def __init__(self, repository): SCMTool.__init__(self, repository) self.cvsroot, self.repopath = \ self.build_cvsroot(self.repository.path, self.repository.username, self.repository.password) self.client = CVSClient(self.cvsroot, self.repopath)
def __init__(self, repository): SCMTool.__init__(self, repository) import P4 self.p4 = P4.P4() self.p4.port = str(repository.mirror_path or repository.path) self.p4.user = str(repository.username) self.p4.password = str(repository.password) self.p4.exception_level = 1
def __init__(self, repository): SCMTool.__init__(self, repository) if repository.path.startswith('http'): self.client = HgWebClient(repository.path, repository.username, repository.password) else: self.client = HgClient(repository.path, repository.local_site) self.uses_atomic_revisions = True
def __init__(self, repository): SCMTool.__init__(self, repository) if repository.path.startswith("http"): self.client = HgWebClient(repository.path, repository.username, repository.password) else: self.client = HgClient(repository.path, repository.local_site) self.uses_atomic_revisions = True self.diff_uses_changeset_ids = True
def __init__(self, repository): SCMTool.__init__(self, repository) import P4 self.p4 = P4.P4() self.p4.port = str(repository.mirror_path or repository.path) self.p4.user = str(repository.username) self.p4.password = str(repository.password) self.p4.exception_level = 1
def __init__(self, repository): SCMTool.__init__(self, repository) self.client = self._create_client( six.text_type(repository.mirror_path or repository.path), six.text_type(repository.username), six.text_type(repository.password), six.text_type(repository.encoding), repository.extra_data.get('use_ticket_auth', False))
def __init__(self, repository): SCMTool.__init__(self, repository) if repository.path.startswith('http'): self.client = HgWebClient(repository.path, repository.username, repository.password) else: self.client = HgClient(repository.path) self.uses_atomic_revisions = True self.diff_uses_changeset_ids = True
def __init__(self, repository): SCMTool.__init__(self, repository) credentials = repository.get_credentials() self.client = self._create_client( six.text_type(repository.mirror_path or repository.path), six.text_type(credentials['username']), six.text_type(credentials['password'] or ''), six.text_type(repository.encoding), repository.extra_data.get('use_ticket_auth', False))
def __init__(self, repository): SCMTool.__init__(self, repository) credentials = repository.get_credentials() self.client = self._create_client( six.text_type(repository.mirror_path or repository.path), six.text_type(credentials['username']), six.text_type(credentials['password'] or ''), six.text_type(repository.encoding), repository.extra_data.get('use_ticket_auth', False))
def __init__(self, repository): SCMTool.__init__(self, repository) if repository.path.startswith('http'): credentials = repository.get_credentials() self.client = HgWebClient(repository.path, credentials['username'], credentials['password']) else: self.client = HgClient(repository.path, repository.local_site) self.uses_atomic_revisions = True
def __init__(self, repository): self.repopath = repository.path SCMTool.__init__(self, repository) self.viewtype = self._get_view_type(self.repopath) if self.viewtype == self.VIEW_SNAPSHOT: self.client = ClearCaseSnapshotViewClient(self.repopath) elif self.viewtype == self.VIEW_DYNAMIC: self.client = ClearCaseDynamicViewClient(self.repopath) else: raise SCMError('Unsupported view type.')
def __init__(self, repository): self.repopath = repository.path SCMTool.__init__(self, repository) self.viewtype = self._get_view_type(self.repopath) if self.viewtype == self.VIEW_SNAPSHOT: self.client = ClearCaseSnapshotViewClient(self.repopath) elif self.viewtype == self.VIEW_DYNAMIC: self.client = ClearCaseDynamicViewClient(self.repopath) else: raise SCMError('Unsupported view type.')
def __init__(self, repository): SCMTool.__init__(self, repository) import P4 self.p4 = P4.P4() self.p4.port = str(repository.mirror_path or repository.path) self.p4.user = str(repository.username) self.p4.password = str(repository.password) self.p4.exception_level = 1 # We defer actually connecting until just before we do some operation # that requires an active connection to the perforce depot. This # connection is then left open as long as possible. self.uses_atomic_revisions = True
def __init__(self, repository): """Initialize the tool. Args: repository (reviewboard.scmtools.models.Repository): The associated repository object. """ self.repopath = repository.path SCMTool.__init__(self, repository) self.viewtype = self._get_view_type(self.repopath) if self.viewtype == self.VIEW_SNAPSHOT: self.client = ClearCaseSnapshotViewClient(self.repopath) elif self.viewtype == self.VIEW_DYNAMIC: self.client = ClearCaseDynamicViewClient(self.repopath) else: raise SCMError('Unsupported view type.')
def __init__(self, repository): SCMTool.__init__(self, repository) self.client = GitClient(repository.path, repository.raw_file_url)
def __init__(self, repository): SCMTool.__init__(self, repository)
def __init__(self, repository): SCMTool.__init__(self, repository) self.cvsroot, self.repopath = self.build_cvsroot() self.client = CVSClient(self.cvsroot, self.repopath)
def __init__(self, repository): SCMTool.__init__(self, repository) self.client = MonotoneClient(repository.path)
def __init__(self, repository): SCMTool.__init__(self, repository)
def __init__(self, repository): SCMTool.__init__(self, repository) self.client = GitClient(repository.path, repository.raw_file_url)
def __init__(self, repository): self.repopath = repository.path SCMTool.__init__(self, repository) self.client = ClearCaseClient(self.repopath)
def __init__(self, repository): SCMTool.__init__(self, repository) self.client = MonotoneClient(repository.path)
def __init__(self, repository): SCMTool.__init__(self, repository) self.client = GitClient(repository.path, repository.raw_file_url, repository.username, repository.password)