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