#38: Wiki edit event collapsing
-------------------------+--------------------------------------------------
Reporter: daniel | Owner: cboos
Type: enhancement | Status: assigned
Priority: normal | Milestone: 1.0
Component: timeline | Version: devel
Severity: normal | Resolution:
Keywords: |
-------------------------+--------------------------------------------------
Comment (by cboos):
Implementation of the above idea is trivial:
{{{
#!diff
Index: trac/wiki/web_ui.py
===================================================================
--- trac/wiki/web_ui.py (revision 2970)
+++ trac/wiki/web_ui.py (working copy)
@@ -137,6 +137,8 @@
"FROM wiki WHERE time>=%s AND time<=%s",
(start, stop))
for t,name,comment,author in cursor:
+ if comment.startswith('minor edit'):
+ continue
title = Markup('<em>%s</em> edited by %s', name, author)
if format == 'rss':
href = self.env.abs_href.wiki(name)
@@ -286,7 +288,8 @@
page.readonly = req.args.has_key('readonly')
author = req.args.get('author', get_reporter_id(req))
- comment = req.args.get('comment', '')
+ comment = req.args.get('comment',
+ "minor edit (won't appear in the
timeline)")
editrows = req.args.get('editrows')
if editrows:
pref = req.session.get('wiki_editrows', '20')
}}}
--
Ticket URL: <http://projects.edgewall.com/trac/ticket/38>
The Trac Project <http://trac.edgewall.com/>
_______________________________________________
Trac-Tickets mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac-tickets