code: def show(config, rev):
      """Show the revision(s) denoted by the given symbol.
  
      :param config: a :class:`.Config` instance.
  
      :param revision: string revision target
  
      """
  
      script = ScriptDirectory.from_config(config)
  
      if rev == "current":
  
          def show_current(rev, context):
              for sc in script.get_revisions(rev):
                  config.print_stdout(sc.log_entry)
              return []
  
          with EnvironmentContext(config, script, fn=show_current):
              script.run_env()
      else:
          for sc in script.get_revisions(rev):
              config.print_stdout(sc.log_entry)
  
imports: from __future__ import annotations
  import os
  from typing import List
  from typing import Optional
  from typing import TYPE_CHECKING
  from typing import Union
  from .None import autogenerate
  from .None import util
  from .runtime.environment import EnvironmentContext
  from .script import ScriptDirectory
label_desc: Use image node_id 8 for calling a global function with example usage: show(config, rev) and returns: list