As for external use, it's very useful.  Before MW instrumented reverts, we have ~20 years of revisions and we don't know which ones revert previous revisions.  With the sha, we join and determine this information.  You can see that code here, and the use of sha1. 

On Thu, Mar 23, 2023 at 2:16 PM Gergő Tisza <gtisza@gmail.com> wrote:
On Wed, Mar 22, 2023 at 11:06 PM Brian Wolff <bawolff@gmail.com> wrote:
This kind of sounds like a non-answer, but its mostly useful if you want a hash of the revision. I dont think mw core really uses it, but it can be useful for quickly detecting duplicate revisions. I think primarily it is for external users.

Core does duplicate detection (when so configured) for adding the revert / reverted change tags. 

On Thu, Mar 23, 2023 at 4:03 AM Vi to <vituzzu.wiki@gmail.com> wrote:
Afair this avoids a new rev to be createad if you click "save" without changing contents.

That actually uses to slot sha1 now (I guess as a micro-optimization because that way you don't need to re-hash slots which weren't edited).
_______________________________________________
Wikitech-l mailing list -- wikitech-l@lists.wikimedia.org
To unsubscribe send an email to wikitech-l-leave@lists.wikimedia.org
https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/