def get_metadata_changeset_revisions(repository, repo):
 changeset_tups = []
 for repository_metadata in repository.downloadable_revisions:
  ctx = hg_util.get_changectx_for_changeset(repo, repository_metadata.changeset_revision)
  if ctx:
   rev = ctx.rev()
  else:
   rev = (-1)
  changeset_tups.append((rev, repository_metadata.changeset_revision))
 return sorted(changeset_tups)

def get_metadata_changeset_revisions ( repository , repo ) : changeset_tups = [ ] for repository_metadata in repository . downloadable_revisions : ctx = hg_util . get_changectx_for_changeset ( repo , repository_metadata . changeset_revision ) if ctx : rev = ctx . rev ( ) else : rev = ( - 1 ) changeset_tups . append ( ( rev , repository_metadata . changeset_revision ) ) return sorted ( changeset_tups )
return an unordered list of changeset_revisions and changeset numbers that are defined as installable .