]> Cypherpunks repositories - gostls13.git/commitdiff
codereview: convert email address from Rietveld to lower case
authorRuss Cox <rsc@golang.org>
Sun, 12 Sep 2010 03:42:29 +0000 (23:42 -0400)
committerRuss Cox <rsc@golang.org>
Sun, 12 Sep 2010 03:42:29 +0000 (23:42 -0400)
before looking for it in the CONTRIBUTORS file

R=r
CC=golang-dev
https://golang.org/cl/1883049

lib/codereview/codereview.py

index ba1a6fb108bbff278f25ac5422d3738064df0c13..d87a7b3f21d9828c046aec13bdc82e1c4ae7d6fd 100644 (file)
@@ -1102,9 +1102,10 @@ def CheckContributor(ui, repo, user=None):
        return userline
 
 def FindContributor(ui, repo, user, warn=True):
+       user = user.lower()
        m = re.match(r".*<(.*)>", user)
        if m:
-               user = m.group(1).lower()
+               user = m.group(1)
 
        if user not in contributors:
                if warn: