summaryrefslogtreecommitdiffstats
path: root/subcmds/list.py
diff options
context:
space:
mode:
Diffstat (limited to 'subcmds/list.py')
-rw-r--r--subcmds/list.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/subcmds/list.py b/subcmds/list.py
index 8eb06cdd..a3358245 100644
--- a/subcmds/list.py
+++ b/subcmds/list.py
@@ -14,7 +14,6 @@
14# limitations under the License. 14# limitations under the License.
15 15
16from __future__ import print_function 16from __future__ import print_function
17import re
18import sys 17import sys
19 18
20from command import Command, MirrorSafeCommand 19from command import Command, MirrorSafeCommand
@@ -83,14 +82,3 @@ This is similar to running: repo forall -c 'echo "$REPO_PATH : $REPO_PROJECT"'.
83 82
84 lines.sort() 83 lines.sort()
85 print('\n'.join(lines)) 84 print('\n'.join(lines))
86
87 def FindProjects(self, args):
88 result = []
89 for project in self.GetProjects(''):
90 for arg in args:
91 pattern = re.compile(r'%s' % arg, re.IGNORECASE)
92 if pattern.search(project.name) or pattern.search(project.relpath):
93 result.append(project)
94 break
95 result.sort(key=lambda project: project.relpath)
96 return result