@Singleton public class HgClientMercurialAccessor extends java.lang.Object implements MercurialAccessor
| Constructor and Description |
|---|
HgClientMercurialAccessor(ProcessUtils processUtils) |
| Modifier and Type | Method and Description |
|---|---|
HgRepository |
cloneWithUrl(java.io.File directory,
java.lang.String url) |
java.util.Optional<HgChangeset> |
findChangesetById(HgRepository repository,
java.lang.String id) |
java.util.Optional<HgChangeset> |
findChangesetByTag(HgRepository repository,
java.lang.String tag) |
long |
getLastCommitTimeOfPath(HgRepository repository,
java.lang.String relativePath) |
java.lang.String |
getRemoteUrl(java.io.File repoRoot) |
java.lang.String |
getRemoteUrl(HgRepository repository) |
HgRepository |
getRepository(java.io.File dir) |
HgChangeset |
headOfBranch(HgRepository repository,
java.lang.String defaultBranch) |
void |
pull(HgRepository repository) |
void |
resetToSpecificNodeId(HgRepository repository,
java.lang.String version) |
@Inject public HgClientMercurialAccessor(ProcessUtils processUtils)
public java.lang.String getRemoteUrl(java.io.File repoRoot)
getRemoteUrl in interface VcsAccessorpublic HgRepository getRepository(java.io.File dir)
getRepository in interface MercurialAccessorpublic java.lang.String getRemoteUrl(HgRepository repository)
getRemoteUrl in interface MercurialAccessorpublic void resetToSpecificNodeId(HgRepository repository, java.lang.String version)
resetToSpecificNodeId in interface MercurialAccessorpublic long getLastCommitTimeOfPath(HgRepository repository, java.lang.String relativePath)
getLastCommitTimeOfPath in interface MercurialAccessorpublic java.util.Optional<HgChangeset> findChangesetByTag(HgRepository repository, java.lang.String tag)
findChangesetByTag in interface MercurialAccessorpublic java.util.Optional<HgChangeset> findChangesetById(HgRepository repository, java.lang.String id)
findChangesetById in interface MercurialAccessorpublic HgChangeset headOfBranch(HgRepository repository, java.lang.String defaultBranch)
headOfBranch in interface MercurialAccessorpublic void pull(HgRepository repository)
pull in interface MercurialAccessorpublic HgRepository cloneWithUrl(java.io.File directory, java.lang.String url)
cloneWithUrl in interface MercurialAccessor