Home | History | Annotate | Download | only in webkitpy

Lines Matching full:self

61     def __init__(self, message):
62 self.message_lines = message[first_non_empty_line_after_index(message, 0):]
64 def body(self, lstrip=False):
65 lines = self.message_lines[first_non_empty_line_after_index(self.message_lines, 1):]
70 def description(self, lstrip=False, strip_url=False):
71 line = self.message_lines[0]
78 def message(self):
79 return "\n".join(self.message_lines) + "\n"
83 def __init__(self, script_args, exit_code, output, cwd):
84 ScriptError.__init__(self, script_args=script_args, exit_code=exit_code, output=output, cwd=cwd)
94 def __init__(self, cwd, dryrun=False):
95 self.cwd = cwd
96 self.checkout_root = self.find_checkout_root(self.cwd)
97 self.dryrun = dryrun
99 def scripts_directory(self):
100 return os.path.join(self.checkout_root, "WebKitTools", "Scripts")
102 def script_path(self, script_name):
103 return os.path.join(self.scripts_directory(), script_name)
105 def ensure_clean_working_directory(self, force_clean):
106 if not force_clean and not self.working_directory_is_clean():
107 print run_command(self.status_command(), error_handler=Executive.ignore_error)
111 self.clean_working_directory()
113 def ensure_no_local_commits(self, force):
114 if not self.supports_local_commits():
116 commits = self.local_commits()
121 self.discard_local_commits()
123 def apply_patch(self, patch, force=False):
128 args = [self.script_path('svn-apply')]
136 def run_status_and_extract_filenames(self, status_command, status_regexp):
147 def strip_r_from_svn_revision(self, svn_revision):
153 def svn_revision_from_commit_text(self, commit_text):
154 match = re.search(self.commit_success_regexp(), commit_text, re.MULTILINE)
158 def modified_changelogs(self):
160 paths = self.changed_files()
170 def commit_message_for_this_commit(self):
171 changelog_paths = self.modified_changelogs()
200 def working_directory_is_clean(self):
203 def clean_working_directory(self):
206 def status_command(self):
209 def changed_files(self):
212 def display_name(self):
215 def create_patch(self):
218 def diff_for_revision(self, revision):
221 def apply_reverse_diff(self, revision):
224 def revert_files(self, file_paths):
227 def commit_with_message(self, message):
230 def svn_commit_log(self, svn_revision):
233 def last_svn_commit_log(self):
242 def create_patch_from_local_commit(self, commit_id):
245 def create_patch_since_local_commit(self, commit_id):
248 def commit_locally_with_message(self, message):
251 def discard_local_commits(self):
254 def local_commits(self):
259 def __init__(self, cwd, dryrun=False):
260 SCM.__init__(self, cwd, dryrun)
261 self.cached_version = None
302 def svn_version(self):
303 if not self.cached_version:
304 self.cached_version = run_command(['svn', '--version', '--quiet'])
306 return self.cached_version
308 def working_directory_is_clean(self):
311 def clean_working_directory(self):
314 def status_command(self):
317 def changed_files(self):
318 if self.svn_version() > "1.6":
322 return self.run_status_and_extract_filenames(self.status_command(), status_regexp)
328 def display_name(self):
331 def create_patch(self):
332 return run_command(self.script_path("svn-create-patch"), cwd=self.checkout_root, return_stderr=False)
334 def diff_for_revision(self, revision):
337 def _repository_url(self):
338 return self.value_from_svn_info(self.checkout_root, 'URL')
340 def apply_reverse_diff(self, revision):
342 svn_merge_args = ['svn', 'merge', '--non-interactive', '-c', '-%s' % revision, self._repository_url()]
347 def revert_files(self, file_paths):
350 def commit_with_message(self, message):
351 if self.dryrun:
356 def svn_commit_log(self, svn_revision):
357 svn_revision = self.strip_r_from_svn_revision(str(svn_revision))
360 def last_svn_commit_log(self):
363 return self.svn_commit_log('BASE')
367 def __init__(self, cwd, dryrun=False):
368 SCM.__init__(self, cwd, dryrun)
388 def discard_local_commits(self):
391 def local_commits(self):
394 def rebase_in_progress(self):
395 return os.path.exists(os.path.join(self.checkout_root, '.git/rebase-apply'))
397 def working_directory_is_clean(self):
400 def clean_working_directory(self):
404 if self.rebase_in_progress():
407 def status_command(self):
410 def changed_files(self):
413 return self.run_status_and_extract_filenames(status_command, status_regexp)
419 def display_name(self):
422 self):
430 def diff_for_revision(self, revision):
431 git_commit = self.git_commit_from_svn_revision(revision)
432 return self.create_patch_from_local_commit(git_commit)
434 def apply_reverse_diff(self, revision):
436 git_commit = self.git_commit_from_svn_revision(revision)
445 changelog_paths = self.modified_changelogs()
447 run_command([self.script_path('resolve-ChangeLogs')] + changelog_paths)
449 def revert_files(self, file_paths):
452 def commit_with_message(self, message):
453 self.commit_locally_with_message(message)
454 return self.push_local_commits_to_server()
456 def svn_commit_log(self, svn_revision):
457 svn_revision = self.strip_r_from_svn_revision(svn_revision)
460 def last_svn_commit_log(self):
465 def create_patch_from_local_commit(self, commit_id):
468 def create_patch_since_local_commit(self, commit_id):
471 def commit_locally_with_message(self, message):
474 def push_local_commits_to_server(self):
475 if self.dryrun:
485 def commit_ids_from_commitish_arguments(self, args):
501 def commit_message_for_local_commit(self, commit_id):
512 def files_changed_summary_for_commit(self, commit_id):