Google Drive SDK not returning headRevisionId for google Docs format
Question: I have been working on google drive sync mechanism. I am using Google Drive
Python SDK for it. The issue i am having is that the google SDK does not
return headRevisionId is file resource's metadata if the file is google
MimeType i.e it has been created with google docs. Its important for me to
store headRevisionId.

Files which are uploaded by user from his local machine does have
headRevisionId in its metadata. this issue is for only those google docs.

How do i get headRevisionId of such files. any workaround for this?

Thanks Akif


Answer: I'm seeing the same behavior, despite messages indicating the issue was
addressed: [Head revision not working as intended for Google Docs
formats](http://stackoverflow.com/questions/13410459/head-revision-not-
working-as-intended-for-google-docs-formats).

For now the way I retrieve headRevisionId on a Google Doc is to make a
separate call to list revisions (drive.revisions.list) on the fileId.

Details on managing revisions: <https://developers.google.com/drive/manage-
revisions>

