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