# HG changeset patch # User Matt Mackall # Date 1224712805 18000 # Node ID 402d317778d31fb4e4ca36d0c7b19950bc733deb # Parent 25c0dee16ee07096c5db92d3ba54a618ae95693d imported patch filteruser.patch diff -r 25c0dee16ee0 -r 402d317778d3 mercurial/commands.py --- a/mercurial/commands.py Wed Oct 22 15:41:32 2008 -0500 +++ b/mercurial/commands.py Wed Oct 22 17:00:05 2008 -0500 @@ -1862,6 +1862,16 @@ if miss: continue + if opts['user']: + changes = get(rev) + miss = 0 + for k in opts['user']: + if k != changes[1]: + miss = 1 + break + if miss: + continue + copies = [] if opts.get('copies') and rev: for fn in get(rev)[3]: @@ -3184,6 +3194,7 @@ ('r', 'rev', [], _('show the specified revision or range')), ('', 'removed', None, _('include revs where files were removed')), ('m', 'only-merges', None, _('show only merges')), + ('u', 'user', [], _('revs committed by user')), ('b', 'only-branch', [], _('show only changesets within the given named branch')), ('P', 'prune', [], _('do not display revision or any of its ancestors')),