Typechecker process can query Mercurial on hg.update state leave events to log mergeb...
commit1967439072bdbe89fdf2b4c0f9226ce377a8597e
authorKasper Kopec <kasper@fb.com>
Wed, 19 Sep 2018 23:17:37 +0000 (19 16:17 -0700)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Wed, 19 Sep 2018 23:34:12 +0000 (19 16:34 -0700)
treed097b302053cac05d74b67c4c7f51986ac1cd6c9
parent6d4162e135043bb59aaa76ca84d8ac7787e0f99f
Typechecker process can query Mercurial on hg.update state leave events to log mergebase changes

Summary:
To make smarter decisions about restarting vs. proceeding incrementally we would like to answer about every file change "was it a part of a rebase or a local change by a user". There is a meeting this week with Watchman team on how we can do it in a fast and reliable way (possibly by them providing some additional APIs), but in the meantime I would like to get something quick to roll out for a week to small percentage of users and measure impact of this entire endeavor.

The main problem with this approach is that we are now blocked on Mercurial in more places than before, and will a) regress experience when Mercurial is having problems b) we will get the blame for Mercurial problems, because we are bad at surfacing underlying hh_server slowness reasons to the users

Reviewed By: pittsw

Differential Revision: D9947630

fbshipit-source-id: 389f7e1c0e4547b65dc09bbcb60dfbaa82e56aa6
hphp/hack/src/server/serverEnvBuild.ml
hphp/hack/src/server/serverInit.ml
hphp/hack/src/server/serverRevisionTracker.ml [new file with mode: 0644]
hphp/hack/src/server/serverTypeCheck.ml