eden/fs/inodes/test/DiffTest.cpp
/**
 * This method performs several steps:
 *
 * - Finalizes the supplied FakeTreeBuilder
 * - Creates a new commit from the resulting tree
 * - Calls EdenMount::resetCommit() to reset the current snapshot to point to
 *   this commit.  (This leaves the working directory unchanged, and only
 *   updates the current commit ID.)
 * - Calls EdenMount::diff(), waits for it to complete, and returns the
 *   results.
 */
This method performs several steps:
- Finalizes the supplied FakeTreeBuilder
- Creates a new commit from the resulting tree
- Calls EdenMount::resetCommit() to reset the current snapshot to point to
this commit.  (This leaves the working directory unchanged, and only
updates the current commit ID.)
- Calls EdenMount::diff(), waits for it to complete, and returns the
results.
This method performs several steps : - Finalizes the supplied FakeTreeBuilder - Creates a new commit from the resulting tree - Calls EdenMount :: resetCommit () to reset the current snapshot to point to this commit . ( This leaves the working directory unchanged and only updates the current commit ID . ) - Calls EdenMount :: diff () waits for it to complete and returns the results .
DiffResults DiffTest::resetCommitAndDiff(
    FakeTreeBuilder& builder,
    bool loadInodes) {
  if (loadInodes) {
    mount_.loadAllInodes();
  }
  mount_.resetCommit(builder,  true);
  auto df = diffFuture();
  return EXPECT_FUTURE_RESULT(df);
}
DiffResults DiffTest :: resetCommitAndDiff ( FakeTreeBuilder & builder , bool loadInodes ) { if ( loadInodes ) { mount_ . loadAllInodes ( ) ; } mount_ . resetCommit ( builder , true ) ; auto df = diffFuture ( ) ; return EXPECT_FUTURE_RESULT ( df ) ; }
This method performs several steps:
 - Finalizes the supplied FakeTreeBuilder
 - Creates a new commit from the resulting tree
 - Calls EdenMount::resetCommit() to reset the current snapshot to point to
   this commit.
This method performs several steps : - Finalizes the supplied FakeTreeBuilder - Creates a new commit from the resulting tree - Calls EdenMount :: resetCommit () to reset the current snapshot to point to this commit .
/* setReady = */