changeset 7212:402d317778d3

imported patch filteruser.patch
author Matt Mackall <mpm@selenic.com>
date Wed, 22 Oct 2008 17:00:05 -0500
parents 25c0dee16ee0
children b4c035057d34
files mercurial/commands.py
diffstat 1 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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')),