Commit 6e7eb82f authored by Aurélien Campéas's avatar Aurélien Campéas
Browse files

tsio/log: add filtering by author

parent 18ec1df1edb9
......@@ -198,7 +198,7 @@ class TimeSerie(object):
stats['serie names'] = [row for row, in cn.execute(sql).fetchall()]
return stats
def log(self, cn, limit=0, diff=False, names=None, fromrev=None, torev=None):
def log(self, cn, limit=0, diff=False, names=None, authors=None, fromrev=None, torev=None):
"""Build a structure showing the history of all the series in the db,
per changeset, in chronological order.
"""
......@@ -214,6 +214,9 @@ class TimeSerie(object):
if names:
sql = sql.where(reg.c.name.in_(names))
if authors:
sql = sql.where(cset.c.author.in_(authors))
if fromrev:
sql = sql.where(cset.c.id >= fromrev)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment