in src/shipit/repo/ShipItRepoHG.php [82:111]
public async function genFindNextCommit(
string $revision,
keyset<string> $roots,
): Awaitable<?string> {
$branch = $this->branch;
if ($branch === null) {
throw new ShipItRepoHGException($this, "setBranch must be called first.");
}
$log = await $this->genHgCommand(
'log',
'--limit',
'1',
'-r',
"({$revision}::'{$branch}') - {$revision}",
'--template',
'{node}\\n',
...$roots
);
$log = Str\trim($log);
if ($log === '') {
return null;
}
if (Str\length($log) !== 40) {
throw new ShipItRepoHGException(
$this,
"{$log} doesn't look like a valid"." hg changeset id",
);
}
return $log;
}