Fetch all good known branches
authorAlexander Kanevskiy <kad@linux.intel.com>
Wed, 9 Oct 2013 14:45:45 +0000 (17:45 +0300)
committerAlexander Kanevskiy <kad@linux.intel.com>
Wed, 9 Oct 2013 14:45:45 +0000 (17:45 +0300)
branches [new file with mode: 0644]
scripts/fetch-gerrit-project-info.sh

diff --git a/branches b/branches
new file mode 100644 (file)
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
index 57e5c63..47b5b0a 100755 (executable)
@@ -1,8 +1,13 @@
 #!/bin/sh
 
 #!/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 \
 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
        -t -d > gerrit-project-info-`date +"%Y%m%d%H%M"`.json