getVCS()
getVCS(string $repo) : string
Get the right VCS for a given repository
Parameters
string | $repo | repository name |
Returns
string —Name of the VCS or false if the repo does not exist
VersionControl class
This class is for all the methods we need to relate to our VCS
getPath(string $locale, string $repo, string $path) : string
Generate a path to the repo for the file, depending on the VCS used by this repo
string | $locale | Locale code |
string | $repo | Repository name |
string | $path | Entity name representing the local file |
Path to the file in remote repository
hgPath(string $locale, string $repo, string $path) : string
Generate a path to the mercurial repo for the file
string | $locale | Locale code |
string | $repo | Repository name |
string | $path | Entity name representing the local file |
Path to the file in remote mercurial repository
gitPath(string $locale, string $repo, string $path) : string
Generate a path to the GitHub repo for the file.
Only mozilla.org is supported for now.
string | $locale | Locale code |
string | $repo | Repository name |
string | $path | Entity name representing the local file |
Path to the file in remote GitHub repository