Page
Library
Module
Module type
Parameter
Class
Class type
Source
Volgo_hg_unix
SourceImplementation of a Mercurial backend for the Volgo.Vcs
library, based on Stdlib
and Volgo_hg_backend
.
This implementation is based on the hg
command line tool. We run it as an external program with utils from Stdlib
and Unix
, producing the right command line invocation and parsing the output to produce a typed version of the expected results with Volgo_hg_backend
. Note that hg
must be found in the PATH of the running environment.
This is a convenient type alias that may be used to designate a backend with the exact list of traits supported by this implementation.
When create
is called, the environment variable "PATH"
is read to resolve the executable whose basename is "hg". Subsequent calls to that vcs
value will execute that resolved path, unless a "PATH"
variable is passed as an override to a call in particular, via the env
variable of Vcs.hg ?env
).
The implementation of the backend is exported for convenience and tests. Casual users should prefer using Vcs
directly.
Exposed if you need to extend it.