Changeset 366
- Timestamp:
- 01/19/06 01:57:20 (3 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
reposearchplugin/0.9/tracreposearch/tracreposearch.py
r365 r366 31 31 'exclude', '').split(os.path.pathsep) if glob] 32 32 33 if includes and not excludes:34 excludes = ['*']35 36 33 repo = self.env.get_repository(req.authname) 37 34 … … 44 41 def searchable(path): 45 42 # Exclude paths 46 searchable = 147 43 for exclude in excludes: 48 44 if fnmatch(path, exclude): 49 searchable = 0 50 break 45 return 0 51 46 52 47 # Include paths 53 48 for include in includes: 54 49 if fnmatch(path, include): 55 searchable = 1 56 break 50 return 1 57 51 58 return searchable52 return 1 59 53 60 54 def match_name(name):
