code: def checkout(self, revision, options):
          
          rev = revision.key
          self.repo.git.checkout(rev)
docs: Checkout a specific revision.
  
          :param revision: The revision identifier.
          :type  revision: :class:`Revision`
  
          :param options: Any additional options.
          :type  options: ``dict``