shtk_cvs_checkout
—
Checks out a new working copy out of a CVS repository
shtk_cvs_checkout |
cvsroot module
tag directory |
The shtk_cvs_checkout
function checks out a new working
copy of the repository cvsroot into
directory using the given module
and tag. The directory must not
exist. The CVS tag provided in tag can be empty, in
which case the working copy is checked out from ‘HEAD’.
In general, you should resort to using the higher-level
shtk_cvs_fetch(3)
wrapper as it properly handles the case of already existing working copies
(which could be caused by a previously aborted checkout, for example).
shtk_cvs_checkout :ext:anoncvs@anoncvs.NetBSD.org:/cvsroot \
src netbsd-7 /usr/src
shtk_cvs_checkout
aborts execution with an error if the
given directory already exists or if the CVS checkout
operation fails.
shtk_cvs_checkout
first appeared in
shtk
1.0.