parameters: (branchName)
docstring: Check if the branch name is a release branch
docstring_summary: Check if the branch name is a release branch
docstring_tokens: Check if the branch name is a release branch
function: def _IsReleaseBranch(branchName):
      """Check if the branch name is a release branch"""
      # a release branch begins with 'release_' and has
      # a base tag that matches the release name
      if branchName[:8] == 'release_':
          tailTag = _GetReleaseTailTag(branchName)
          if _gitHasTag(tailTag):
              return True
          else:
              # see if we can pull the tag down from any of the remotes
              repo = _GetRepository()
              for remote in repo.remotes:
                  try:
                      remote.fetch('+refs/tags/{0}:refs/tags/{0}'.format(tailTag), None, **{'no-tags':True})
                  except:
                      pass
              
              # try one more time after the fetch attempt(s)
              return (_gitHasTag(tailTag) != '')
      else:
          return False
function_tokens: def _IsReleaseBranch ( branchName ) : # a release branch begins with 'release_' and has # a base tag that matches the release name if branchName [ : 8 ] == 'release_' : tailTag = _GetReleaseTailTag ( branchName ) if _gitHasTag ( tailTag ) : return True else : # see if we can pull the tag down from any of the remotes repo = _GetRepository ( ) for remote in repo . remotes : try : remote . fetch ( '+refs/tags/{0}:refs/tags/{0}' . format ( tailTag ) , None , * * { 'no-tags' : True } ) except : pass # try one more time after the fetch attempt(s) return ( _gitHasTag ( tailTag ) != '' ) else : return False