For "native" Google documents (perhaps this applies to all Google formats, I have not tested it), using head in revisions.get returns the first revision instead of the last. It seems that it relies only on the order of revisions returned by the revisions.list method, and this order is not uniform (for example, Google first lists the most recent documents).
This seems like an error, I was able to reproduce it. I reported this to the engineers, and I will update this answer as soon as I hear an answer from them.
UPDATE 12/2: now this is fixed and the fix will live in 1-2 weeks
Source: https://habr.com/ru/post/1496560/More articles:How to cancel a check in a remote ClearCase client - clearcaseIs it a good idea to wrap my DbContext in a Unit of Work class? - asp.net-mvcDouble fork and stdin - linuxIs there a way to use an enumeration as a type in the Google Closure Compiler? - javascriptGoogle Drive SDK does not return headRevisionId for Google document format - pythonJasper Report Border - jasper-reportsHttpclient redirects android - androidMerge a Google documentation document that has been modified by another client. (google drive sdk) - google-drive-sdkSelect the selection and group by the subset of columns - sqlHow to get the number of characters in a file (not bytes) in C on Linux - cAll Articles