|Version 1 (modified by 6 years ago) (diff),|
Provides extension for
trac-admin for easy removing unneeded milestones, components, etc.
and setting a bunch of config options from file.
trac-admin with some more commands:
component removeall <pattern>: Remove all components with a specific pattern
milestone removeall <pattern>: Remove all milestones with a specific pattern
version removeall <pattern>: Remove all versions with a specific pattern
ticket_type removeall <pattern>: Remove all ticket_types with a specific pattern
priority removeall <pattern>: Remove all priorities with a specific pattern
config setall <path/to/file>: Set all config options from file to
Pattern can have wildcards (%).
If you have any issues, create a new ticket.
Download the zipped source from [download:settingsplugin here].
Examples usage of commands:
# removes all components starting with component trac-admin </path/to/projenv> component removeall component% # removes ALL (!) versions trac-admin </path/to/projenv> version removeall % # overrides and creates all config entries from `company.ini` trac-admin </path/to/projenv> config setall company.ini
- 16398 by rjollos on 2017-03-25 09:48:50
- 16394 by rjollos on 2017-03-25 09:20:58
- 11543 by framay on 2012-05-10 08:32:26
adding additional command
attachment unused, which lists or removes unused attachments; when calling
attachment unused listthe output could be piped and afterwards opened by
OpenOffice Calcby using separator ":"
trac-admin $TRAC_ENV attachment unused list > attachments.txt trac-admin $TRAC_ENV attachment unused remove > attachments.txt
see http://trac.edgewall.org/ticket/10313 for details