@ -59,7 +59,6 @@ import split_cl
import subcommand
import subcommand
import subprocess2
import subprocess2
import swift_format
import swift_format
import watchlists
__version__ = ' 2.0 '
__version__ = ' 2.0 '
@ -2009,9 +2008,6 @@ class Changelist(object):
files = self . GetAffectedFiles ( parent , end_commit = end_commit )
files = self . GetAffectedFiles ( parent , end_commit = end_commit )
change_desc = self . _GetDescriptionForUpload ( options ,
change_desc = self . _GetDescriptionForUpload ( options ,
[ parent , end_commit ] , files )
[ parent , end_commit ] , files )
watchlist = watchlists . Watchlists ( settings . GetRoot ( ) )
self . ExtendCC ( watchlist . GetWatchersForPaths ( files ) )
if not options . bypass_hooks :
if not options . bypass_hooks :
hook_results = self . RunHook ( committing = False ,
hook_results = self . RunHook ( committing = False ,
may_prompt = not options . force ,
may_prompt = not options . force ,
@ -2121,12 +2117,7 @@ class Changelist(object):
print ( f ' Processing { _GetCommitCountSummary ( * git_diff_args ) } ... ' )
print ( f ' Processing { _GetCommitCountSummary ( * git_diff_args ) } ... ' )
# Apply watchlists on upload.
watchlist = watchlists . Watchlists ( settings . GetRoot ( ) )
files = self . GetAffectedFiles ( base_branch )
files = self . GetAffectedFiles ( base_branch )
if not options . bypass_watchlists :
self . ExtendCC ( watchlist . GetWatchersForPaths ( files ) )
change_desc = self . _GetDescriptionForUpload ( options , git_diff_args ,
change_desc = self . _GetDescriptionForUpload ( options , git_diff_args ,
files )
files )
if not options . bypass_hooks :
if not options . bypass_hooks :
@ -4847,7 +4838,8 @@ def CMDupload(parser, args):
parser . add_option ( ' --bypass-watchlists ' ,
parser . add_option ( ' --bypass-watchlists ' ,
action = ' store_true ' ,
action = ' store_true ' ,
dest = ' bypass_watchlists ' ,
dest = ' bypass_watchlists ' ,
help = ' bypass watchlists auto CC-ing reviewers ' )
help = ' DEPRECATED: bypass watchlists auto CC-ing '
' reviewers. This no longer has any effect. ' )
parser . add_option ( ' -f ' ,
parser . add_option ( ' -f ' ,
' --force ' ,
' --force ' ,
action = ' store_true ' ,
action = ' store_true ' ,
@ -5037,6 +5029,9 @@ def CMDupload(parser, args):
if options . skip_title and options . title :
if options . skip_title and options . title :
parser . error ( ' Only one of --title and --skip-title allowed. ' )
parser . error ( ' Only one of --title and --skip-title allowed. ' )
if options . bypass_watchlists :
print ( ' The --bypass-watchlists flag is deprecated and has no effect. ' )
if options . use_commit_queue :
if options . use_commit_queue :
options . send_mail = True
options . send_mail = True