Sync - libvcs.sync¶
Keep a local checkout in sync with its remote: obtain()
and its Mercurial and Subversion counterparts clone the repository when it
doesn’t exist yet and update it when it does, through
GitSync, HgSync, and
SvnSync — built on top of libvcs.cmd.
Compare to:
fabtools.require.git,
salt.states.git,
ansible.builtin.git
Warning
All APIs are considered experimental and subject to break pre-1.0. They can and will break between versions.
Modules¶
Clone, fetch, and update Git repositories.
Clone and update Mercurial repositories.
Checkout and update Subversion working copies.
Abstract base class for all sync backends.
Constants¶
Constants for use by libvcs.sync.
-
libvcs.sync.constants.DEFAULT_VCS_LITERAL¶libvcs.sync.constants.DEFAULT_VCS_LITERAL¶
Default VCS systems by string (in
DEFAULT_VCS_CLASS_MAP)alias of
Literal[‘git’, ‘hg’, ‘svn’]
-
str->classMap.DEFAULT_VCS_CLASS_MAP['git']->GitSync