Browse Source

Helper function to check the existance of a revision

Signed-off-by: Simon Hausmann <simon@lst.de>
maint
Simon Hausmann 18 years ago
parent
commit
8136a6399c
  1. 3
      contrib/fast-import/git-p4

3
contrib/fast-import/git-p4

@ -83,6 +83,9 @@ def extractDepotPathAndChangeFromGitLog(log): @@ -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]"

Loading…
Cancel
Save