Helper function to check the existance of a revision
Signed-off-by: Simon Hausmann <simon@lst.de>
Simon Hausmann committed
Mar 22, 2007 at 21:27 UTC
8136a6399c886dec8d1b806a7d8728324e906729
1 file changed
+3
contrib/fast-import/git-p4
+3
@@ -83,6 +83,9 @@ def extractDepotPathAndChangeFromGitLog(log):
83
84
return values.get("depot-path"), values.get("change")
85
86
+def gitBranchExists(branch):
87
+ return os.system("git-rev-parse %s 2>/dev/null >/dev/null") == 0
88
+
89
class Command:
90
def __init__(self):
91
self.usage = "usage: %prog [options]"