Commit 9c8c8d94 authored by akuegel@chromium.org's avatar akuegel@chromium.org

Don't upload correct project name anymore.

All CQ supported projects already have git mirrors. We don't
want to support svn checkouts anymore.

BUG=503847

Review URL: https://codereview.chromium.org/1213363002

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@295882 0039d316-1c4b-4281-b951-d872f2087c98
parent 0c7d94eb
......@@ -47,6 +47,9 @@ CODEREVIEW_SETTINGS = {
# we store information about changelists.
REPOSITORY_ROOT = ""
# Replacement for project name.
SWITCH_TO_GIT = "SWITCH_TO_GIT_ALREADY"
# Filename where we store repository specific information for gcl.
CODEREVIEW_SETTINGS_FILE = "codereview.settings"
CODEREVIEW_SETTINGS_FILE_NOT_FOUND = (
......@@ -879,6 +882,10 @@ def CMDupload(change_info, args):
# Uploading a new patchset.
upload_arg.append("--issue=%d" % change_info.issue)
project = GetCodeReviewSetting("PROJECT")
if project:
upload_arg.append("--project=%s" % SWITCH_TO_GIT)
if not any(i.startswith('--title') or i.startswith('-t') for i in args):
upload_arg.append('--title= ')
else:
......@@ -919,7 +926,7 @@ def CMDupload(change_info, args):
project = GetCodeReviewSetting("PROJECT")
if project:
upload_arg.append("--project=%s" % project)
upload_arg.append("--project=%s" % SWITCH_TO_GIT)
# If we have a lot of files with long paths, then we won't be able to fit
# the command to "svn diff". Instead, we generate the diff manually for
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment