@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

@ 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 .