Mercurial > hg > truffle
comparison mxtool/mx.py @ 21703:b939ee385ae4
mx fsckprojects: exclude .workspace/
author | Andreas Woess <andreas.woess@oracle.com> |
---|---|
date | Wed, 03 Jun 2015 17:43:21 +0200 |
parents | 70649030d511 |
children | a3315bce5192 |
comparison
equal
deleted
inserted
replaced
21702:70649030d511 | 21703:b939ee385ae4 |
---|---|
4906 for suite in suites(True): | 4906 for suite in suites(True): |
4907 projectDirs = [p.dir for p in suite.projects] | 4907 projectDirs = [p.dir for p in suite.projects] |
4908 distIdeDirs = [d.get_ide_project_dir() for d in suite.dists if d.get_ide_project_dir() is not None] | 4908 distIdeDirs = [d.get_ide_project_dir() for d in suite.dists if d.get_ide_project_dir() is not None] |
4909 for dirpath, dirnames, files in os.walk(suite.dir): | 4909 for dirpath, dirnames, files in os.walk(suite.dir): |
4910 if dirpath == suite.dir: | 4910 if dirpath == suite.dir: |
4911 # no point in traversing .hg or lib/ | 4911 # no point in traversing .hg, lib, or .workspace |
4912 dirnames[:] = [d for d in dirnames if d not in ['.hg', 'lib']] | 4912 dirnames[:] = [d for d in dirnames if d not in ['.hg', 'lib', '.workspace']] |
4913 elif dirpath in projectDirs: | 4913 elif dirpath in projectDirs: |
4914 # don't traverse subdirs of an existing project in this suite | 4914 # don't traverse subdirs of an existing project in this suite |
4915 dirnames[:] = [] | 4915 dirnames[:] = [] |
4916 elif dirpath in distIdeDirs: | 4916 elif dirpath in distIdeDirs: |
4917 # don't traverse subdirs of an existing distributions in this suite | 4917 # don't traverse subdirs of an existing distributions in this suite |