imported patch filteruser.patch
authorMatt Mackall <mpm@selenic.com>
Wed, 22 Oct 2008 17:00:05 -0500
changeset 7212 402d317778d3
parent 7211 25c0dee16ee0
child 7213 b4c035057d34
imported patch filteruser.patch
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')),