Пример #1
0
	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)
Пример #2
0
	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)
Пример #3
0
	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)
Пример #4
0
 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)
Пример #5
0
	def clone(self, repo):
		if util.isGitRepo(repo):
			self.cloneGit(repo)
		else:
			self.cloneSvn(repo)
Пример #6
0
def create(repo):
	if util.isGitRepo(repo):
		return GitRepository(repo)
	else:
		return SVNRepository(repo)
Пример #7
0
	def clone(self, repo):
		if util.isGitRepo(repo):
			self.cloneGit(repo)
		else:
			self.cloneSvn(repo)