mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
patman: Cache the CC list from MakeCcFile() for use in ShowActions()
Currently we go through and generate the CC list for patches twice. This gets slow when (in a future CL) we add a call to get_maintainer.pl on Linux. Instead of doing things twice, just cache the CC list when it is first generated. Signed-off-by: Doug Anderson <dianders@chromium.org> Acked-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
d96ef37df7
commit
d94566a111
2 changed files with 13 additions and 6 deletions
|
@ -140,14 +140,16 @@ else:
|
|||
options.count + options.start):
|
||||
ok = False
|
||||
|
||||
cc_file = series.MakeCcFile(options.process_tags)
|
||||
|
||||
# Email the patches out (giving the user time to check / cancel)
|
||||
cmd = ''
|
||||
if ok or options.ignore_errors:
|
||||
cc_file = series.MakeCcFile(options.process_tags)
|
||||
cmd = gitutil.EmailPatches(series, cover_fname, args,
|
||||
options.dry_run, cc_file)
|
||||
os.remove(cc_file)
|
||||
|
||||
# For a dry run, just show our actions as a sanity check
|
||||
if options.dry_run:
|
||||
series.ShowActions(args, cmd, options.process_tags)
|
||||
|
||||
os.remove(cc_file)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue