log: do case insensitive search for --user option stable
authorGilles Moris <gilles.moris@free.fr>
Wed, 20 Oct 2010 15:32:35 +0200
branchstable
changeset 12863 60d9692921ea
parent 12862 9d6adddc8eea
child 12864 ef0b8b1bcd63
log: do case insensitive search for --user option
mercurial/commands.py
--- a/mercurial/commands.py	Tue Oct 26 14:41:58 2010 +0300
+++ b/mercurial/commands.py	Wed Oct 20 15:32:35 2010 +0200
@@ -2497,7 +2497,8 @@
             return
         if df and not df(ctx.date()[0]):
             return
-        if opts['user'] and not [k for k in opts['user'] if k in ctx.user()]:
+        if opts['user'] and not [k for k in opts['user']
+                                 if k.lower() in ctx.user().lower()]:
             return
         if opts.get('keyword'):
             for k in [kw.lower() for kw in opts['keyword']]: