提交 8136a639 编写于 作者: S Simon Hausmann

Helper function to check the existance of a revision

Signed-off-by: NSimon Hausmann <simon@lst.de>
上级 6ae8de88
......@@ -83,6 +83,9 @@ def extractDepotPathAndChangeFromGitLog(log):
return values.get("depot-path"), values.get("change")
def gitBranchExists(branch):
return os.system("git-rev-parse %s 2>/dev/null >/dev/null") == 0
class Command:
def __init__(self):
self.usage = "usage: %prog [options]"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册