parameters: (branch, baseline=None, paths=[])
docstring: Get a generator that lists git revisions that exist in 'branch'. If
      the optional parameter 'baseline' is specified, the generator
      excludes commits that exist on that branch.
  
      Returns: Generator of Commit objects
docstring_summary: Get a generator that lists git revisions that exist in 'branch'. If
      the optional parameter 'baseline' is specified, the generator
      excludes commits that exist on that branch.
docstring_tokens: Get a generator that lists git revisions that exist in branch . If the optional parameter baseline is specified the generator excludes commits that exist on that branch .
function: def list_revs(branch, baseline=None, paths=[]):
      """Get a generator that lists git revisions that exist in 'branch'. If
      the optional parameter 'baseline' is specified, the generator
      excludes commits that exist on that branch.
  
      Returns: Generator of Commit objects
  
      """
  
      if baseline is not None:
          query = "%s..%s" % (branch, baseline)
      else:
          query = str(branch)
  
      changes = subprocess.check_output(
          [ "git", "rev-list", query, '--'] + paths
      ).decode()
  
      if changes == "":
          return
  
      for rev in changes.rstrip("\n").split("\n"):
          assert rev != ""
          yield Commit(rev)
function_tokens: def list_revs ( branch , baseline = None , paths = [ ] ) : if baseline is not None : query = "%s..%s" % ( branch , baseline ) else : query = str ( branch ) changes = subprocess . check_output ( [ "git" , "rev-list" , query , '--' ] + paths ) . decode ( ) if changes == "" : return for rev in changes . rstrip ( "\n" ) . split ( "\n" ) : assert rev != "" yield Commit ( rev )