MCPcopy Create free account
hub / github.com/cztomczak/cefpython / get_chromium_master_commit

Function get_chromium_master_commit

tools/automate-git.py:519–528  ·  view source on GitHub ↗

Returns the master commit for the specified Chromium commit position.

(position)

Source from the content-addressed store, hash-verified

517
518
519def get_chromium_master_commit(position):
520 """ Returns the master commit for the specified Chromium commit position. """
521 cmd = '%s log -1 --grep=refs/heads/master@{#%s} origin/master' % (
522 git_exe, str(position))
523 result = exec_cmd(cmd, chromium_src_dir)
524 if result['out'] != '':
525 match = re.search(r'^commit ([a-f0-9]+)', result['out'])
526 assert match != None, 'Failed to find commit'
527 return match.groups()[0]
528 return None
529
530
531def get_chromium_versions(commit):

Callers 2

log_chromium_changesFunction · 0.85

Calls 1

exec_cmdFunction · 0.85

Tested by

no test coverage detected