#!/usr/bin/env php parseStandardArguments(); $args->parse( array( array( 'name' => 'repository', 'wildcard' => true, ), )); $repo = $args->getArg('repository'); if (count($repo) !== 1) { throw new Exception("Specify exactly one working copy!"); } $repo = head($repo); $daemon = new ArcanistHgProxyClient($repo); $t_start = microtime(true); $result = $daemon->executeCommand( array('log', '--template', '{node}', '--rev', 2)); $t_end = microtime(true); var_dump($result); echo "\nExecuted in ".((int)(1000 * ($t_end - $t_start)))."ms.\n";