• Home
  • Raw
  • Download

Lines Matching refs:directory

100 def git_repository_sync_is_disabled(git, directory):  argument
103 [git, 'config', 'sync-deps.disable'], cwd=directory)
109 def is_git_toplevel(git, directory): argument
120 [git, 'rev-parse', '--show-toplevel'], cwd=directory).strip()
121 return os.path.realpath(bytes(directory, 'utf8')) == os.path.realpath(toplevel)
126 def status(directory, checkoutable): argument
130 directory = truncate(directory, dlen)
132 sys.stdout.write('%-*s @ %s\n' % (dlen, directory, checkoutable))
135 def git_checkout_to_directory(git, repo, checkoutable, directory, verbose): argument
154 if not os.path.isdir(directory):
156 [git, 'clone', '--quiet', repo, directory])
158 if not is_git_toplevel(git, directory):
161 sys.stdout.write('%s\n IS NOT TOP-LEVEL GIT DIRECTORY.\n' % directory)
165 if git_repository_sync_is_disabled(git, directory):
166 sys.stdout.write('%s\n SYNC IS DISABLED.\n' % directory)
173 cwd=directory, stderr=devnull):
176 status(directory, checkoutable) # Success.
182 [git, 'remote', 'set-url', 'origin', repo], cwd=directory)
184 subprocess.check_call([git, 'fetch', '--quiet'], cwd=directory)
186 subprocess.check_call([git, 'checkout', '--quiet', checkoutable], cwd=directory)
189 status(directory, checkoutable) # Success.
230 for directory in dependencies:
232 if directory.startswith(other_dir + '/'):
233 raise Exception('%r is parent of %r' % (other_dir, directory))
235 for directory in sorted(dependencies):
236 if '@' in dependencies[directory]:
237 repo, checkoutable = dependencies[directory].split('@', 1)
241 relative_directory = os.path.join(deps_file_directory, directory)
248 for directory in deps_file.get('recursedeps', []):
249 recursive_path = os.path.join(deps_file_directory, directory, 'DEPS')