Changeset 94993 in webkit
- Timestamp:
- Sep 12, 2011 5:07:52 PM (13 years ago)
- Location:
- trunk/Tools
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r94990 r94993 1 2011-09-12 Eric Seidel <eric@webkit.org> 2 3 sheriffbot whois is case sensitive 4 https://bugs.webkit.org/show_bug.cgi?id=67972 5 6 Reviewed by Adam Barth. 7 8 I also fixed a typo in the "More than 5 contributors" message 9 from my previous commit. 10 11 * Scripts/webkitpy/common/config/committers.py: 12 * Scripts/webkitpy/common/config/committers_unittest.py: 13 * Scripts/webkitpy/tool/bot/irc_command.py: 14 * Scripts/webkitpy/tool/bot/irc_command_unittest.py: 15 1 16 2011-09-12 Eric Seidel <eric@webkit.org> 2 17 -
trunk/Tools/Scripts/webkitpy/common/config/committers.py
r94990 r94993 52 52 return '"%s" <%s>' % (self.full_name, self.emails[0]) 53 53 54 def contains_string(self, string): 55 if string in self.full_name: 54 def contains_string(self, search_string): 55 string = search_string.lower() 56 if string in self.full_name.lower(): 56 57 return True 57 if self.irc_nickname and string in self.irc_nickname :58 if self.irc_nickname and string in self.irc_nickname.lower(): 58 59 return True 59 60 for email in self.emails: 60 if string in email :61 if string in email.lower(): 61 62 return True 62 63 return False -
trunk/Tools/Scripts/webkitpy/common/config/committers_unittest.py
r85065 r94993 31 31 32 32 class CommittersTest(unittest.TestCase): 33 34 33 def test_committer_lookup(self): 35 34 committer = Committer('Test One', 'one@test.com', 'one') … … 76 75 self.assertEqual(committer_list.committers(), [committer, reviewer]) 77 76 self.assertEqual(committer_list.reviewers(), [reviewer]) 77 78 self.assertEqual(committer_list.contributors_by_search_string('test'), [contributor, committer, reviewer]) 79 self.assertEqual(committer_list.contributors_by_search_string('rad'), [reviewer]) 80 self.assertEqual(committer_list.contributors_by_search_string('Two'), [reviewer]) -
trunk/Tools/Scripts/webkitpy/tool/bot/irc_command.py
r94990 r94993 187 187 return "%s: Sorry, I don't know any contributors matching '%s'." % (nick, search_string) 188 188 if len(contributors) > 5: 189 return " More than 5 contributors match '%s', can you be more specific?"189 return "%s: More than 5 contributors match '%s', could you be more specific?" % (nick, search_string) 190 190 if len(contributors) == 1: 191 191 contributor = contributors[0] -
trunk/Tools/Scripts/webkitpy/tool/bot/irc_command_unittest.py
r94990 r94993 52 52 self.assertEquals('tom: "Vicki Murley" <vicki@apple.com> hasn\'t told me their nick. Boo hoo :-(', 53 53 whois.execute("tom", ["vicki@apple.com"], None, None)) 54 self.assertEquals('tom: I\'m not sure who you mean? ericu, "Eric Carlson" <eric.carlson@apple.com>, or eseidel could be \'eric\'.', 55 whois.execute("tom", ["eric"], None, None)) 54 self.assertEquals('tom: I\'m not sure who you mean? eroman, ericu, "Eric Carlson" <eric.carlson@apple.com>, or eseidel could be \'Eric\'.', 55 whois.execute("tom", ["Eric"], None, None)) 56 self.assertEquals('tom: More than 5 contributors match \'david\', could you be more specific?', 57 whois.execute("tom", ["david"], None, None)) 56 58 57 59 def test_create_bug(self):
Note: See TracChangeset
for help on using the changeset viewer.