parameters: (self)
return_statement: return self._branch_version
docstring: Computes the CEF branch version.
docstring_summary: Computes the CEF branch version.
docstring_tokens: Computes the CEF branch version .
function: def get_cef_branch_version_components(self):
      """ Computes the CEF branch version. """
      if not bool(self._branch_version):
        minor = 0
        bugfix = 0
  
        # Retrieve the list of commits that have been applied on the current
        # branch since branching from origin/master.
        hashes = git.get_branch_hashes(self.cef_path)
        for hash in hashes:
          # Determine if the API hash file was modified by the commit.
          found = False
          files = git.get_changed_files(self.cef_path, hash)
          for file in files:
            if file.find('cef_api_hash.h') >= 0:
              found = True
              break
  
          if found:
            minor += 1
            bugfix = 0
          else:
            bugfix += 1
  
        self._branch_version = {'MINOR': minor, 'PATCH': bugfix}
      return self._branch_version
function_tokens: def get_cef_branch_version_components ( self ) : if not bool ( self . _branch_version ) : minor = 0 bugfix = 0 # Retrieve the list of commits that have been applied on the current # branch since branching from origin/master. hashes = git . get_branch_hashes ( self . cef_path ) for hash in hashes : # Determine if the API hash file was modified by the commit. found = False files = git . get_changed_files ( self . cef_path , hash ) for file in files : if file . find ( 'cef_api_hash.h' ) >= 0 : found = True break if found : minor += 1 bugfix = 0 else : bugfix += 1 self . _branch_version = { 'MINOR' : minor , 'PATCH' : bugfix } return self . _branch_version