@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.)
hq.recaptime.dev/wiki/Phorge
phorge
phabricator
1<?php
2
3final class DiffusionMercurialFileContentQuery
4 extends DiffusionFileContentQuery {
5
6 protected function newQueryFuture() {
7 $drequest = $this->getRequest();
8
9 $repository = $drequest->getRepository();
10 $path = $drequest->getPath();
11 $commit = $drequest->getCommit();
12
13 return $repository->getLocalCommandFuture(
14 'cat --rev %s -- %s',
15 $commit,
16 $path);
17 }
18
19}