Returns the master commit for the specified Chromium commit position.
(position)
| 517 | |
| 518 | |
| 519 | def 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 | |
| 531 | def get_chromium_versions(commit): |
no test coverage detected