public class SvnRevisionMapper extends Object implements GitBranchUtils.ILargeBranchNameProvider
| Modifier and Type | Class and Description |
|---|---|
static class |
SvnRevisionMapper.SvnRevisionMap |
static class |
SvnRevisionMapper.SvnRevisionMapResults |
| Constructor and Description |
|---|
SvnRevisionMapper(org.eclipse.jgit.lib.Repository repo) |
| Modifier and Type | Method and Description |
|---|---|
void |
createMergeData(long revision,
String targetBranch,
List<BranchMergeInfo> mergeInfo) |
void |
createRevisionMap(long revision,
List<org.eclipse.jgit.lib.Ref> branchHeads) |
String |
getBranchName(String longBranchId,
long revision)
Pass in the sha-1 id of the branch and if known the full branch name will be returned.
|
List<BranchMergeInfo> |
getMergeBranches(long revision,
String targetBranch)
Get the list of branch merge info for the revision and target branch
given.
|
Set<Long> |
getMergeBranchRevisions(long revision,
String targetBranch,
String mergeBranch) |
List<SvnRevisionMapper.SvnRevisionMapResults> |
getRevisionBranches(long targetRevision,
String targetPath) |
org.eclipse.jgit.lib.ObjectId |
getRevisionBranchHead(long revision,
String branchName)
Get the object id of the commit refered to by the branch at the revision
given.
|
List<SvnRevisionMapper.SvnRevisionMap> |
getRevisionHeads(long revision)
Get the list of all references at the svn revision number given.
|
void |
initialize() |
void |
repackMapFile() |
void |
shutdown() |
String |
storeLargeBranchName(String branchName,
long revision) |
void |
truncateTo(long longRevision) |
public SvnRevisionMapper(org.eclipse.jgit.lib.Repository repo)
public void initialize() throws IOException
IOExceptionpublic void shutdown() throws IOException
IOExceptionpublic void createRevisionMap(long revision, List<org.eclipse.jgit.lib.Ref> branchHeads) throws IOException
IOExceptionpublic List<SvnRevisionMapper.SvnRevisionMap> getRevisionHeads(long revision) throws IOException
revision - IOExceptionpublic org.eclipse.jgit.lib.ObjectId getRevisionBranchHead(long revision, String branchName) throws IOException
revision - branchName - IOExceptionpublic List<SvnRevisionMapper.SvnRevisionMapResults> getRevisionBranches(long targetRevision, String targetPath) throws IOException
IOExceptionpublic String getBranchName(String longBranchId, long revision)
GitBranchUtils.ILargeBranchNameProvidergetBranchName in interface GitBranchUtils.ILargeBranchNameProviderpublic String storeLargeBranchName(String branchName, long revision)
storeLargeBranchName in interface GitBranchUtils.ILargeBranchNameProviderpublic void repackMapFile() throws IOException
IOExceptionpublic void createMergeData(long revision, String targetBranch, List<BranchMergeInfo> mergeInfo) throws IOException
IOExceptionpublic List<BranchMergeInfo> getMergeBranches(long revision, String targetBranch) throws IOException
revision - targetBranch - IOExceptionpublic Set<Long> getMergeBranchRevisions(long revision, String targetBranch, String mergeBranch) throws IOException
IOExceptionpublic void truncateTo(long longRevision) throws IOException
IOExceptionCopyright © 2004–2014 The Kuali Foundation. All rights reserved.