本文整理汇总了Java中org.tmatesoft.svn.core.wc.SVNStatus.getChangelistName方法的典型用法代码示例。如果您正苦于以下问题:Java SVNStatus.getChangelistName方法的具体用法?Java SVNStatus.getChangelistName怎么用?Java SVNStatus.getChangelistName使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.tmatesoft.svn.core.wc.SVNStatus
的用法示例。
在下文中一共展示了SVNStatus.getChangelistName方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: create
import org.tmatesoft.svn.core.wc.SVNStatus; //导入方法依赖的package包/类
@Nullable
public static Status create(@Nullable SVNStatus status) {
Status result = null;
if (status != null) {
result =
new Status(status.getURL(), status.getFile(), NodeKind.from(status.getKind()), status.getRevision(), status.getCommittedRevision(),
StatusType.from(status.getContentsStatus()), StatusType.from(status.getPropertiesStatus()),
StatusType.from(status.getRemoteContentsStatus()), StatusType.from(status.getRemotePropertiesStatus()),
status.isLocked(), status.isCopied(), status.isSwitched(), status.getCopyFromURL(), Lock.create(status.getRemoteLock()),
Lock.create(status.getLocalLock()), status.getChangelistName(),
TreeConflictDescription.create(status.getTreeConflict()));
result.setIsConflicted(status.isConflicted());
result.setNodeStatus(StatusType.from(status.getNodeStatus()));
result.setRemoteNodeStatus(StatusType.from(status.getRemoteNodeStatus()));
result.setRemoteRevision(status.getRemoteRevision());
result.setRepositoryRootURL(status.getRepositoryRootURL());
}
return result;
}
示例2: getCurrentMapping
import org.tmatesoft.svn.core.wc.SVNStatus; //导入方法依赖的package包/类
@Nullable
public static String getCurrentMapping(final Project project, final File file) {
final SvnVcs vcs = SvnVcs.getInstance(project);
final SVNStatusClient statusClient = vcs.createStatusClient();
try {
final SVNStatus status = statusClient.doStatus(file, false);
return status == null ? null : status.getChangelistName();
}
catch (SVNException e) {
final SVNErrorCode errorCode = e.getErrorMessage().getErrorCode();
if (SVNErrorCode.WC_NOT_DIRECTORY.equals(errorCode) || SVNErrorCode.WC_NOT_FILE.equals(errorCode)) {
LOG.debug("Logging only, exception is valid (caught) here", e);
} else {
LOG.info("Logging only, exception is valid (caught) here", e);
}
}
return null;
}
示例3: changeListNameFromStatus
import org.tmatesoft.svn.core.wc.SVNStatus; //导入方法依赖的package包/类
@Nullable
private String changeListNameFromStatus(final SVNStatus status) {
if (WorkingCopyFormat.getInstance(status.getWorkingCopyFormat()).supportsChangelists()) {
if (SVNNodeKind.FILE.equals(status.getKind())) {
final String clName = status.getChangelistName();
return (clName == null) ? null : clName;
}
}
// always null for earlier versions
return null;
}