log info about current and past repo states at the end of typechecking
commitec09eaa99c4ebab95c564441e792f0c8aebc3bd4
authorCatherine Gasnier <catg@fb.com>
Tue, 20 Jul 2021 17:43:59 +0000 (20 10:43 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Tue, 20 Jul 2021 17:45:10 +0000 (20 10:45 -0700)
tree61cd3136c3b1f1d0fbbf235f81c14daacb0d2749
parent0a1211bb10d008794e03f0fcb796c1913c89982d
log info about current and past repo states at the end of typechecking

Summary:
The 'data' column for the TYPE_CHECK_END event will have a new field like:
```
"repo_states" : {
  "past_states" : ["hg.transition", "meerkat" ],
  "current_states" : [],
}
```
These states are maintained in a new module Watchman.RepoStates.

Reviewed By: ljw1004

Differential Revision: D29763199

fbshipit-source-id: 1cabc47799e45aa045c507aef3eccaf2c5746ec5
hphp/hack/src/server/serverInitCommon.ml
hphp/hack/src/server/serverTypeCheck.ml
hphp/hack/src/watchman/watchman.ml
hphp/hack/src/watchman/watchman_sig.ml