Cross Forests
/
projects
/
python
/
fast-export.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
29b9fbc
)
Helper function to check the existance of a revision
author
Simon Hausmann
<simon@luria.(none)>
Thu, 22 Mar 2007 20:27:14 +0000
(21:27 +0100)
committer
Simon Hausmann
<simon@luria.(none)>
Thu, 22 Mar 2007 20:27:14 +0000
(21:27 +0100)
git-p4
patch
|
blob
|
history
diff --git
a/git-p4
b/git-p4
index
6ead1c4
..
b21dee3
100755
(executable)
--- a/
git-p4
+++ b/
git-p4
@@
-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]"