def strip_revision_specifiers(path):
    """Given a file specification that may contain a revision
    specifier, returns just the file specification without a revision
    specifier.
    """
    at_pos = path.rfind('@')
    if at_pos != -1:
        return path[0:at_pos]
    else:
        hash_pos = path.rfind('#')
        if hash_pos != -1:
            return path[0:hash_pos]
    return path