[ Index ] |
PHP Cross Reference of Phabricator |
[Source view] [Print] [Project Stats]
Given a commit and a path, efficiently determine the most recent ancestor commit where the path was touched. In Git and Mercurial, log operations with a path are relatively slow. For example:
File Size: | 409 lines (13 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
loadLastModifiedCommitID($commit_id, $path_id, $time = 0.5) X-Ref |
Search the graph cache for the most modification to a path. param: int The commit ID to search ancestors of. param: int The path ID to search for changes to. param: float Maximum number of seconds to spend trying to satisfy this return: mixed Commit ID, or `null` if no ancestors exist, or `false` if |
getBucketKey($commit_id) X-Ref |
Get the bucket key for a given commit ID. param: int Commit ID. return: int Bucket key. |
getBucketCacheKey($bucket_key) X-Ref |
Get the cache key for a given bucket key (from @{method:getBucketKey}). param: int Bucket key. return: string Cache key. |
getBucketSize() X-Ref |
Get the number of items per bucket. return: int Number of items to store per bucket. |
getBucketData($bucket_key, $rebuild_data = null) X-Ref |
Retrieve or build a graph cache bucket from the cache. Normally, this operates as a readthrough cache call. It can also be used to force a cache update by passing the existing data to `$rebuild_data`. param: int Bucket key, from @{method:getBucketKey}. param: mixed Current data, to force a cache rebuild of this bucket. return: array Data from the cache. |
rebuildBucket($bucket_key, array $current_data) X-Ref |
Rebuild a cache bucket, amending existing data if available. param: int Bucket key, from @{method:getBucketKey}. param: array Existing bucket data. return: array Rebuilt bucket data. |
Generated: Sun Nov 30 09:20:46 2014 | Cross-referenced by PHPXref 0.7.1 |