public async function genHeadChangeset()

in src/shipit/repo/ShipItRepoHG.php [55:80]


  public async function genHeadChangeset(): Awaitable<?ShipItChangeset> {
    $branch = $this->branch;
    if ($branch === null) {
      throw new ShipItRepoHGException($this, "setBranch must be called first.");
    }
    $log = await $this->genHgCommand(
      'log',
      '--limit',
      '1',
      '-r',
      $branch,
      '--template',
      '{node}\\n',
    );
    $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 await $this->genChangesetFromID($log);
  }