in src/sal/utils/hub.py [0:0]
def get_dataset_revisions(dataset_id: str) -> List[str]:
"""Get the list of revisions for a dataset on the Hub."""
if not repo_exists(dataset_id, repo_type="dataset"):
return []
refs = list_repo_refs(dataset_id, repo_type="dataset")
return [ref.name for ref in refs.branches if ref.name != "main"]