• Home
  • Raw
  • Download

Lines Matching refs:directory

92 def git_repository_sync_is_disabled(git, directory):  argument
95 [git, 'config', 'sync-deps.disable'], cwd=directory)
101 def is_git_toplevel(git, directory): argument
112 [git, 'rev-parse', '--show-toplevel'], cwd=directory).strip()
113 return os.path.realpath(bytes(directory, 'utf8')) == os.path.realpath(toplevel)
118 def status(directory, checkoutable): argument
122 directory = truncate(directory, dlen)
124 sys.stdout.write('%-*s @ %s\n' % (dlen, directory, checkoutable))
127 def git_checkout_to_directory(git, repo, checkoutable, directory, verbose): argument
147 status(directory, checkoutable)
149 if not os.path.isdir(directory):
151 [git, 'clone', '--quiet', repo, directory])
153 if not is_git_toplevel(git, directory):
156 sys.stdout.write('%s\n IS NOT TOP-LEVEL GIT DIRECTORY.\n' % directory)
160 if git_repository_sync_is_disabled(git, directory):
161 sys.stdout.write('%s\n SYNC IS DISABLED.\n' % directory)
168 cwd=directory, stderr=devnull):
175 [git, 'remote', 'set-url', 'origin', repo], cwd=directory)
177 subprocess.check_call([git, 'fetch', '--quiet'], cwd=directory)
179 subprocess.check_call([git, 'checkout', '--quiet', checkoutable], cwd=directory)
220 for directory in dependencies:
222 if directory.startswith(other_dir + '/'):
223 raise Exception('%r is parent of %r' % (other_dir, directory))
225 for directory in sorted(dependencies):
226 if '@' in dependencies[directory]:
227 repo, checkoutable = dependencies[directory].rsplit('@', 1)
231 if not with_clspv and directory == 'third_party/clspv':
234 if not with_clspv and directory == 'third_party/clspv-llvm':
237 if not with_dxc and directory == 'third_party/dxc':
240 if not with_swiftshader and directory == 'third_party/swiftshader':
243 relative_directory = os.path.join(deps_file_directory, directory)
250 for directory in deps_file.get('recursedeps', []):
251 recursive_path = os.path.join(deps_file_directory, directory, 'DEPS')