def reversed_lower_upper_bounded_changelog(repo, excluded_lower_bounds_changeset_revision, included_upper_bounds_changeset_revision):
 if (excluded_lower_bounds_changeset_revision == INITIAL_CHANGELOG_HASH):
  appending_started = True
 else:
  appending_started = False
 reversed_changelog = []
 for changeset in repo.changelog:
  changeset_hash = str(repo.changectx(changeset))
  if appending_started:
   reversed_changelog.insert(0, changeset)
  if ((changeset_hash == excluded_lower_bounds_changeset_revision) and (not appending_started)):
   appending_started = True
  if (changeset_hash == included_upper_bounds_changeset_revision):
   break
 return reversed_changelog

def reversed_lower_upper_bounded_changelog ( repo , excluded_lower_bounds_changeset_revision , included_upper_bounds_changeset_revision ) : if ( excluded_lower_bounds_changeset_revision == INITIAL_CHANGELOG_HASH ) : appending_started = True else : appending_started = False reversed_changelog = [ ] for changeset in repo . changelog : changeset_hash = str ( repo . changectx ( changeset ) ) if appending_started : reversed_changelog . insert ( 0 , changeset ) if ( ( changeset_hash == excluded_lower_bounds_changeset_revision ) and ( not appending_started ) ) : appending_started = True if ( changeset_hash == included_upper_bounds_changeset_revision ) : break return reversed_changelog
return a reversed list of changesets in the repository changelog after the excluded_lower_bounds_changeset_revision .