当前位置: 首页>>代码示例>>Java>>正文


Java SVNRevision.toString方法代码示例

本文整理汇总了Java中org.tigris.subversion.svnclientadapter.SVNRevision.toString方法的典型用法代码示例。如果您正苦于以下问题:Java SVNRevision.toString方法的具体用法?Java SVNRevision.toString怎么用?Java SVNRevision.toString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.tigris.subversion.svnclientadapter.SVNRevision的用法示例。


在下文中一共展示了SVNRevision.toString方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getProperties

import org.tigris.subversion.svnclientadapter.SVNRevision; //导入方法依赖的package包/类
@Override
public ISVNProperty[] getProperties(SVNUrl url, SVNRevision revision, SVNRevision pegRevision, boolean recursive) throws SVNClientException {
    ListPropertiesCommand cmd = new ListPropertiesCommand(url, revision.toString(), recursive);
    exec(cmd);
    List<String> names = cmd.getPropertyNames();
    List<ISVNProperty> props = new ArrayList<ISVNProperty>(names.size());
    for (String name : names) {
        ISVNProperty prop = propertyGet(url, name);
        if (prop != null) {
            props.add(prop);
        }
    }
    return props.toArray(new ISVNProperty[props.size()]);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:15,代码来源:CommandlineClient.java

示例2: getValue

import org.tigris.subversion.svnclientadapter.SVNRevision; //导入方法依赖的package包/类
@Override
public Object getValue() throws IllegalAccessException, InvocationTargetException {
    SVNRevision r = entry.getLastChangedRevision();
    if (r instanceof SVNRevision.Number) {
        return ((SVNRevision.Number) r).getNumber();
    } else if (r == null) {
        return "";
    } else {
        return r.toString();
    }
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:12,代码来源:RepositoryPathNode.java

示例3: createSetup

import org.tigris.subversion.svnclientadapter.SVNRevision; //导入方法依赖的package包/类
private Setup createSetup (SVNDiffSummary summary, File file, SVNUrl leftUrl, SVNRevision leftRevision,
        SVNUrl rightUrl, String rightRevision) {
    FileInformation fi = null;
    Setup localSetup = wcSetups.get(file);
    boolean deleted = summary.getDiffKind() == SVNDiffKind.DELETED;
    boolean added = summary.getDiffKind() == SVNDiffKind.ADDED;
    if (localSetup != null) {
        // local file, diffing WC
        fi = cache.getStatus(file);
        if (added && (fi.getStatus() & FileInformation.STATUS_IN_REPOSITORY) == 0) {
            // don't override added status with modified
            fi = null;
        } else {
            deleted = (fi.getStatus() & (FileInformation.STATUS_VERSIONED_DELETEDLOCALLY
                    | FileInformation.STATUS_VERSIONED_REMOVEDLOCALLY)) != 0;
            added = (fi.getStatus() & (FileInformation.STATUS_VERSIONED_ADDEDLOCALLY
                    | FileInformation.STATUS_NOTVERSIONED_NEWLOCALLY)) != 0;
        }
    }
    if (fi == null) {
        fi = new RevisionsFileInformation(summary);
    }
    wcSetups.remove(file);
    Setup setup = new Setup(file, repositoryUrl,
            leftUrl, added ? null : leftRevision.toString(),
            SVNUrlUtils.getRelativePath(repositoryUrl, leftUrl) + "@" + leftRevision,
            rightUrl, deleted ? null : rightRevision,
            Setup.REVISION_CURRENT.equals(rightRevision)
            ? file.getName() + "@" + rightRevision
            : SVNUrlUtils.getRelativePath(repositoryUrl, rightUrl) + "@" + rightRevision,
            fi);
    setup.setNode(new DiffNode(setup, new SvnFileNode(file), FileInformation.STATUS_ALL));
    return setup;
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:35,代码来源:RevisionSetupsSupport.java


注:本文中的org.tigris.subversion.svnclientadapter.SVNRevision.toString方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。