def CheckBasicRequirements():
  requirements_file_path = os.path.join(_BRANCH_ROOT_DIR, 'requirements.txt')
  if os.path.isfile(requirements_file_path):
    _CheckRequirements(requirements_file_path)
This function does the rollback itself and resets the dirty flag.
dataset/ETHPy150Open GoogleCloudPlatform/PerfKitBenchmarker/perfkitbenchmarker/requirements.py/CheckBasicRequirements--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/django/db/transaction.py/rollback