예제 #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
파일: v_update.py 프로젝트: mikey179/dolly
	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
파일: v_status.py 프로젝트: mikey179/dolly
 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)