Home | History | Annotate | Download | only in webkitpy

Lines Matching full:path

41 def detect_scm_system(path):
42 if SVN.in_working_directory(path):
43 return SVN(cwd=path)
45 if Git.in_working_directory(path):
46 return Git(cwd=path)
100 return os.path.join(self.checkout_root, "WebKitTools", "Scripts")
103 return os.path.join(self.scripts_directory(), script_name)
161 for path in paths:
162 if os.path.basename(path) == "ChangeLog":
163 changelog_paths.append(path)
182 raise ScriptError(message="Failed to parse ChangeLog: " + os.path.abspath(changelog_path))
189 def in_working_directory(path):
193 def find_checkout_root(path):
264 def in_working_directory(path):
265 return os.path.isdir(os.path.join(path, '.svn'))
268 def find_uuid(cls, path):
269 if not cls.in_working_directory(path):
271 return cls.value_from_svn_info(path, 'Repository UUID')
274 def value_from_svn_info(cls, path, field_name):
275 svn_info_args = ['svn', 'info', path]
283 def find_checkout_root(path):
284 uuid = SVN.find_uuid(path)
285 # If |path| is not in a working directory, we're supposed to return |path|.
287 return path
291 if uuid != SVN.find_uuid(path):
293 last_path = path
294 (path, last_component) = os.path.split(path)
295 if last_path == path:
371 def in_working_directory(cls, path):
372 return run_command(['git', 'rev-parse', '--is-inside-work-tree'], cwd=path, error_handler=Executive.ignore_error).rstrip() == "true"
375 def find_checkout_root(cls, path):
377 (checkout_root, dot_git) = os.path.split(run_command(['git', 'rev-parse', '--git-dir'], cwd=path))
378 # If we were using 2.6 # checkout_root = os.path.relpath(checkout_root, path)
379 if not os.path.isabs(checkout_root): # Sometimes git returns relative paths
380 checkout_root = os.path.join(path, checkout_root)
395 return os.path.exists(os.path.join(self.checkout_root, '.git/rebase-apply'))