def get_revision_label(app, repository, changeset_revision, include_date=True, include_hash=True):
 repo = get_repo_for_repository(app, repository=repository, repo_path=None)
 ctx = get_changectx_for_changeset(repo, changeset_revision)
 if ctx:
  return get_revision_label_from_ctx(ctx, include_date=include_date, include_hash=include_hash)
 elif include_hash:
  return ('-1:%s' % changeset_revision)
 else:
  return '-1'

def get_revision_label ( app , repository , changeset_revision , include_date = True , include_hash = True ) : repo = get_repo_for_repository ( app , repository = repository , repo_path = None ) ctx = get_changectx_for_changeset ( repo , changeset_revision ) if ctx : return get_revision_label_from_ctx ( ctx , include_date = include_date , include_hash = include_hash ) elif include_hash : return ( '-1:%s' % changeset_revision ) else : return '-1'
return a string consisting of the human read-able changeset rev and the changeset revision string which includes the revision date if the receive include_date is true .