Commit c22ea4bc authored by cmp@chromium.org's avatar cmp@chromium.org

Make repos without VIEW_VC also post Committed to the codereview.

R=maruel@chromium.org
BUG=153446


Review URL: https://chromiumcodereview.appspot.com/11094033

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@160960 0039d316-1c4b-4281-b951-d872f2087c98
parent 270db5c2
......@@ -1033,8 +1033,10 @@ def CMDcommit(change_info, args):
re.DOTALL).match(output).group(1)
viewvc_url = gclient_utils.UpgradeToHttps(GetCodeReviewSetting('VIEW_VC'))
change_info.description += '\n'
if viewvc_url:
if viewvc_url and revision:
change_info.description += "\nCommitted: " + viewvc_url + revision
elif revision:
change_info.description += "\nCommitted: " + revision
change_info.CloseIssue()
return 0
......
......@@ -1384,6 +1384,8 @@ def SendUpstream(parser, args, cmd):
viewvc_url = settings.GetViewVCUrl()
if viewvc_url and revision:
cl.description += ('\n\nCommitted: ' + viewvc_url + revision)
elif revision:
cl.description += ('\n\nCommitted: ' + revision)
print ('Closing issue '
'(you may be prompted for your codereview password)...')
cl.CloseIssue()
......
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