Lines Matching refs:rel_path
261 def is_ignored(rel_path):
262 """Returns True if rel_path is in our whitelist of files to ignore."""
263 rel_path = rel_path.lower()
265 os.path.basename(rel_path) in IGNORED_FILENAMES or
266 rel_path.lower().startswith(IGNORED_PATHS))
269 def must_be_executable(rel_path):
273 return (os.path.splitext(rel_path)[1][1:] in EXECUTABLE_EXTENSIONS or
274 rel_path.lower() in EXECUTABLE_PATHS)
277 def must_not_be_executable(rel_path):
281 return (os.path.splitext(rel_path)[1][1:] in NON_EXECUTABLE_EXTENSIONS or
282 rel_path.lower() in NON_EXECUTABLE_PATHS)
301 def check_file(root_path, rel_path, bare_output):
302 """Checks the permissions of the file whose path is root_path + rel_path and
312 full_path = os.path.join(root_path, rel_path)
321 if must_be_executable(rel_path):
327 if must_not_be_executable(rel_path):
348 for rel_path in files:
349 if is_ignored(rel_path):
352 error = check_file(root, rel_path, bare_output)
366 def check_file(self, rel_path):
367 logging.debug('check_file(%s)' % rel_path)
370 if (not must_be_executable(rel_path) and
371 not must_not_be_executable(rel_path)):
374 return check_file(self.root_dir, rel_path, self.bare_output)
376 def check_dir(self, rel_path):
377 return self.check(rel_path)
386 rel_path = full_path[len(self.root_dir) + 1:]
387 if is_ignored(rel_path):
391 errors.extend(self.check_dir(rel_path))
393 error = self.check_file(rel_path)
417 def check_dir(self, rel_path):
418 url = self.url + '/' + rel_path
419 if get_svn_url(os.path.join(self.root_dir, rel_path)) != url:
421 return super(ApiSvnQuick, self).check_dir(rel_path)