Mercurial > public > mercurial-scm > hg
comparison mercurial/commands.py @ 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 | 5dbff89cf107 |
children | 15ca4bfecfe3 |
comparison
equal
deleted
inserted
replaced
12862:9d6adddc8eea | 12863:60d9692921ea |
---|---|
2495 return | 2495 return |
2496 if opts.get('branch') and ctx.branch() not in opts['branch']: | 2496 if opts.get('branch') and ctx.branch() not in opts['branch']: |
2497 return | 2497 return |
2498 if df and not df(ctx.date()[0]): | 2498 if df and not df(ctx.date()[0]): |
2499 return | 2499 return |
2500 if opts['user'] and not [k for k in opts['user'] if k in ctx.user()]: | 2500 if opts['user'] and not [k for k in opts['user'] |
2501 if k.lower() in ctx.user().lower()]: | |
2501 return | 2502 return |
2502 if opts.get('keyword'): | 2503 if opts.get('keyword'): |
2503 for k in [kw.lower() for kw in opts['keyword']]: | 2504 for k in [kw.lower() for kw in opts['keyword']]: |
2504 if (k in ctx.user().lower() or | 2505 if (k in ctx.user().lower() or |
2505 k in ctx.description().lower() or | 2506 k in ctx.description().lower() or |