SHTK_CVS_FETCH(3) BSD Library Functions Manual SHTK_CVS_FETCH(3)NAME
shtk_cvs_fetch — Checks out or updates a CVS working copy
LIBRARY
shtk_import cvs
SYNOPSIS
shtk_cvs_fetch cvsroot module tag directory
DESCRIPTION
The shtk_cvs_fetch function is a simple wrapper over the lower-level
shtk_cvs_checkout(3) and shtk_cvs_update(3) functions, using one or the
other depending on the status of the local working copy.
More specifically: if directory does not yet exist or it is empty, the
shtk_cvs_fetch function checks out a new working copy of the repository
cvsroot into it using the given module and tag. If directory does exist
and contains a CVS control directory, then the shtk_cvs_fetch function
performs a working copy update of the repository using the given tag.
The CVS tag provided in tag can be empty, in which case the working copy
is checked out from ‘HEAD’.
EXAMPLES
shtk_cvs_fetch :ext:anoncvs@anoncvs.NetBSD.org:/cvsroot \
src netbsd-7 /usr/src
SEE ALSOshtk(3), shtk_cvs(3)HISTORY
shtk_cvs_fetch first appeared in shtk 1.0.
BSD November 7, 2014 BSD