def _checkuserawstorefiledata(pullop):
    """Check whether we should use rawstorefiledata command to retrieve data."""
    repo = pullop.repo
    remote = pullop.remote
    if b'rawstorefiledata' not in remote.apidescriptor[b'commands']:
        return False
    if not pullop.streamclonerequested:
        return False
    if len(repo):
        return False
    if b'revlogv1' not in repo.requirements:
        return False
    return True
