asv.plugins.mercurial¶
Supports mercurial repositories for the benchmarked project.
Attributes¶
Classes¶
Base class for repository handlers. |
Module Contents¶
- class asv.plugins.mercurial.Hg(url, mirror_path)[source]¶
Base class for repository handlers.
There are no commands that modify the source repository.
- classmethod url_match(url)[source]¶
Returns True if the url is of the right type for this kind of repository.
- get_range_spec(commit_a, commit_b)[source]¶
Returns a formatted string giving the results between commit_a (exclusive) and commit_b (inclusive).
- get_new_range_spec(latest_result, branch=None)[source]¶
Returns a formatted string giving the results between the latest result and the newest hash in a given branch. If no branch given, use the ‘main’ branch.
- checkout(path, commit_hash)[source]¶
Check out a clean working tree from the current repository to the given path
Parameters¶
- pathstr
The local path to check out into
- commit_hashstr
The commit hash to check out
- get_hashes_from_range(range_spec, **kwargs)[source]¶
Get a list of commit hashes given a range specifier. The syntax of the range specifier will depend on the DVCS used.
- get_hash_from_name(name)[source]¶
Get a hash from a given tag, branch or hash. The acceptable syntax will depend on the DVCS used.
- get_name_from_hash(commit)[source]¶
Get a symbolic name for a commit, if it exists. The name is resolvable back to the has via get_hash_form_name. If there is no symbolic name, returns None.
- get_tags()[source]¶
Get a dict of all of the tags defined in the repo and their corresponding commit hash