tools/bisect-builds.py
def GetBlinkDEPSRevisionForChromiumRevision(self, rev):
  """Returns the blink revision that was in REVISIONS file at
  chromium revision |rev|."""

  def _GetBlinkRev(url, blink_re):
    m = blink_re.search(url.read())
    url.close()
    if m:
      return m.group(1)

  url = urllib.urlopen(DEPS_FILE % GetGitHashFromSVNRevision(rev))
  if url.getcode() == 200:
    blink_re = re.compile(r'webkit_revision\D*\d+;\D*\d+;(\w+)')
    blink_git_sha = _GetBlinkRev(url, blink_re)
    return self.GetSVNRevisionFromGitHash(blink_git_sha, 'blink')
  raise Exception('Could not get Blink revision for Chromium rev %d' % rev)
Returns the blink revision that was in REVISIONS file at
  chromium revision |rev|.
Returns the blink revision that was in REVISIONS file at
chromium revision |rev|.
Returns the blink revision that was in REVISIONS file at chromium revision |rev| .
def GetBlinkDEPSRevisionForChromiumRevision(self, rev):
  def _GetBlinkRev(url, blink_re):
    m = blink_re.search(url.read())
    url.close()
    if m:
      return m.group(1)
  url = urllib.urlopen(DEPS_FILE % GetGitHashFromSVNRevision(rev))
  if url.getcode() == 200:
    blink_re = re.compile(r'webkit_revision\D*\d+;\D*\d+;(\w+)')
    blink_git_sha = _GetBlinkRev(url, blink_re)
    return self.GetSVNRevisionFromGitHash(blink_git_sha, 'blink')
  raise Exception('Could not get Blink revision for Chromium rev %d' % rev)
def GetBlinkDEPSRevisionForChromiumRevision ( self , rev ) : def _GetBlinkRev ( url , blink_re ) : m = blink_re . search ( url . read ( ) ) url . close ( ) if m : return m . group ( 1 ) url = urllib . urlopen ( DEPS_FILE % GetGitHashFromSVNRevision ( rev ) ) if url . getcode ( ) == 200 : blink_re = re . compile ( r'webkit_revision\D*\d+;\D*\d+;(\w+)' ) blink_git_sha = _GetBlinkRev ( url , blink_re ) return self . GetSVNRevisionFromGitHash ( blink_git_sha , 'blink' ) raise Exception ( 'Could not get Blink revision for Chromium rev %d' % rev )
Returns the blink revision that was in REVISIONS file at
chromium revision |rev|.
Returns the blink revision that was in REVISIONS file at chromium revision |rev| .
"""Returns the blink revision that was in REVISIONS file at
  chromium revision |rev|."""
self
rev