First pass at tool to list gerrits included in a karaf distribution 59/50459/4
authorSam Hague <shague@redhat.com>
Fri, 13 Jan 2017 22:43:10 +0000 (17:43 -0500)
committerSam Hague <shague@redhat.com>
Mon, 16 Jan 2017 19:58:00 +0000 (14:58 -0500)
commita5e50bef610aa13c07dcd00bf9329f6177cb9cbf
tree2674b9b943036eae39bde2add3dfdb70d21672bb
parentda3d03368e1ce858201f5c018a594c53919d8665
First pass at tool to list gerrits included in a karaf distribution

The usage is shown below. The tool will use the following defaults:
Using these options: branch: master, limit: 10, qlimit: 50
remote_url: ssh://git.opendaylight.org:29418
distro_path: /tmp/distribution-karaf
projects: ['genius', 'mdsal', 'netvirt', 'neutron', 'openflowjava', 'openflowplugin', 'ovsdb', 'yangtools']

This can only be used on master right now because it relies on having a git.properties
file in the jar's.

usage: changes.py [-h] [-b BRANCH] [-d DISTRO_PATH] [-l LIMIT] [-p PROJECTS]
                  [-q QLIMIT] [-r REMOTE_URL] [-v] [--license] [-V]

optional arguments:
  -h, --help            show this help message and exit
  -b BRANCH, --branch BRANCH
                        git branch for patch under test
  -d DISTRO_PATH, --distro-path DISTRO_PATH
                        path to the expanded distribution, i.e. /tmp
                        /distribution-karaf
  -l LIMIT, --limit LIMIT
                        number of gerrits to return
  -p PROJECTS, --projects PROJECTS
                        list of projects to include in output
  -q QLIMIT, --query-limit QLIMIT
                        number of gerrits to search
  -r REMOTE_URL, --remote REMOTE_URL
                        git remote url to use for gerrit
  -v, --verbose         Output more information about what's going on
  --license             Print the license and exit
  -V, --version         show program's version number and exit

Change-Id: Id2500eae47a1550f60ba07ae9eca92a6ae5b0439
Signed-off-by: Sam Hague <shague@redhat.com>
tools/distchanges/changes.py [new file with mode: 0644]
tools/distchanges/gerritquery.py [new file with mode: 0644]
tools/distchanges/tests/resources/changes.genius.10.json.txt [new file with mode: 0644]
tools/distchanges/tests/resources/changes.netvirt.10.json.txt [new file with mode: 0644]
tools/distchanges/tests/resources/git.properties.netvirt [new file with mode: 0644]
tools/distchanges/tests/resources/git.properties.openflowjava [new file with mode: 0644]
tools/distchanges/tests/resources/git.properties.openflowplugin [new file with mode: 0644]
tools/distchanges/tests/test_changes.py [new file with mode: 0644]
tools/distchanges/tests/test_changes_old.py.old [new file with mode: 0644]