sb/reports: add sanitize parameter enabled for --mail

Adds a --sanitize option to command line for reports.py
and also for the reports.report() interface from setbuilder.py
to remove the Remotes information from git.

Closes #3887.
This commit is contained in:
Gedare Bloom
2020-04-01 22:29:31 -06:00
parent 113c65cb56
commit 4727c3e58f
2 changed files with 35 additions and 21 deletions

View File

@@ -189,7 +189,7 @@ class buildset:
outname = path.host(path.join(outpath, name))
else:
outname = None
r = reports.report(format, self.configs,
r = reports.report(format, False, self.configs,
copy.copy(opts), copy.copy(macros))
r.introduction(_build.config.file_name())
r.generate(_build.config.file_name())
@@ -199,7 +199,7 @@ class buildset:
r.write(outname)
del r
if mail:
r = reports.report('text', self.configs,
r = reports.report('text', True, self.configs,
copy.copy(opts), copy.copy(macros))
r.introduction(_build.config.file_name())
r.generate(_build.config.file_name())