qisys.worktree - Registering project paths¶
This class represent a worktree.
Register to the global list of all worktrees in ~/.config/qi/qibuild.xml
Called when an observer wants to be notified about project changes
Load the worktree.xml file.
Re-read every qiproject.xml. Useful when projects are added or removed, or when qiproject.xml change
Perform a few sanity checks
Get the dot_qi directory.
Get the path to .qi/worktree.xml
For every project in cache, re-read the subprojects and and them to the list
Get a project
- src – a absolute path, or a path relative to the worktree
- raises – Raises if project is not found
WorkTreeProjectinstance or None if raises is False and project is not found
Add a project to a worktree
Parameters: path – path to the project, can be absolute, or relative to the worktree root
Remove a project from a worktree
- path – path to the project, can be absolute, or relative to the worktree root
- from_disk – also erase project files from disk
Move a project from a worktree
Make sure the path is a POSIX path, relative to the worktree root