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
IOException
public void shutdown() throws IOException
IOException
public void createRevisionMap(long revision, List<org.eclipse.jgit.lib.Ref> branchHeads) throws IOException
IOException
public List<SvnRevisionMapper.SvnRevisionMap> getRevisionHeads(long revision) throws IOException
revision
- IOException
public org.eclipse.jgit.lib.ObjectId getRevisionBranchHead(long revision, String branchName) throws IOException
revision
- branchName
- IOException
public List<SvnRevisionMapper.SvnRevisionMapResults> getRevisionBranches(long targetRevision, String targetPath) throws IOException
IOException
public String getBranchName(String longBranchId, long revision)
GitBranchUtils.ILargeBranchNameProvider
getBranchName
in interface GitBranchUtils.ILargeBranchNameProvider
public String storeLargeBranchName(String branchName, long revision)
storeLargeBranchName
in interface GitBranchUtils.ILargeBranchNameProvider
public void repackMapFile() throws IOException
IOException
public void createMergeData(long revision, String targetBranch, List<BranchMergeInfo> mergeInfo) throws IOException
IOException
public List<BranchMergeInfo> getMergeBranches(long revision, String targetBranch) throws IOException
revision
- targetBranch
- IOException
public Set<Long> getMergeBranchRevisions(long revision, String targetBranch, String mergeBranch) throws IOException
IOException
public void truncateTo(long longRevision) throws IOException
IOException
Copyright © 2004–2014 The Kuali Foundation. All rights reserved.