Home | History | Annotate | Download | only in checkout

Lines Matching refs:SVN

30 # Python module for interacting with an SCM system (like SVN or Git)
84 if SVN.in_working_directory(absolute_path):
85 return SVN(cwd=absolute_path, patch_directories=patch_directories)
323 # A mixin class that represents common functionality for SVN and Git-SVN.
334 class SVN(SCM, SVNRepository):
336 svn_server_host = "svn.webkit.org"
337 svn_server_realm = "<http://svn.webkit.org:80> Mac OS Forge"
352 return os.path.isdir(os.path.join(path, '.svn'))
362 svn_info_args = ['svn', 'info', path]
366 raise ScriptError(script_args=svn_info_args, message='svn info did not contain a %s.' % field_name)
371 uuid = SVN.find_uuid(path)
378 if uuid != SVN.find_uuid(path):
391 return self.run(['svn', '--version', '--quiet'])
394 return self.run(["svn", "diff"], cwd=self.checkout_root, decode_output=False) == ""
397 # Make sure there are no locks lying around from a previously aborted svn invocation.
398 # This is slightly dangerous, as it's possible the user is running another svn process
400 # under windows and svn just sucks (or the user interrupted svn and it failed to clean up).
401 self.run(["svn", "cleanup"], cwd=self.checkout_root)
403 # svn revert -R is not as awesome as git reset --hard.
404 # It will leave added files around, causing later svn update
408 # added_files() returns directories for SVN, we walk the files in reverse path
410 self.run(["svn", "revert", "-R", "."], cwd=self.checkout_root)
421 return ['svn', 'status']
428 """Does 'svn add' to the path and its parents."""
439 return self.run(["svn", "add", path], return_exit_code=return_exit_code)
443 return self.run(["svn", "delete", "--force", base], cwd=parent)
446 status_command = ["svn", "status"]
452 # As far as I can tell svn diff --summarize output looks just like svn status output.
454 status_command = ["svn", "diff", "--summarize", "-c", revision]
459 # svn log will exit(1) (and thus self.run will raise) if the path does not exist.
460 log_command = ['svn', 'log', '--quiet', '--limit=%s' % limit, path]
482 return "svn"
493 return self.run([self.script_path("svn-create-patch")] + changed_files,
498 return self.run(["svn", "propget", "svn:author", "--revprop", "-r", revision]).rstrip()
504 return self.run(["svn", "cat", "-r", revision, remote_path], decode_output=False)
508 return self.run(['svn', 'diff', '-c', revision])
537 args = ['svn', 'diff']
546 return self.run(['svn', 'cat', '-r', 'BASE', path], decode_output=False)
553 svn_merge_args = ['svn', 'merge', '--non-interactive', '-c', '-%s' % revision, self._repository_url()]
554 log("WARNING: svn merge has been known to take more than 10 minutes to complete. It is recommended you use git for rollouts.")
561 self.run(['svn', 'revert'] + file_paths)
564 # git-commit and force are not used by SVN.
565 svn_commit_args = ["svn", "commit"]
579 _log.debug('Would run SVN command: "' + " ".join(svn_commit_args) + '"')
588 return self.run(['svn', 'log', '--non-interactive', '--revision', svn_revision])
597 return self.run(['svn', 'pset', pname, pvalue, base], cwd=dir)
601 return self.run(['svn', 'pget', pname, base], cwd=dir).encode('utf-8').rstrip("\n")
722 # FIXME: I'm not sure we're returning the same set of files that SVN.changed_files is.
762 match = re.search("^\s*git-svn-id:.*@(?P<svn_revision>\d+)\ ", git_log, re.MULTILINE)
778 # git svn find-rev always exits 0, even when the revision or commit is not found.
779 return self.run(['git', 'svn', 'find-rev', arg], cwd=self.checkout_root).rstrip()
822 # Assume the revision is an svn revision.
910 return self.run(['git', 'svn', 'log', '-r', svn_revision])
913 return self.run(['git', 'svn', 'log', '--limit=1'])
928 remote_branch_refs = Git.read_git_config('svn-remote.svn.fetch')
932 raise ScriptError(message="Can't find a branch to diff against. svn-remote.svn.fetch is not in the git config and %s does not exist" % remote_master_ref)
935 # FIXME: What's the right behavior when there are multiple svn-remotes listed?
944 dcommit_command = ['git', 'svn', 'dcommit']
947 if not self.has_authorization_for_realm(SVN.svn_server_realm):
948 raise AuthenticationError(SVN.svn_server_host, prompt_for_password=True)