Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(74)

Side by Side Diff: gcl.py

Issue 24257014: Ignore CC_LIST when private flag is specified. (Closed) Base URL: http://src.chromium.org/svn/trunk/tools/depot_tools/
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """\ 6 """\
7 Wrapper script around Rietveld's upload.py that simplifies working with groups 7 Wrapper script around Rietveld's upload.py that simplifies working with groups
8 of files. 8 of files.
9 """ 9 """
10 10
(...skipping 860 matching lines...) Expand 10 before | Expand all | Expand 10 after
871 os.write(handle, change_info.description) 871 os.write(handle, change_info.description)
872 os.close(handle) 872 os.close(handle)
873 873
874 # Watchlist processing -- CC people interested in this changeset 874 # Watchlist processing -- CC people interested in this changeset
875 # http://dev.chromium.org/developers/contributing-code/watchlists 875 # http://dev.chromium.org/developers/contributing-code/watchlists
876 if not no_watchlists: 876 if not no_watchlists:
877 import watchlists 877 import watchlists
878 watchlist = watchlists.Watchlists(change_info.GetLocalRoot()) 878 watchlist = watchlists.Watchlists(change_info.GetLocalRoot())
879 watchers = watchlist.GetWatchersForPaths(change_info.GetFileNames()) 879 watchers = watchlist.GetWatchersForPaths(change_info.GetFileNames())
880 880
881 cc_list = GetCodeReviewSetting("CC_LIST") 881 if "--private" in upload_arg:
882 # We check this before getting "PRIVATE" setting assuming that the
883 # author of the settings file has put addresses which we can send
884 # private CLs to.
885 Warn("WARNING: CC_LIST is ignored since private flag is specified. "
886 "You need to review and add it manually.")
887 cc_list = ""
iannucci 2013/09/24 18:52:54 Could you do the same change for git_cl as well?
tyoshino (SeeGerritForStatus) 2013/09/25 05:10:01 Done.
888 else:
889 cc_list = GetCodeReviewSetting("CC_LIST")
882 if not no_watchlists and watchers: 890 if not no_watchlists and watchers:
883 # Filter out all empty elements and join by ',' 891 # Filter out all empty elements and join by ','
884 cc_list = ','.join(filter(None, [cc_list] + watchers)) 892 cc_list = ','.join(filter(None, [cc_list] + watchers))
885 if cc_list: 893 if cc_list:
886 upload_arg.append("--cc=" + cc_list) 894 upload_arg.append("--cc=" + cc_list)
887 upload_arg.append("--file=%s" % desc_file) 895 upload_arg.append("--file=%s" % desc_file)
888 896
889 if GetCodeReviewSetting("PRIVATE") == "True": 897 if GetCodeReviewSetting("PRIVATE") == "True":
890 upload_arg.append("--private") 898 upload_arg.append("--private")
891 899
(...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after
1467 raise 1475 raise
1468 print >> sys.stderr, ( 1476 print >> sys.stderr, (
1469 'AppEngine is misbehaving and returned HTTP %d, again. Keep faith ' 1477 'AppEngine is misbehaving and returned HTTP %d, again. Keep faith '
1470 'and retry or visit go/isgaeup.\n%s') % (e.code, str(e)) 1478 'and retry or visit go/isgaeup.\n%s') % (e.code, str(e))
1471 return 1 1479 return 1
1472 1480
1473 1481
1474 if __name__ == "__main__": 1482 if __name__ == "__main__":
1475 fix_encoding.fix_encoding() 1483 fix_encoding.fix_encoding()
1476 sys.exit(main(sys.argv[1:])) 1484 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698