tools/bisect-builds.py
def GetChromiumRevision(context, url):
  """Returns the chromium revision read from given URL."""
  try:
    # Location of the latest build revision number
    latest_revision = urllib.urlopen(url).read()
    if latest_revision.isdigit():
      return int(latest_revision)
    return context.GetSVNRevisionFromGitHash(latest_revision)
  except Exception:
    print('Could not determine latest revision. This could be bad...')
    return 999999999
Returns the chromium revision read from given URL.
Returns the chromium revision read from given URL.
Returns the chromium revision read from given URL .
def GetChromiumRevision(context, url):
  try:
    latest_revision = urllib.urlopen(url).read()
    if latest_revision.isdigit():
      return int(latest_revision)
    return context.GetSVNRevisionFromGitHash(latest_revision)
  except Exception:
    print('Could not determine latest revision. This could be bad...')
    return 999999999
def GetChromiumRevision ( context , url ) : try : latest_revision = urllib . urlopen ( url ) . read ( ) if latest_revision . isdigit ( ) : return int ( latest_revision ) return context . GetSVNRevisionFromGitHash ( latest_revision ) except Exception : print ( 'Could not determine latest revision. This could be bad...' ) return 999999999
Returns the chromium revision read from given URL.
Returns the chromium revision read from given URL .
"""Returns the chromium revision read from given URL.""" # Location of the latest build revision number
context
url