final public function supportsBranches()Inherited
wild |
protected function isStableCommit($symbol)
$symbol |
wild |
protected function didInitialize()Inherited
wild |
final public static function newFromDictionary($data)Inherited
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()Inherited
Internal.
this | //Implicit.// |
final private static function newFromIdentifier($identifier, $viewer, $need_edit)Inherited
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)Inherited
Internal. Use newFromDictionary(), not this method.
PhabricatorRepository | $repository | Repository object. |
DiffusionRequest | New request object. |
final private function initializeFromDictionary($data)Inherited
Internal. Use newFromDictionary(), not this method.
map | $data | Map of parsed data. |
void |
final public function setUser($user)Inherited
PhabricatorUser | $user |
wild |
final public function getUser()Inherited
wild |
public function getRepository()Inherited
wild |
public function setPath($path)Inherited
$path |
wild |
public function getPath()Inherited
wild |
public function getLine()Inherited
wild |
public function getCommit()Inherited
wild |
public function getSymbolicCommit()Inherited
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)Inherited
Modify the request to move the symbolic commit elsewhere.
string | $symbol | New symbolic commit. |
this |
public function getSymbolicType()Inherited
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()Inherited
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()Inherited
wild |
protected function getArcanistBranch()Inherited
wild |
public function loadBranch()Inherited
wild |
public function loadCoverage()Inherited
wild |
public function loadCommit()Inherited
wild |
public function loadCommitData()Inherited
wild |
public function generateURI($params)Inherited
array | $params |
wild |
public static function parseRequestBlob($blob, $supports_branches)Inherited
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)Inherited
Check that the working copy of the repository is present and readable.
string | $path | Path to the working copy. |
wild |
protected function raisePermissionException()Inherited
wild |
protected function raiseCloneException()Inherited
wild |
private function queryStableCommit()Inherited
wild |
public function getRefAlternatives()Inherited
wild |
private function chooseBestRefMatch($ref, $results)Inherited
$ref | ||
array | $results |
wild |
public function resolveRefs($refs, $types)Inherited
array | $refs | |
array | $types |
wild |
public function setIsClusterRequest($is_cluster_request)Inherited
$is_cluster_request |
wild |
public function getIsClusterRequest()Inherited
wild |