parameters: (self, revision)
return_statement: return (chromium_sha, ChangeBackslashToSlashInPatch(diff_text))
docstring: Creates a patch from currently modified files.
  
      Args:
        depot: Current depot being bisected.
        revision: A git hash revision of the dependency repository.
  
      Returns:
        A tuple with git hash of chromium revision and DEPS patch text.
docstring_summary: Creates a patch from currently modified files.
docstring_tokens: Creates a patch from currently modified files .
function: def _CreatePatch(self, revision):
      """Creates a patch from currently modified files.
  
      Args:
        depot: Current depot being bisected.
        revision: A git hash revision of the dependency repository.
  
      Returns:
        A tuple with git hash of chromium revision and DEPS patch text.
      """
      # Get current chromium revision (git hash).
      chromium_sha = bisect_utils.CheckRunGit(['rev-parse', 'HEAD']).strip()
      if not chromium_sha:
        raise RuntimeError('Failed to determine Chromium revision for %s' %
                           revision)
      # Checkout DEPS file for the current chromium revision.
      diff_command = [
          'diff',
          '--src-prefix=',
          '--dst-prefix=',
          '--no-ext-diff',
          'HEAD',
      ]
      diff_text = bisect_utils.CheckRunGit(diff_command)
      return (chromium_sha, ChangeBackslashToSlashInPatch(diff_text))
function_tokens: def _CreatePatch ( self , revision ) : # Get current chromium revision (git hash). chromium_sha = bisect_utils . CheckRunGit ( [ 'rev-parse' , 'HEAD' ] ) . strip ( ) if not chromium_sha : raise RuntimeError ( 'Failed to determine Chromium revision for %s' % revision ) # Checkout DEPS file for the current chromium revision. diff_command = [ 'diff' , '--src-prefix=' , '--dst-prefix=' , '--no-ext-diff' , 'HEAD' , ] diff_text = bisect_utils . CheckRunGit ( diff_command ) return ( chromium_sha , ChangeBackslashToSlashInPatch ( diff_text ) )