libvcs.sync.hg¶

For mercurial, aka hg(1).

Tool to manage a local hg (Mercurial) working copy from a repository.

class libvcs.sync.hg.HgSyncclass[source]¶

Bases: BaseSync

Tool to manage a local hg (Mercurial) repository cloned from a remote one.

Local Mercurial repository.

Parameters:

url (str) – URL in subversion repository

bin_name: str = 'hg'attribute¶

VCS app name, e.g. ‘git’

schemes: tuple[str, ...] = ('hg', 'hg+http', 'hg+https', 'hg+file')attribute¶

List of supported schemes to register in urlparse.uses_netloc

__init__(*, url, path, **kwargs)method[source]¶

Local Mercurial repository.

Parameters:
Return type:

None

cmd: Hgattribute¶
obtain(*args, **kwargs)method[source]¶

Clone and update a Mercurial repository to this location.

Return type:

None

Parameters:
get_revision()method[source]¶

Get latest revision of this mercurial repository.

Return type:

str

update_repo(*args, **kwargs)method[source]¶

Pull changes from remote Mercurial repository into this one.

Return type:

SyncResult

Returns:

Result of the sync operation, with any errors recorded.

Return type:

SyncResult

Parameters: