Perfs get last changeset id

Introduce a new method to avoid fetching all the changes
of the last changeset when needing just the changeset id