From 45c215cba1b2e34d4b5973b98f9866ec9ab8be53 Mon Sep 17 00:00:00 2001 From: Luca Stefani Date: Sat, 14 Apr 2018 22:14:05 +0200 Subject: [PATCH] lineage-push: Convert to python Change-Id: Ib025430257ae46cd237520108f29939edde172e7 --- lineage-push/README.md | 36 ++++++++++------ lineage-push/lineage-push.py | 84 ++++++++++++++++++++++++++++++++++++ lineage-push/lineage-push.sh | 69 ----------------------------- 3 files changed, 106 insertions(+), 83 deletions(-) create mode 100755 lineage-push/lineage-push.py delete mode 100755 lineage-push/lineage-push.sh diff --git a/lineage-push/README.md b/lineage-push/README.md index 966716d..14e5f70 100644 --- a/lineage-push/README.md +++ b/lineage-push/README.md @@ -1,22 +1,30 @@ # LineageOS Push Script +``` +usage: lineage-push.py [-h] [-d] [-e] [-f] [-l LABEL] [-m] [-r REF] [-s] + [-t TOPIC] + branch + Pushes a local git repository's changes to Gerrit for code review +positional arguments: + branch upload change to branch + +optional arguments: + -h, --help show this help message and exit + -d, --draft upload change as draft + -e, --edit upload change as edit + -f, --force force push + -l LABEL, --label LABEL + assign label + -m, --merge bypass review and merge + -r REF, --ref REF push to specified ref + -s, --submit submit change + -t TOPIC, --topic TOPIC + append topic to change ``` -Usage: - ./lineage-push.sh [options] branch - - Options: - -d Upload change as draft. - -e Update change as edit. - -f Force push. - -l