Reputation: 89
i want to get gerrit change files
from gerrit document,i need to use the api:
GET /changes/{change-id}/revisions/{revision-id}/files/
but i have the change-id,i cannot get the revisions by the changeid.
althougth ,the document said changeInfo entity has that info,
but i use
'GET /changes/{change-id}'
but it dose not contains revisions
so, how i can get the change`s revisionids,to find the change file?
or there has other method to get change files ?
thank you
Upvotes: 0
Views: 1366
Reputation: 22411
{revision-id} could be 1, 2, etc or you can use "current" to match the latest patchset:
GET /changes/{change-id}/revisions/current/files/
See more info in the Gerrit documentation here
Upvotes: 1