a command line tool to easily clone gerrit repositories in bulk.
Project description
gerrit-sync
A command line tool to easily clone gerrit repositories in bulk.
installation
To install run the following command in your terminal:
pip3 install gerrit-sync
usage
If you just want to see which commands will be run, use:
gerrit-sync --gerrit-user myuser --gerrit-url https://gerrit.mydomain.com --dry-run
If you want the actual commands to be run, use:
gerrit-sync --gerrit-user myuser --gerrit-url https://gerrit.mydomain.com
All arguments:
usage: gerrit-sync [-h] [--gerrit-user GERRIT_USER]
[--gerrit-password GERRIT_PASSWORD]
[--gerrit-url GERRIT_URL] [--filter FILTER] [--dry-run]
[--log-level {error,info,debug}]
gerrit-sync
optional arguments:
-h, --help show this help message and exit
--gerrit-user GERRIT_USER
Username for access to gerrit API. If not provided via
this argument or the environment variable GERRIT_USER,
it will be asked via the command prompt.
--gerrit-password GERRIT_PASSWORD
** Password for access to gerrit API. If not provided
via this argument or the environment variable
GERRIT_PASSWORD, it will be asked via the command
prompt. ** WARNING **: Providing the password via the
command line argument is not recommended due to the
risk of your password being recorded in your shell
history.
--gerrit-url GERRIT_URL
Base URL of the gerrit API. If not provided via this
argument or the environment variable GERRIT_URL, it
will be asked via the command prompt. example:
https://gerrit.mydomain.com
--filter FILTER A regular expression to filter project names. If not
provided, projects are not filtered.
--dry-run If specified, just display the operations to be done
but do not perform them.
--log-level {error,info,debug}
development
To avoid reinstalling the project during development, the package can be directly run from repository root directory for development purposes with command python3 -m gerrit_sync.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gerrit-sync-0.23.tar.gz.
File metadata
- Download URL: gerrit-sync-0.23.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
544012c45eb43f243a9b55598af5b10c8a86669563b5f3e5e7ab703816275dcc
|
|
| MD5 |
590c8cda820f5839f80ff52adb2e0061
|
|
| BLAKE2b-256 |
a18ccda7684d29ebfe62d031abbe06e5159568deae0e87dd8647aa62cacc5173
|
File details
Details for the file gerrit_sync-0.23-py3-none-any.whl.
File metadata
- Download URL: gerrit_sync-0.23-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a6f279b28dbc0897ad809600441fba2646eb85c311ff0308e1e17d43cf6ddbe7
|
|
| MD5 |
a4c014589209f8c0a095bd6d12d5c4be
|
|
| BLAKE2b-256 |
83cfed410e269948a5ffb5ed57dbb3e071c069b0d8c8622525bd692bb23ff8f2
|