Example #1
0
	def is_tracked(self, file_path):
		args = ["svn", "info", self.full_path(file_path)]
		return not bool(exec_silent(args))
Example #2
0
	def remove(self, path):
		exec_silent(["svn", "remove", self.full_path(path)])
Example #3
0
	def update_all(self):
		exec_silent(["svn", "update", self.root_path])
Example #4
0
	def branch(self, src_dir, target_dir):
		exec_silent(["svn", "copy", self.full_path(src_dir), \
			self.full_path(target_dir)])
Example #5
0
	def commit(self, msg):
		exec_silent(["svn", "commit", "-m", msg])
Example #6
0
	def mkdir(self, relative_dir_path):
		full_path = self.full_path(relative_dir_path)
		exec_silent(["svn", "mkdir", full_path])
Example #7
0
	def __assert_svn_repo(self, path):
		retval = exec_silent(["svn", "info"])
		if retval != 0:
			raise Exception("'" + path \
				+ "' is not valid svn repository.")