@Test public void resetToRevision_fileSystemRootTreeShouldBecomeTheSameAsRevisionRootTree() throws IOException { writeSomethingToCache(); RevCommit revision = commit(); writeSomethingToGfs(); GfsReset.Result result = Gfs.reset(gfs).revision(revision.getName()).execute(); assertTrue(result.isSuccessful()); assertEquals(revision.getTree(), gfs.getFileStore().getRoot().getObjectId(false)); }
@Nonnull public GfsReset revision(String revision) { this.revision = revision; return this; }
GfsReset extends GfsCommand<GfsReset.Result> { @Nonnull public GfsReset revision(String revision) { this.revision = revision; return this; } }
GfsReset extends GfsCommand<GfsReset.Result> { @Nonnull public GfsReset revision(String revision) { this.revision = revision; return this; } GfsReset(GitFileSystem gfs); }
GfsReset extends GfsCommand<GfsReset.Result> { @Nonnull public GfsReset revision(String revision) { this.revision = revision; return this; } GfsReset(GitFileSystem gfs); @Nonnull GfsReset soft(boolean soft); @Nonnull GfsReset hard(boolean hard); @Nonnull GfsReset revision(String revision); }
GfsReset extends GfsCommand<GfsReset.Result> { @Nonnull public GfsReset revision(String revision) { this.revision = revision; return this; } GfsReset(GitFileSystem gfs); @Nonnull GfsReset soft(boolean soft); @Nonnull GfsReset hard(boolean hard); @Nonnull GfsReset revision(String revision);  }