def tag(self): shell = "cd {0} && git fetch -q -a && git tag".format(self.dest) stdout = LocalShell.check_output(shell, shell=True) if stdout: return stdout.strip().split("\n") else: return []
def tag(self): shell = "cd {0} && git fetch -q -a && git tag".format(self.dest) stdout = LocalShell.check_output(shell, shell=True) if stdout: return stdout.strip().split("\n") else: return []
def remote_branch(self): shell = "cd {0} && git fetch -q -a && git branch -r".format(self.dest) stdout = LocalShell.check_output(shell, shell=True) stdout = stdout.strip().split("\n") stdout = [s.strip(" ").split("/", 1)[1] for s in stdout if "->" not in s] return stdout
def log(self): shell = ("cd {0} && git log -20 --pretty=\"%h %an %s\"").format(self.dest) stdout = LocalShell.check_output(shell, shell=True) stdout = stdout.strip().split("\n") stdout = [s.split(" ", 2) for s in stdout] return [{"abbreviated_commit": s[0], "author_name": s[1], "subject": s[2]} for s in stdout]
def log(self): shell = ("cd {0} && git log -20 --pretty=\"%h %an %s\"" ).format(self.dest) stdout = LocalShell.check_output(shell, shell=True) stdout = stdout.strip().split("\n") stdout = [s.split(" ", 2) for s in stdout] return [{"abbreviated_commit": s[0], "author_name": s[1], "subject": s[2]} for s in stdout]
def local_branch(self): shell = "cd {0} && git fetch -q -a && git branch".format(self.dest) stdout = LocalShell.check_output(shell, shell=True) stdout = stdout.strip().split("\n") stdout = [s.strip("* ") for s in stdout] return stdout
def local_branch(self): shell = "cd {0} && git fetch -q -a && git branch".format(self.dest) stdout = LocalShell.check_output(shell, shell=True) stdout = stdout.strip().split("\n") stdout = [s.strip("* ") for s in stdout] return stdout