Fix incompatibility with gerrit 2.8

This change updates the gerrit hook scripts to be compatible with gerrit version 2.8

Closes-Bug: #1273947
Partial-Bug: #1082781

Change-Id: I529bb9fbded16ccafb020b4edc9eb2d5e641cbc7
Fix misspellings in jeepyb

Fix misspellings detected by:
* pip install misspellings
* git ls-files | grep -v locale | misspellings -f -

Change-Id: Id3764d3645f1fd9f9dd2af74ec1f2416e66bdcca
Closes-Bug: #1257295
Correct create-cgitrepos projects.yaml versioning

* jeepyb/cmd/create_cgitrepos.py: For backwards compatibility, the
number of YAML documents in the YAML file tells us where to look.
Just always use the last one.

Change-Id: Iffb0a88273dee0abc42664a891ca8ef28a9fc7fb
Allow welcome-message to configure logging

As-was it was basically a no-op except that it output a warning
message about not being able to find a logger.

Change-Id: Ia69d55f13d8f77aa93326757229fda8ca4d7cd9a
Merge "Fix incompatibility with gerrit 2.8"
Merge "Allow welcome-message to configure logging"
Rename Openstack to OpenStack

Change-Id: I5c31c4575be460d733d569242d25687069c7674f
Merge "Rename Openstack to OpenStack"
Change manage-projects verbose logging to info

Changes manage-projects verbose logging to info from debug.
Adds a new cli option debug for logging at the debug level.

Change-Id: Ib94e1751aa49cb660c601fdfc3cd0778b8cac748
Fix docimpact_target project selection

I6c9a9f3f42b3a9eff33ca0522b9f23f058131433 introduced the ability to
map docimpact's to different launchpad projects but unfortunately
didn't select the correct project out of the YAML mapping.

Change-Id: If824aa429d4cf82eda474d9ff99b46d713b6af0f
Remove hardcoded direct-release project list

The direct-release option was already moved to the projects.yaml (thanks
for Monty - Id6d25b3f806d2173d53cb06fc4ee45669c645737), so, we can remove
it from jeepyb.

Change-Id: I3894065ae08304abafaad657fbf9fd25824fcd02
Don't split the initial branch list on all whitespace

If there is an explicit upstream HEAD pointing at master, the
"if -> in branch" is supposed to filter it out. Unfortunately,
because split() does all whitespace, we actually lose the -> in
the line so we can't exclude those lines.

Instead, split first on newlines explicitly. Then do the filter on
content. Then, when we're happy it's a good target, split on
whitespace.

Change-Id: I2ed39570eb26a0c7f1fa1f7381c1e14217c981bb
Merge "Fix misspellings in jeepyb"
Keep py3.X compatibility for urllib

Use six.moves.urllib instead of urllib

Partial-Bug: #1280105

Change-Id: Ieace55f7ca0189e40f268a43431ce63130e267be
Make welcome-message --verbose work like -v

Change-Id: I0455eef17d07c6918a667cfa94675494e68b6e26
Merge "Remove hardcoded direct-release project list"
Merge "Don't split the initial branch list on all whitespace"
Poll manage projects config fetches.

Retry every 2 seconds when fetching the refs/meta/config ref from gerrit
on new projects.

Change-Id: I5942396fb8dbede167f86e48aff6e8ec17eee282
Only add upstream remotes if we track upstream

Current runs fetch remote refs every time. This is because they were
not paying attention to the track-upstream config option in
the code where they add a git remote. This made the subsequent
git remote update command do way too much work.

Only have an upstream remote if we need one - and remove it if
we are configured to not need one.

Change-Id: Iff1bb2ddce3ec27d19fbbc246a5a3af26bceff29
Merge "Change manage-projects verbose logging to info"