@logic.auth_audit_exempt
def revision_show(context, data_dict):
 model = context['model']
 api = context.get('api_version')
 id = _get_or_bust(data_dict, 'id')
 ref_package_by = ('id' if (api == 2) else 'name')
 rev = model.Session.query(model.Revision).get(id)
 if (rev is None):
  raise NotFound
 rev_dict = model.revision_as_dict(rev, include_packages=True, ref_package_by=ref_package_by)
 return rev_dict

@ logic . auth_audit_exempt def revision_show ( context , data_dict ) : model = context [ 'model' ] api = context . get ( 'api_version' ) id = _get_or_bust ( data_dict , 'id' ) ref_package_by = ( 'id' if ( api == 2 ) else 'name' ) rev = model . Session . query ( model . Revision ) . get ( id ) if ( rev is None ) : raise NotFound rev_dict = model . revision_as_dict ( rev , include_packages = True , ref_package_by = ref_package_by ) return rev_dict
return the details of a revision .