easybuild.tools.repository.hgrepo module¶
Repository tools
Mercurial repository
Authors:
- Stijn De Weirdt (Ghent University)
- Dries Verdegem (Ghent University)
- Kenneth Hoste (Ghent University)
- Pieter De Baets (Ghent University)
- Jens Timmerman (Ghent University)
- Toon Willems (Ghent University)
- Ward Poelmans (Ghent University)
- Fotis Georgatos (University of Luxembourg)
- Cedric Clerget (University of Franche-Comte)
-
class
easybuild.tools.repository.hgrepo.HgRepository(*args)¶ Bases:
easybuild.tools.repository.filerepo.FileRepositoryClass for hg repositories.
-
DESCRIPTION= "A non-empty mercurial repository (created with 'hg init' or 'hg clone'). The 1st argument contains the mercurial repository location, which can be a directory or an URL. The 2nd argument is ignored."¶
-
USABLE= False¶
-
add_easyconfig(cfg, name, version, stats, previous_stats)¶ Add easyconfig to Mercurial repository
Parameters: - cfg – location of easyconfig file
- name – software name
- version – software install version, incl. toolchain & versionsuffix
- stats – build stats, to add to archived easyconfig
- previous_stats – list of previous build stats
Returns: location of archived easyconfig
-
add_patch(patch, name)¶ Add patch to Mercurial repository
Parameters: - patch – location of patch file
- name – software name
Returns: location of archived patch
-
cleanup()¶ Clean up mercurial working copy.
-
commit(msg=None)¶ Commit working copy to mercurial repository
-
create_working_copy()¶ Create mercurial working copy.
-
setup_repo()¶ Set up mercurial repository.
-
stage_file(path)¶ Stage file at specified location in repository for commit
Parameters: path – location of file to stage
-