changeset 1404:67e20e27d8df

log: make keyword search truly case-insensitive
author TK Soh <teekaysoh@yahoo.com>
date Tue, 18 Oct 2005 20:06:05 -0700
parents bc3e66edb04c
children 6fd6527f95eb
files mercurial/commands.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/commands.py	Tue Oct 18 20:05:54 2005 -0700
+++ b/mercurial/commands.py	Tue Oct 18 20:06:05 2005 -0700
@@ -1280,7 +1280,7 @@
             if opts['keyword']:
                 changes = repo.changelog.read(repo.changelog.node(rev))
                 miss = 0
-                for k in opts['keyword']:
+                for k in [kw.lower() for kw in opts['keyword']]:
                     if not (k in changes[1].lower() or
                             k in changes[4].lower() or
                             k in " ".join(changes[3][:20]).lower()):