Example #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)
Example #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)
Example #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)
Example #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)