コード例 #1
0
ファイル: git.py プロジェクト: bradbann/pydelo
 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 []
コード例 #2
0
 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 []
コード例 #3
0
 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
コード例 #4
0
ファイル: git.py プロジェクト: bradbann/pydelo
 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]
コード例 #5
0
 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]
コード例 #6
0
ファイル: git.py プロジェクト: bradbann/pydelo
 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
コード例 #7
0
 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