vcspull sync - vcspull.cli.sync

Synchronization functionality for vcspull.

vcspull.cli.sync.clamp(n, _min, _max)[source]

Clamp a number between a min and max value.

Return type:

int

Parameters:
vcspull.cli.sync.create_sync_subparser(parser)[source]

Create vcspull sync argument subparser.

Return type:

ArgumentParser

Parameters:

parser (ArgumentParser)

vcspull.cli.sync.sync(repo_patterns, config, exit_on_error, parser=None)[source]

Entry point for vcspull sync.

Return type:

None

Parameters:
vcspull.cli.sync.progress_cb(output, timestamp)[source]

CLI Progress callback for command.

Return type:

None

Parameters:
vcspull.cli.sync.guess_vcs(url)[source]

Guess the VCS from a URL.

Return type:

Optional[Literal['git', 'svn', 'hg']]

Parameters:

url (str)

exception vcspull.cli.sync.CouldNotGuessVCSFromURL(repo_url, *args, **kwargs)[source]

Bases: VCSPullException

Raised when no VCS could be guessed from a URL.

Parameters:
Return type:

None

vcspull.cli.sync.update_repo(repo_dict)[source]

Synchronize a single repository.

Return type:

GitSync

Parameters:

repo_dict (Any)