qisrc.manifest – Parsing manifest files

Set of tools to parse qisrc manifests

qisrc.manifest.Manifest

class qisrc.manifest.Manifest(manifest_xml)
change_config(func)

Decorator for every function that changes the configuration

load()

(re)-parse the xml configuration file

set_remote(repo, remote_name)

Set the remote of a repo from the list. Assume all the remotes have already been read

dump()

write the xml configuration file

get_repos(groups=None)

Get the repositories inside the given group Retrun all repositories when no group is given

get_repo(project)

Get a repository given the project name (foo/bar.git)

get_remote(name)

Get a remote given the name

add_remote(*args, **kwargs)

Add a new remote to the manifest.

add_repo(*args, **kwargs)

Add a new repo to the manifest.

remove_repo(*args, **kwargs)

Remove a repo from the manifest

configure_group(*args, **kwargs)

Configure a group

qisrc.manifest.RepoConfig

class qisrc.manifest.RepoConfig
remote

a Remote object

src

the relative path where this repository should be cloned in the worktree

project

the name of the git project, the full url will be computed by joining the remote url and the project name

default_branch

the default branch of this project. Should match a branch in the remote

review

wether the project is under code review. Set during parsing