@task
def code_verify(revision=None):
  if is_old_code():
    fprint('installed code is in the old style (directory instead of symlink). Manual intervention required')
    return False
  rev = revision or hg_revision()
  if exists('~/viewfinder.%s' % rev):
    fprint('Code at revision %s is installed' % rev)
    return True
  else:
    fprint('Code at revision %s is not installed' % rev)
    return False
Verify the code for a given revision (latest if None).
dataset/ETHPy150Open viewfinderco/viewfinder/fabfile.py/code_verify