mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-25 16:22:42 +01:00
68f28a1718
Summary: Ref T13546. This has a lot of dangerously rough edges, but has managed to land at least one commit in each Git and Mercurial. Test Plan: - Landed one commit under ideal conditions in Git and Mercurial. - See followups. Maniphest Tasks: T13546 Differential Revision: https://secure.phabricator.com/D21315
41 lines
691 B
PHP
41 lines
691 B
PHP
<?php
|
|
|
|
final class ArcanistLandTarget
|
|
extends Phobject {
|
|
|
|
private $remote;
|
|
private $ref;
|
|
private $commit;
|
|
|
|
public function setRemote($remote) {
|
|
$this->remote = $remote;
|
|
return $this;
|
|
}
|
|
|
|
public function getRemote() {
|
|
return $this->remote;
|
|
}
|
|
|
|
public function setRef($ref) {
|
|
$this->ref = $ref;
|
|
return $this;
|
|
}
|
|
|
|
public function getRef() {
|
|
return $this->ref;
|
|
}
|
|
|
|
public function getLandTargetKey() {
|
|
return sprintf('%s/%s', $this->getRemote(), $this->getRef());
|
|
}
|
|
|
|
public function setLandTargetCommit($commit) {
|
|
$this->commit = $commit;
|
|
return $this;
|
|
}
|
|
|
|
public function getLandTargetCommit() {
|
|
return $this->commit;
|
|
}
|
|
|
|
}
|