trac_forcecomment /

Filename Size Date modified Message
1.4 KB
805 B
763 B

This is a simple plugin to require users to provide comments when adding changes to a wiki page.

To install, simply run "python bdist_egg". The resulting egg file will be located in the 'dist' folder after it is built. Copy this egg file to the plugins subdirectory of a trac environment, and restart your webserver to ensure that the new plugin is loaded.

To customize, add the following section to your trac.ini file, and any of the following settings (defaults are used otherwise):

[forcecomment] min_comment_length = 10 cosmetic_change_comment = "cosmetic" error_text = "Sorry, but a comment is required."

The 'cosmetic_change_comment' is a string or phrase which can be less than the minimum length, but will be accepted, since it indicates that nothing comment-worthy was changed.

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.