final public function supportsBranches()
wild |
abstract protected function isStableCommit($symbol)
$symbol |
wild |
protected function didInitialize()
wild |
final public static function newFromDictionary($data)
Create a new synthetic request from a parameter dictionary. If you need a DiffusionRequest object in order to issue a DiffusionQuery, you can use this method to build one.
Parameters are:
- repository Repository object or identifier.
- user Viewing user. Required if repository is an identifier.
- branch Optional, branch name.
- path Optional, file path.
- commit Optional, commit identifier.
- line Optional, line range.
map | $data | See documentation. |
DiffusionRequest | New request object. |
final private function __construct()
Internal.
this | //Implicit.// |
final private static function newFromIdentifier($identifier, $viewer, $need_edit)
Internal. Use newFromDictionary(), not this method.
string | $identifier | Repository identifier. |
PhabricatorUser | $viewer | Viewing user. |
$need_edit |
DiffusionRequest | New request object. |
final private static function newFromRepository($repository)
Internal. Use newFromDictionary(), not this method.
PhabricatorRepository | $repository | Repository object. |
DiffusionRequest | New request object. |
final private function initializeFromDictionary($data)
Internal. Use newFromDictionary(), not this method.
map | $data | Map of parsed data. |
void |
final public function setUser($user)
PhabricatorUser | $user |
wild |
final public function getUser()
wild |
public function getRepository()
wild |
public function setPath($path)
$path |
wild |
public function getPath()
wild |
public function getLine()
wild |
public function getCommit()
wild |
public function getSymbolicCommit()
Get the symbolic commit associated with this request.
A symbolic commit may be a commit hash, an abbreviated commit hash, a branch name, a tag name, or an expression like "HEAD^^^". The symbolic commit may also be absent.
This method always returns the symbol present in the original request, in unmodified form.
See also getStableCommit().
string|null | Symbolic commit, if one was present in the request. |
public function updateSymbolicCommit($symbol)
Modify the request to move the symbolic commit elsewhere.
string | $symbol | New symbolic commit. |
this |
public function getSymbolicType()
Get the ref type (commit or tag) of the location associated with this request.
If a symbolic commit is present in the request, this method identifies the type of the symbol. Otherwise, it identifies the type of symbol of the location the request is implicitly associated with. This will probably always be commit.
string | Symbolic commit type (`commit` or `tag`). |
public function getStableCommit()
Retrieve the stable, permanent commit name identifying the repository location associated with this request.
This returns a non-symbolic identifier for the current commit: in Git and Mercurial, a 40-character SHA1; in SVN, a revision number.
See also getSymbolicCommit().
string | Stable commit name, like a git hash or SVN revision. Not a symbolic commit reference. |
public function getBranch()
wild |
public function getLint()
wild |
protected function getArcanistBranch()
wild |
public function loadBranch()
wild |
public function loadCoverage()
wild |
public function loadCommit()
wild |
public function loadCommitData()
wild |
public function generateURI($params)
array | $params |
wild |
public static function parseRequestBlob($blob, $supports_branches)
Internal. Public only for unit tests.
Parse the request URI into components.
string | $blob | URI blob. |
bool | $supports_branches | True if this VCS supports branches. |
map | Parsed URI. |
protected function validateWorkingCopy($path)
Check that the working copy of the repository is present and readable.
string | $path | Path to the working copy. |
wild |
protected function raisePermissionException()
wild |
protected function raiseCloneException()
wild |
private function queryStableCommit()
wild |
public function getRefAlternatives()
wild |
private function chooseBestRefMatch($ref, $results)
$ref | ||
array | $results |
wild |
public function resolveRefs($refs, $types)
array | $refs | |
array | $types |
wild |
public function setIsClusterRequest($is_cluster_request)
$is_cluster_request |
wild |
public function getIsClusterRequest()
wild |