本文整理汇总了Java中org.tigris.subversion.svnclientadapter.SVNRevision.BASE属性的典型用法代码示例。如果您正苦于以下问题:Java SVNRevision.BASE属性的具体用法?Java SVNRevision.BASE怎么用?Java SVNRevision.BASE使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.tigris.subversion.svnclientadapter.SVNRevision
的用法示例。
在下文中一共展示了SVNRevision.BASE属性的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: testDiffURLs_Issue239010
public void testDiffURLs_Issue239010 () throws Exception {
// init
File project = new File(wc, "project");
File trunk = new File(project, "trunk");
final File file = new File(trunk, "file");
final File fileDelete = new File(trunk, "deletedFolder/deleted");
final File fileAdded = new File(trunk, "added");
trunk.mkdirs();
file.createNewFile();
fileDelete.getParentFile().mkdir();
fileDelete.createNewFile();
add(project);
commit(project);
SVNRevision rev = getClient().getInfoFromWorkingCopy(file).getRevision();
RepositoryFile left = new RepositoryFile(repoUrl, wc.getName() + "/project/trunk", rev);
RepositoryFile right = new RepositoryFile(repoUrl, wc.getName() + "/project/trunk", SVNRevision.BASE);
TestKit.write(file, "modification");
fileAdded.createNewFile();
add(fileAdded);
delete(fileDelete);
commit(trunk);
update(fileDelete.getParentFile());
final RevisionSetupsSupport revSupp = new RevisionSetupsSupport(left, right, repoUrl, new Context(new File[] { trunk }));
final AtomicReference<Setup[]> ref = new AtomicReference<>();
new SvnProgressSupport() {
@Override
protected void perform () {
ref.set(revSupp.computeSetupsBetweenRevisions(this));
}
}.start(RequestProcessor.getDefault(), repoUrl, "bbb").waitFinished();
Setup[] setups = ref.get();
assertNotNull(setups);
assertEquals(3, setups.length);
Map<File, Setup> setupMap = new HashMap<>();
for (Setup s : setups) {
setupMap.put(s.getBaseFile(), s);
}
assertEquals(FileInformation.STATUS_VERSIONED_MODIFIEDLOCALLY, setupMap.get(file).getInfo().getStatus());
assertEquals(FileInformation.STATUS_VERSIONED_ADDEDLOCALLY, setupMap.get(fileAdded).getInfo().getStatus());
assertEquals(FileInformation.STATUS_VERSIONED_REMOVEDLOCALLY, setupMap.get(fileDelete).getInfo().getStatus());
}