Add ability to point to local rietveld.
Review URL: https://codereview.chromium.org/106043002
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/commit-queue@238860 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/commit_queue.py b/commit_queue.py
index 4f8b9ca..8bb63ac 100755
--- a/commit_queue.py
+++ b/commit_queue.py
@@ -198,6 +198,10 @@
'--user',
default='[email protected]',
help='User to use instead of %default')
+ parser.add_option(
+ '--rietveld',
+ default='https://codereview.chromium.org',
+ help='Rietveld server to use instead of %default')
options, args = parser.parse_args()
if args:
parser.error('Unsupported args: %s' % args)
@@ -212,7 +216,7 @@
checkout.SvnMixIn.svn_config = checkout.SvnConfig(
os.path.join(ROOT_DIR, 'subversion_config'))
- url = 'https://codereview.chromium.org'
+ url = options.rietveld
gaia_creds = creds.Credentials(os.path.join(work_dir, '.gaia_pwd'))
if options.dry_run:
logging.debug('Dry run - skipping SCM check.')