`be list` without --extra-strings now lists bugs with extra strings.
authorW. Trevor King <wking@drexel.edu>
Sat, 26 Jun 2010 13:22:41 +0000 (09:22 -0400)
committerW. Trevor King <wking@drexel.edu>
Sat, 26 Jun 2010 13:22:41 +0000 (09:22 -0400)
The previous implementation would not show them unless an explicitly
matching regexp was passed in with --extra-strings.

libbe/command/list.py

index c62e5a41c0d3775e7ec0b01aa3f6143855759f65..c353e09056683be149dd3c39e0c6e22f8bb1c339 100644 (file)
@@ -62,7 +62,7 @@ class Filter (object):
         if len(bug.extra_strings) == 0:
             if len(self.extra_strings_regexps) > 0:
                 return False
-        else:
+        elif len(self.extra_strings_regexps) > 0:
             matched = False
             for string in bug.extra_strings:
                 for regexp in self.extra_strings_regexps: