Summary: This should be useful for my upcoming unit tests for the Hg dirstate. Reviewed By: simpkins Differential Revision: D4013464 fbshipit-source-id: 46460186abfa104aa026894068cd160e52c94729