toolchest.filesystem¶
- toolchest.filesystem.git.generate_gitreview(path, project, host, port, branch, remote, rebase=1)[source]¶
Write a new .gitreview file to disk.
- Parameters
path (str) – Directory where the file will be written
project (str) – Name of the project
host (str) – Gerrit host
port (str) – Port for Gerrit host
branch (str) – Git branch to use as defaultbranch
remote (str) – Git remote to use as defaultremote
rebase (int) –
- if 0, then the defaultrebase will be 0
and the changes won’t be rebased by default
- if 1, then the defaultrebase will be 1
and the changes will be rebased by default