mercurial/commands.py
changeset 8020 777a9efdae2d
parent 8018 8985e1daa7f5
child 8021 1c2cf2e5dc9b
--- a/mercurial/commands.py	Tue Apr 07 17:42:55 2009 +0200
+++ b/mercurial/commands.py	Tue Apr 07 20:57:25 2009 +0200
@@ -1963,12 +1963,7 @@
 
             if opts['user']:
                 changes = get(rev)
-                miss = 0
-                for k in opts['user']:
-                    if k != changes[1]:
-                        miss = 1
-                        break
-                if miss:
+                if not [k for k in opts['user'] if k in changes[1]]:
                     continue
 
             copies = []