Class ArcanistWorkingCopyIdentity
Interfaces with basic information about the working copy.
Tasks
Methods
protected this __construct($root, array $config)
| parameters | wild | $root | |
| array | $config | |
| return | this | | |
This method is not documented.
public getConduitURI()
This method is not documented.
public wild getConfig($key, $default = null)
| parameters | key | $key | Key to read. |
| wild | $default | Default value if key is not found. |
| return | wild | | Value, or default value if not found. |
Read a configuration directive from project configuration. This reads ONLY
permanent project configuration (i.e., ".arcconfig"), not other
configuration sources. See getConfigFromAnySource() to read from
user configuration.
public wild getConfigFromAnySource($key, $default = null)
| parameters | key | $key | Key to read. |
| wild | $default | Default value if key is not found. |
| return | wild | | Value, or default value if not found. |
Read a configuration directive from any available configuration source.
In contrast to getConfig(), this will look for the directive in
local and user configuration in addition to project configuration.
The precedence is local > project > user
public getLocalConfig($key, $default = null)
| parameters | wild | $key | |
| wild | $default | |
| return | wild | | |
Read a configuration directive from local configuration. This
reads ONLY the per-working copy configuration,
i.e. .(git|hg|svn)/arc/config, and not other configuration
sources. See getConfigFromAnySource() to read from any
config source or getConfig() to read permanent
project-level config.
public getProjectConfig()
This method is not documented.
public getProjectID()
This method is not documented.
public getProjectRoot()
This method is not documented.
public static newDummyWorkingCopy()
This method is not documented.
public static newFromPath($path)
| parameters | wild | $path | |
| return | wild | | |
This method is not documented.
public static newFromRootAndConfigFile($root, $config_raw, $from_where)
| parameters | wild | $root | |
| wild | $config_raw | |
| wild | $from_where | |
| return | wild | | |
This method is not documented.
private static parseRawConfigFile($raw_config, $from_where)
| parameters | wild | $raw_config | |
| wild | $from_where | |
| return | wild | | |
This method is not documented.
public setRuntimeConfig($key, $value)
| parameters | key | $key | Key to set. |
| value | $value | The value of the key. |
| return | wild | | |
Sets a runtime config value that takes precedence over any static
config values.