changeset 12863:60d9692921ea stable

log: do case insensitive search for --user option
author Gilles Moris <gilles.moris@free.fr>
date Wed, 20 Oct 2010 15:32:35 +0200
parents 9d6adddc8eea
children ef0b8b1bcd63
files mercurial/commands.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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']]: