libvcs.sync.hg#

For mercurial, aka hg(1).

Mercurial Repo object for libvcs.

class libvcs.sync.hg.HgSync(*, url, dir, **kwargs)[source]#

Bases: BaseSync

A hg repository.

Parameters:
  • url (str) – URL in subversion repository

  • dir (Path) –

  • kwargs (Any) –

bin_name: str = 'hg'#

VCS app name, e.g. β€˜git’

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

List of supported schemes to register in urlparse.uses_netloc

__init__(*, url, dir, **kwargs)[source]#

A hg repository.

Parameters:
  • url (str) – URL in subversion repository

  • dir (str | PathLike[str]) –

  • kwargs (Any) –

Return type:

None

cmd: Hg#
obtain(*args, **kwargs)[source]#
Return type:

None

Parameters:
  • args (Any) –

  • kwargs (Any) –

get_revision()[source]#
Return type:

str

update_repo(*args, **kwargs)[source]#
Return type:

None

Parameters:
  • args (Any) –

  • kwargs (Any) –