parameters: (self, version=None)
docstring: The latest release base is the latest revision that is covered in the
      last change log file. It doesn't include cherry-picked patches.
docstring_summary: The latest release base is the latest revision that is covered in the
      last change log file. It doesn't include cherry-picked patches.
docstring_tokens: The latest release base is the latest revision that is covered in the last change log file . It doesn t include cherry - picked patches .
function: def GetLatestReleaseBase(self, version=None):
      """The latest release base is the latest revision that is covered in the
      last change log file. It doesn't include cherry-picked patches.
      """
      latest_version = version or self.GetLatestVersion()
  
      # Strip patch level if it exists.
      latest_version = ".".join(latest_version.split(".")[:3])
  
      # The latest release base.
      latest_hash = self.GitLog(n=1, format="%H", branch=latest_version)
      assert latest_hash
  
      title = self.GitLog(n=1, format="%s", git_hash=latest_hash)
      match = PUSH_MSG_GIT_RE.match(title)
      if match:
        # Legacy: In the old process there's one level of indirection. The
        # version is on the candidates branch and points to the real release
        # base on master through the commit message.
        return match.group("git_rev")
      match = PUSH_MSG_NEW_RE.match(title)
      if match:
        # This is a new-style v8 version branched from master. The commit
        # "latest_hash" is the version-file change. Its parent is the release
        # base on master.
        return self.GitLog(n=1, format="%H", git_hash="%s^" % latest_hash)
  
      self.Die("Unknown latest release: %s" % latest_hash)
function_tokens: def GetLatestReleaseBase ( self , version = None ) : latest_version = version or self . GetLatestVersion ( ) # Strip patch level if it exists. latest_version = "." . join ( latest_version . split ( "." ) [ : 3 ] ) # The latest release base. latest_hash = self . GitLog ( n = 1 , format = "%H" , branch = latest_version ) assert latest_hash title = self . GitLog ( n = 1 , format = "%s" , git_hash = latest_hash ) match = PUSH_MSG_GIT_RE . match ( title ) if match : # Legacy: In the old process there's one level of indirection. The # version is on the candidates branch and points to the real release # base on master through the commit message. return match . group ( "git_rev" ) match = PUSH_MSG_NEW_RE . match ( title ) if match : # This is a new-style v8 version branched from master. The commit # "latest_hash" is the version-file change. Its parent is the release # base on master. return self . GitLog ( n = 1 , format = "%H" , git_hash = "%s^" % latest_hash ) self . Die ( "Unknown latest release: %s" % latest_hash )