This is an archive of the discontinued Mercurial Phabricator instance.

fsmonitor: add new watchman notifications to fsmonitor extension
ClosedPublic

Authored by ekent on Oct 9 2017, 1:11 PM.

Details

Summary

The fsmonitor extension currently sends state-enter and state-leave
notifications to watchman on the update operation. This commit creates
additional notifications for the following events :

  • transaction creation and commit/abort. A state-enter notification will be sent when a transaction is created. It will provide the working copy parent's hash. A state-leave notification will be sent when the transaction is committed or aborted. It will provide the working copy parent's hash.
  • calls to set-parent will cause state-enter and state-leave notifications to be sent. The state-enter notification will be sent prior to the set-parent operation and the working copy parent's hash will be provided at this time. The state-leave notification will be sent after the set-parent operation completes providing the working copy parents hash.
Test Plan

tested on dev server to check that necessary notifications were sent/received

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

ekent created this revision.Oct 9 2017, 1:11 PM
quark accepted this revision.Oct 9 2017, 2:15 PM
quark added a subscriber: quark.

This was previously reviewed internally.

This revision was automatically updated to reflect the committed changes.