def get_alphas(revision):
    """
    Return a tuple of the first non-digit characters of a revision (which
    may be empty) and the remaining characters.
    """
    for i, char in enumerate(revision):
        if char.isdigit():
            if i == 0:
                return '', revision
            return revision[0:i], revision[i:]
    return revision, ''
