public class DelegatingVersionControlCmdLineInterface extends Object implements VersionControlCmdLineInterface
| Constructor and Description |
|---|
DelegatingVersionControlCmdLineInterface(Path projectRoot,
ProcessExecutorFactory processExecutorFactory,
String hgCmd,
com.google.common.collect.ImmutableMap<String,String> environment) |
| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.ImmutableSet<String> |
changedFiles(String fromRevisionId) |
Optional<VersionControlSupplier<InputStream>> |
diffBetweenRevisions(String baseRevision,
String tipRevision) |
com.facebook.buck.util.versioncontrol.FastVersionControlStats |
fastVersionControlStats() |
boolean |
isSupportedVersionControlSystem() |
public DelegatingVersionControlCmdLineInterface(Path projectRoot, ProcessExecutorFactory processExecutorFactory, String hgCmd, com.google.common.collect.ImmutableMap<String,String> environment)
public boolean isSupportedVersionControlSystem()
throws InterruptedException
isSupportedVersionControlSystem in interface VersionControlCmdLineInterfaceInterruptedExceptionpublic Optional<VersionControlSupplier<InputStream>> diffBetweenRevisions(String baseRevision, String tipRevision) throws VersionControlCommandFailedException, InterruptedException
diffBetweenRevisions in interface VersionControlCmdLineInterfaceVersionControlSupplier of the input stream of the diff between two revisions or
Optional.empty()VersionControlCommandFailedExceptionInterruptedExceptionpublic com.google.common.collect.ImmutableSet<String> changedFiles(String fromRevisionId) throws VersionControlCommandFailedException, InterruptedException
changedFiles in interface VersionControlCmdLineInterfaceVersionControlCommandFailedExceptionInterruptedExceptionpublic com.facebook.buck.util.versioncontrol.FastVersionControlStats fastVersionControlStats()
throws InterruptedException,
VersionControlCommandFailedException
fastVersionControlStats in interface VersionControlCmdLineInterfaceInterruptedExceptionVersionControlCommandFailedException