From 81eb528fb4afd9892ed59eb44b1f0b1de6995e54 Mon Sep 17 00:00:00 2001 From: Alexander Kanevskiy Date: Wed, 9 Oct 2013 17:45:45 +0300 Subject: [PATCH] Fetch all good known branches --- branches | 26 ++++++++++++++++++++++++++ scripts/fetch-gerrit-project-info.sh | 11 ++++++++--- 2 files changed, 34 insertions(+), 3 deletions(-) create mode 100644 branches diff --git a/branches b/branches new file mode 100644 index 0000000..d7c8070 --- /dev/null +++ b/branches @@ -0,0 +1,26 @@ +List of official branches used in Tizen.org + +B: tizen +O: Tizen post-2.x development branch +P: Mobile +P: IVI + +B: tizen_2.2 +O: Tizen post-2.x release branch +P: Mobile + +B: tizen_2.1 +O: Tizen post-2.x release branch +P: Mobile + +B: tizen_2.0 +O: Tizen 2.0 release branch +P: Mobile + +B: upstream +C: Packaging helper branch. +C: Upstream source code + +B: pristine-tar +C: Packaging helper branch. +C: branch to keep information about pristine tarballs from upstream diff --git a/scripts/fetch-gerrit-project-info.sh b/scripts/fetch-gerrit-project-info.sh index 57e5c63..47b5b0a 100755 --- a/scripts/fetch-gerrit-project-info.sh +++ b/scripts/fetch-gerrit-project-info.sh @@ -1,8 +1,13 @@ #!/bin/sh +if [ -f 'branches' ]; then + EXTRA_BRANCHES="" + for br in `grep -E "^B: .+" branches | cut -d " " -f 2`; do + EXTRA_BRANCHES="$EXTRA_BRANCHES -b $br" + done +fi + ssh review.tizen.org -p 29418 gerrit ls-projects \ --format json -d -t --type all \ - -b tizen -b tizen_2.0 \ - -b tizen_2.1 -b tizen_2.2 \ - -b refs/meta/config -b master \ + -b refs/meta/config -b master $EXTRA_BRANCHES \ -t -d > gerrit-project-info-`date +"%Y%m%d%H%M"`.json -- 2.7.4