Rename review.openstack.org to review.opendev.org
There are many references to review.openstack.org, and while the redirect should work, we can also go ahead and fix them. Change-Id: I28f398796a6392a3dffea1d25cfe2ae3a36a3589
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
These are the scripts used to create the ATC lists for use in PTL
|
||||
elections and Summit invitations.
|
||||
|
||||
1) Run the following queries on review.openstack.org:
|
||||
1) Run the following queries on review.opendev.org:
|
||||
|
||||
sudo -H mysql -e 'SELECT * FROM accounts;' reviewdb > accounts.tab
|
||||
sudo -H mysql -e 'SELECT * FROM account_external_ids;' reviewdb > emails.tab
|
||||
|
||||
@@ -102,7 +102,7 @@ def repo_stats(repo, output, begin, end, keyfile, user):
|
||||
client.set_missing_host_key_policy(paramiko.AutoAddPolicy())
|
||||
client.load_system_host_keys()
|
||||
client.connect(
|
||||
'review.openstack.org', port=29418,
|
||||
'review.opendev.org', port=29418,
|
||||
key_filename=os.path.expanduser(keyfile), username=user)
|
||||
stdin, stdout, stderr = client.exec_command(
|
||||
'gerrit query %s --all-approvals --format JSON' % QUERY)
|
||||
@@ -166,7 +166,7 @@ def get_repos(url, keyfile, user):
|
||||
client.set_missing_host_key_policy(paramiko.AutoAddPolicy())
|
||||
client.load_system_host_keys()
|
||||
client.connect(
|
||||
'review.openstack.org', port=29418,
|
||||
'review.opendev.org', port=29418,
|
||||
key_filename=os.path.expanduser(keyfile), username=user)
|
||||
stdin, stdout, stderr = client.exec_command('gerrit ls-projects')
|
||||
gerrit_repos = [x.strip() for x in stdout]
|
||||
|
||||
@@ -47,11 +47,11 @@ mysql -u$DB_USER -p$DB_PASS reviewdb -e "DELETE FROM submodule_subscriptions WHE
|
||||
# name in steps 5, 6 and 8:
|
||||
# https://etherpad.openstack.org/p/project-renames-November-6-2015
|
||||
|
||||
# 5. Update the database on review.openstack.org
|
||||
# 5. Update the database on review.opendev.org
|
||||
mysql -u$DB_USER -p$DB_PASS reviewdb -e "update account_project_watches set project_name='openstack-attic/akanda' where project_name='openstack-attic/akanada';"
|
||||
mysql -u$DB_USER -p$DB_PASS reviewdb -e "update changes set dest_project_name='openstack-attic/akanda', created_on=created_on where dest_project_name='openstack-attic/akanada';"
|
||||
|
||||
# 6. Move both the Git repository and the mirror on review.openstack.org
|
||||
# 6. Move both the Git repository and the mirror on review.opendev.org
|
||||
sudo mv ~gerrit2/review_site/git/{openstack-attic/akanada,openstack-attic/akanda}.git
|
||||
sudo mv /opt/lib/git/{openstack-attic/akanada,openstack-attic/akanda}.git
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
# useful when you need to determine the LP account associated with a
|
||||
# login.launchpad.net OpenId. Pass the OpenId URL in question as the
|
||||
# only command-line parameter, and run this in the gerrit2 homedir on
|
||||
# review.openstack.org (or hack it to use your own LP API key instead).
|
||||
# review.opendev.org (or hack it to use your own LP API key instead).
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
# official governance project-team (or "all") ending with a .yaml
|
||||
# extension. At the time of writing, it takes approximately 30
|
||||
# minutes to run on a well-connected machine with 70-80ms round-trip
|
||||
# latency to review.openstack.org.
|
||||
# latency to review.opendev.org.
|
||||
|
||||
# An example for generating the March 2016 technical election rolls:
|
||||
#
|
||||
@@ -190,7 +190,7 @@ def query_gerrit(method, params={}):
|
||||
"""Query the Gerrit REST API"""
|
||||
|
||||
# The base URL to Gerrit REST API
|
||||
GERRIT_API_URL = 'https://review.openstack.org/'
|
||||
GERRIT_API_URL = 'https://review.opendev.org/'
|
||||
|
||||
raw = requester(GERRIT_API_URL + method, params=params,
|
||||
headers={'Accept': 'application/json'})
|
||||
@@ -228,11 +228,11 @@ def lookup_member(email):
|
||||
def usage(argv):
|
||||
"""Parse command line argument"""
|
||||
parser = argparse.ArgumentParser(
|
||||
description="When run using OpenStack's Gerrit server, this builds "
|
||||
description="When run using OpenDev's Gerrit server, this builds "
|
||||
"YAML representations of aggregate change owner details and change "
|
||||
"counts for each governance project-team, as well as a combined set "
|
||||
"for all teams. Before and after dates/times should be supplied in "
|
||||
"formats Gerrit accepts: https://review.openstack.org/Documentation/"
|
||||
"formats Gerrit accepts: https://review.opendev.org/Documentation/"
|
||||
"user-search.html#search-operators")
|
||||
parser.add_argument("-a", "--after", help="Start date for matching merges")
|
||||
parser.add_argument("-b", "--before", help="End date for matching merges")
|
||||
|
||||
@@ -29,13 +29,13 @@
|
||||
# without needing to request it.
|
||||
|
||||
# Use: This needs your Gerrit username passed as the command-line
|
||||
# parameter, found at https://review.openstack.org/#/settings/ when
|
||||
# parameter, found at https://review.opendev.org/#/settings/ when
|
||||
# authenticated in the WebUI. It also prompts for an HTTP password
|
||||
# which https://review.openstack.org/#/settings/http-password will
|
||||
# which https://review.opendev.org/#/settings/http-password will
|
||||
# allow you to generate. The results end up in files named
|
||||
# approvers.json and approvers.yaml. At the time of writing, it
|
||||
# takes approximately 6.5 minutes to run on a well-connected machine
|
||||
# with 70-80ms round-trip latency to review.openstack.org.
|
||||
# with 70-80ms round-trip latency to review.opendev.org.
|
||||
|
||||
# Example:
|
||||
#
|
||||
@@ -84,7 +84,7 @@ import sys
|
||||
import requests
|
||||
import yaml
|
||||
|
||||
gerrit_url = 'https://review.openstack.org/'
|
||||
gerrit_url = 'https://review.opendev.org/'
|
||||
try:
|
||||
gerrit_auth = requests.auth.HTTPDigestAuth(sys.argv[1], getpass.getpass())
|
||||
except IndexError:
|
||||
|
||||
Reference in New Issue
Block a user