def pull(self, repo): if not util.checkRemote(repo): error = "{0} has a different remote on disk than in config".format(repo['local']) terminal.error("\n" + error) dolly.Dolly.warnings.append(error) if util.isGitRepo(repo): self.pullGit(repo) else: self.pullSvn(repo)
def status(self, repo): if not os.path.exists(repo['local']): dolly.Dolly.not_cloned.append(repo) return if not util.checkRemote(repo): error = "{0} has a different remote on disk than in config".format(repo['local']) terminal.error("\n" + error) dolly.Dolly.warnings.append(error) if util.isGitRepo(repo): self.statusGit(repo) else: self.statusSvn(repo)
def status(self, repo): if not os.path.exists(repo['local']): dolly.Dolly.not_cloned.append(repo) return if not util.checkRemote(repo): error = "{0} has a different remote on disk than in config".format( repo['local']) terminal.error("\n" + error) dolly.Dolly.warnings.append(error) if util.isGitRepo(repo): self.statusGit(repo) else: self.statusSvn(repo)
def clone(self, repo): if util.isGitRepo(repo): self.cloneGit(repo) else: self.cloneSvn(repo)
def create(repo): if util.isGitRepo(repo): return GitRepository(repo) else: return SVNRepository(repo)