[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/src/applications/repository/storage/ -> PhabricatorRepository.php (summary)

(no description)

File Size: 1591 lines (46 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 100 functions

  initializeNewRepository()
  getConfiguration()
  generatePHID()
  toDictionary()
  getMonogram()
  getDetail()
  getHumanReadableDetail()
  setDetail()
  attachCommitCount()
  getCommitCount()
  attachMostRecentCommit()
  getMostRecentCommit()
  getDiffusionBrowseURIForPath()
  getLocalPath()
  getSubversionBaseURI()
  getSubversionPathURI()
  attachProjectPHIDs()
  getProjectPHIDs()
  getCloneName()
  execRemoteCommand()
  execxRemoteCommand()
  getRemoteCommandFuture()
  passthruRemoteCommand()
  newRemoteCommandFuture()
  newRemoteCommandPassthru()
  execLocalCommand()
  execxLocalCommand()
  getLocalCommandFuture()
  passthruLocalCommand()
  newLocalCommandFuture()
  newLocalCommandPassthru()
  getSSHWrapper()
  getCommonCommandEnvironment()
  getLocalCommandEnvironment()
  getRemoteCommandEnvironment()
  formatRemoteCommand()
  formatLocalCommand()
  filterMercurialDebugOutput()
  getURI()
  getNormalizedPath()
  isTracked()
  getDefaultBranch()
  getDefaultArcanistBranch()
  isBranchInFilter()
  extractBranchRegexp()
  shouldTrackBranch()
  formatCommitName()
  isImporting()
  shouldAutocloseBranch()
  shouldAutocloseCommit()
  shouldSkipAutocloseBranch()
  shouldSkipAutocloseCommit()
  shouldSkipAllAutoclose()
  getRemoteURI()
  getRemoteURIEnvelope()
  getPublicCloneURI()
  getRemoteProtocol()
  getRemoteURIObject()
  getCloneURIObject()
  getSSHCloneURIObject()
  getHTTPCloneURIObject()
  shouldUseSSH()
  shouldUseHTTP()
  shouldUseSVNProtocol()
  isSSHProtocol()
  delete()
  isGit()
  isSVN()
  isHg()
  isHosted()
  setHosted()
  getServeOverHTTP()
  setServeOverHTTP()
  getServeOverSSH()
  setServeOverSSH()
  getProtocolAvailabilityName()
  normalizeServeConfigSetting()
  assertLocalExists()
  isWorkingCopyBare()
  usesLocalWorkingCopy()
  getHookDirectories()
  canDestroyWorkingCopy()
  canUsePathTree()
  canMirror()
  canAllowDangerousChanges()
  shouldAllowDangerousChanges()
  writeStatusMessage()
  getRemoteURIProtocol()
  assertValidRemoteURI()
  loadUpdateInterval()
  getCapabilities()
  getPolicy()
  hasAutomaticCapability()
  describeAutomaticCapability()
  getMarkupFieldKey()
  newMarkupEngine()
  getMarkupText()
  didMarkupText()
  shouldUseMarkupCache()
  destroyObjectPermanently()

Functions
Functions that are not part of a class:

initializeNewRepository(PhabricatorUser $actor)   X-Ref
No description

getConfiguration()   X-Ref
No description

generatePHID()   X-Ref
No description

toDictionary()   X-Ref
No description

getMonogram()   X-Ref
No description

getDetail($key, $default = null)   X-Ref
No description

getHumanReadableDetail($key, $default = null)   X-Ref
No description

setDetail($key, $value)   X-Ref
No description

attachCommitCount($count)   X-Ref
No description

getCommitCount()   X-Ref
No description

attachMostRecentCommit(PhabricatorRepositoryCommit $commit = null)   X-Ref
No description

getMostRecentCommit()   X-Ref
No description

getDiffusionBrowseURIForPath(PhabricatorUser $user,$path,$line = null,$branch = null)   X-Ref
No description

getLocalPath()   X-Ref
No description

getSubversionBaseURI($commit = null)   X-Ref
No description

getSubversionPathURI($path = null, $commit = null)   X-Ref
No description

attachProjectPHIDs(array $project_phids)   X-Ref
No description

getProjectPHIDs()   X-Ref
No description

getCloneName()   X-Ref
Get the name of the directory this repository should clone or checkout
into. For example, if the repository name is "Example Repository", a
reasonable name might be "example-repository". This is used to help users
get reasonable results when cloning repositories, since they generally do
not want to clone into directories called "X/" or "Example Repository/".

return: string

execRemoteCommand($pattern )   X-Ref
No description

execxRemoteCommand($pattern )   X-Ref
No description

getRemoteCommandFuture($pattern )   X-Ref
No description

passthruRemoteCommand($pattern )   X-Ref
No description

newRemoteCommandFuture(array $argv)   X-Ref
No description

newRemoteCommandPassthru(array $argv)   X-Ref
No description

execLocalCommand($pattern )   X-Ref
No description

execxLocalCommand($pattern )   X-Ref
No description

getLocalCommandFuture($pattern )   X-Ref
No description

passthruLocalCommand($pattern )   X-Ref
No description

newLocalCommandFuture(array $argv)   X-Ref
No description

newLocalCommandPassthru(array $argv)   X-Ref
No description

getSSHWrapper()   X-Ref
No description

getCommonCommandEnvironment()   X-Ref
No description

getLocalCommandEnvironment()   X-Ref
No description

getRemoteCommandEnvironment()   X-Ref
No description

formatRemoteCommand(array $args)   X-Ref
No description

formatLocalCommand(array $args)   X-Ref
No description

filterMercurialDebugOutput($stdout)   X-Ref
Sanitize output of an `hg` command invoked with the `--debug` flag to make
it usable.

param: string Output from `hg --debug ...`
return: string Usable output.

getURI()   X-Ref
No description

getNormalizedPath()   X-Ref
No description

isTracked()   X-Ref
No description

getDefaultBranch()   X-Ref
No description

getDefaultArcanistBranch()   X-Ref
No description

isBranchInFilter($branch, $filter_key)   X-Ref
No description

extractBranchRegexp($pattern)   X-Ref
No description

shouldTrackBranch($branch)   X-Ref
No description

formatCommitName($commit_identifier)   X-Ref
No description

isImporting()   X-Ref
No description

shouldAutocloseBranch($branch)   X-Ref
Determine if autoclose is active for a branch.

For more details about why, use @{method:shouldSkipAutocloseBranch}.

param: string Branch name to check.
return: bool True if autoclose is active for the branch.

shouldAutocloseCommit(PhabricatorRepositoryCommit $commit)   X-Ref
Determine if autoclose is active for a commit.

For more details about why, use @{method:shouldSkipAutocloseCommit}.

param: PhabricatorRepositoryCommit Commit to check.
return: bool True if autoclose is active for the commit.

shouldSkipAutocloseBranch($branch)   X-Ref
Determine why autoclose should be skipped for a branch.

This method gives a detailed reason why autoclose will be skipped. To
perform a simple test, use @{method:shouldAutocloseBranch}.

param: string Branch name to check.
return: const|null Constant identifying reason to skip this branch, or null

shouldSkipAutocloseCommit(PhabricatorRepositoryCommit $commit)   X-Ref
Determine why autoclose should be skipped for a commit.

This method gives a detailed reason why autoclose will be skipped. To
perform a simple test, use @{method:shouldAutocloseCommit}.

param: PhabricatorRepositoryCommit Commit to check.
return: const|null Constant identifying reason to skip this commit, or null

shouldSkipAllAutoclose()   X-Ref
Determine why all autoclose operations should be skipped for this
repository.

return: const|null Constant identifying reason to skip all autoclose

getRemoteURI()   X-Ref
Get the remote URI for this repository.

return: string

getRemoteURIEnvelope()   X-Ref
Get the remote URI for this repository, including credentials if they're
used by this repository.

return: PhutilOpaqueEnvelope URI, possibly including credentials.

getPublicCloneURI()   X-Ref
Get the clone (or checkout) URI for this repository, without authentication
information.

return: string Repository URI.

getRemoteProtocol()   X-Ref
Get the protocol for the repository's remote.

return: string Protocol, like "ssh" or "git".

getRemoteURIObject()   X-Ref
Get a parsed object representation of the repository's remote URI. This
may be a normal URI (returned as a @{class@libphutil:PhutilURI}) or a git
URI (returned as a @{class@libphutil:PhutilGitURI}).

return: wild A @{class@libphutil:PhutilURI} or

getCloneURIObject()   X-Ref
Get the "best" clone/checkout URI for this repository, on any protocol.


getSSHCloneURIObject()   X-Ref
Get the repository's SSH clone/checkout URI, if one exists.


getHTTPCloneURIObject()   X-Ref
Get the repository's HTTP clone/checkout URI, if one exists.


shouldUseSSH()   X-Ref
Determine if we should connect to the remote using SSH flags and
credentials.

return: bool True to use the SSH protocol.

shouldUseHTTP()   X-Ref
Determine if we should connect to the remote using HTTP flags and
credentials.

return: bool True to use the HTTP protocol.

shouldUseSVNProtocol()   X-Ref
Determine if we should connect to the remote using SVN flags and
credentials.

return: bool True to use the SVN protocol.

isSSHProtocol($protocol)   X-Ref
Determine if a protocol is SSH or SSH-like.

param: string A protocol string, like "http" or "ssh".
return: bool True if the protocol is SSH-like.

delete()   X-Ref
No description

isGit()   X-Ref
No description

isSVN()   X-Ref
No description

isHg()   X-Ref
No description

isHosted()   X-Ref
No description

setHosted($enabled)   X-Ref
No description

getServeOverHTTP()   X-Ref
No description

setServeOverHTTP($mode)   X-Ref
No description

getServeOverSSH()   X-Ref
No description

setServeOverSSH($mode)   X-Ref
No description

getProtocolAvailabilityName($constant)   X-Ref
No description

normalizeServeConfigSetting($value)   X-Ref
No description

assertLocalExists()   X-Ref
Raise more useful errors when there are basic filesystem problems.


isWorkingCopyBare()   X-Ref
Determine if the working copy is bare or not. In Git, this corresponds
to `--bare`. In Mercurial, `--noupdate`.


usesLocalWorkingCopy()   X-Ref
No description

getHookDirectories()   X-Ref
No description

canDestroyWorkingCopy()   X-Ref
No description

canUsePathTree()   X-Ref
No description

canMirror()   X-Ref
No description

canAllowDangerousChanges()   X-Ref
No description

shouldAllowDangerousChanges()   X-Ref
No description

writeStatusMessage($status_type,$status_code,array $parameters = array()   X-Ref
No description

getRemoteURIProtocol($raw_uri)   X-Ref
No description

assertValidRemoteURI($uri)   X-Ref
No description

loadUpdateInterval($minimum = 15)   X-Ref
Load the pull frequency for this repository, based on the time since the
last activity.

We pull rarely used repositories less frequently. This finds the most
recent commit which is older than the current time (which prevents us from
spinning on repositories with a silly commit post-dated to some time in
2037). We adjust the pull frequency based on when the most recent commit
occurred.

param: int   The minimum update interval to use, in seconds.
return: int   Repository update interval, in seconds.

getCapabilities()   X-Ref
No description

getPolicy($capability)   X-Ref
No description

hasAutomaticCapability($capability, PhabricatorUser $user)   X-Ref
No description

describeAutomaticCapability($capability)   X-Ref
No description

getMarkupFieldKey($field)   X-Ref
No description

newMarkupEngine($field)   X-Ref
No description

getMarkupText($field)   X-Ref
No description

didMarkupText($field,$output,PhutilMarkupEngine $engine)   X-Ref
No description

shouldUseMarkupCache($field)   X-Ref
No description

destroyObjectPermanently(PhabricatorDestructionEngine $engine)   X-Ref
No description



Generated: Sun Nov 30 09:20:46 2014 Cross-referenced by PHPXref 0.7.1