[server] add a max_version param to list_file_revisions