本文整理汇总了Java中org.tmatesoft.svn.core.io.SVNRepository.hasCapability方法的典型用法代码示例。如果您正苦于以下问题:Java SVNRepository.hasCapability方法的具体用法?Java SVNRepository.hasCapability怎么用?Java SVNRepository.hasCapability使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.tmatesoft.svn.core.io.SVNRepository
的用法示例。
在下文中一共展示了SVNRepository.hasCapability方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: supportsMergeTracking
import org.tmatesoft.svn.core.io.SVNRepository; //导入方法依赖的package包/类
@Override
public boolean supportsMergeTracking(@NotNull SVNURL url) throws VcsException {
SVNRepository repository = null;
try {
repository = myVcs.getSvnKitManager().createRepository(url);
return repository.hasCapability(SVNCapability.MERGE_INFO);
}
catch (SVNException e) {
throw new SvnBindException(e);
}
finally {
if (repository != null) {
repository.closeSession();
}
}
}
示例2: checkRepositoryVersion15
import org.tmatesoft.svn.core.io.SVNRepository; //导入方法依赖的package包/类
public static boolean checkRepositoryVersion15(final SvnVcs vcs, final String url) {
SVNRepository repository = null;
try {
repository = vcs.createRepository(url);
return repository.hasCapability(SVNCapability.MERGE_INFO);
}
catch (SVNException e) {
return false;
}
finally {
if (repository != null) {
repository.closeSession();
}
}
}
示例3: doesRepositorySupportMergeInfo
import org.tmatesoft.svn.core.io.SVNRepository; //导入方法依赖的package包/类
public static boolean doesRepositorySupportMergeInfo(final SvnVcs vcs, final SVNURL url) {
SVNRepository repository = null;
try {
repository = vcs.createRepository(url);
return repository.hasCapability(SVNCapability.MERGE_INFO);
}
catch (SVNException e) {
return false;
} finally {
if (repository != null) {
repository.closeSession();
}
}
}