log: make keyword search truly case-insensitive
authorTK Soh <teekaysoh@yahoo.com>
Tue, 18 Oct 2005 20:06:05 -0700
changeset 1404 67e20e27d8df
parent 1403 bc3e66edb04c
child 1405 6fd6527f95eb
log: make keyword search truly case-insensitive
mercurial/commands.py
--- 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()):