Skip to content

hgrepo

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)

HgRepository

Bases: FileRepository

Class for hg repositories.

__init__(*args)

Initialize mercurial client to None (will be set later) All the real logic is in the setup_repo and create_working_copy methods

add_easyconfig(cfg, name, version, stats, previous_stats)

Add easyconfig to Mercurial repository

PARAMETER DESCRIPTION
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 DESCRIPTION

location of archived easyconfig

add_patch(patch, name)

Add patch to Mercurial repository

PARAMETER DESCRIPTION
patch

location of patch file

name

software name

RETURNS DESCRIPTION

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

PARAMETER DESCRIPTION
path

location of file to stage