Correct a parameter order swap in "diffusion.historyquery" for Mercurial
[phabricator.git] / src / applications / diffusion / query / rawdiff / DiffusionRawDiffQuery.php
blob37d8a6806858711c9181ceaf5e6fc56071d6dbe1
1 <?php
3 abstract class DiffusionRawDiffQuery
4 extends DiffusionFileFutureQuery {
6 private $linesOfContext = 65535;
7 private $anchorCommit;
8 private $againstCommit;
10 final public static function newFromDiffusionRequest(
11 DiffusionRequest $request) {
12 return parent::newQueryObject(__CLASS__, $request);
15 final public function setLinesOfContext($lines_of_context) {
16 $this->linesOfContext = $lines_of_context;
17 return $this;
20 final public function getLinesOfContext() {
21 return $this->linesOfContext;
24 final public function setAgainstCommit($value) {
25 $this->againstCommit = $value;
26 return $this;
29 final public function getAgainstCommit() {
30 return $this->againstCommit;
33 public function setAnchorCommit($anchor_commit) {
34 $this->anchorCommit = $anchor_commit;
35 return $this;
38 public function getAnchorCommit() {
39 if ($this->anchorCommit) {
40 return $this->anchorCommit;
43 return $this->getRequest()->getStableCommit();