def get_updated_changeset_revisions(app, name, owner, changeset_revision):
 repository = tool_shed.util.repository_util.get_repository_by_name_and_owner(app, name, owner)
 repo = hg_util.get_repo_for_repository(app, repository=repository, repo_path=None, create=False)
 upper_bound_changeset_revision = get_next_downloadable_changeset_revision(repository, repo, changeset_revision)
 changeset_hashes = []
 for changeset in hg_util.reversed_lower_upper_bounded_changelog(repo, changeset_revision, upper_bound_changeset_revision):
  if (changeset != upper_bound_changeset_revision):
   changeset_hashes.append(str(repo.changectx(changeset)))
 if changeset_hashes:
  changeset_hashes_str = ','.join(changeset_hashes)
  return changeset_hashes_str
 return ''

def get_updated_changeset_revisions ( app , name , owner , changeset_revision ) : repository = tool_shed . util . repository_util . get_repository_by_name_and_owner ( app , name , owner ) repo = hg_util . get_repo_for_repository ( app , repository = repository , repo_path = None , create = False ) upper_bound_changeset_revision = get_next_downloadable_changeset_revision ( repository , repo , changeset_revision ) changeset_hashes = [ ] for changeset in hg_util . reversed_lower_upper_bounded_changelog ( repo , changeset_revision , upper_bound_changeset_revision ) : if ( changeset != upper_bound_changeset_revision ) : changeset_hashes . append ( str ( repo . changectx ( changeset ) ) ) if changeset_hashes : changeset_hashes_str = ',' . join ( changeset_hashes ) return changeset_hashes_str return ''
return a string of comma-separated changeset revision hashes for all available updates to the received changeset revision for the repository defined by the received name and owner .