swh.web.mailmap.management.commands.sync_mailmaps module#

class swh.web.mailmap.management.commands.sync_mailmaps.Command(stdout=None, stderr=None, no_color=False, force_color=False)[source]#

Bases: BaseCommand

help = 'Synchronize the mailmaps with swh.storage'#
add_arguments(parser)[source]#

Entry point for subclassed commands to add custom arguments.

disable_mailmaps(storage_db: connection, mailmaps: QuerySet)[source]#

Return the SQL to disable a set of mailmaps

refresh_mailmaps(storage_db: connection, mailmaps: QuerySet)[source]#
handle(*args, **options)[source]#

The actual logic of the command. Subclasses must implement this method.