本文整理汇总了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()]);
}
示例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();
}
}
示例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;
}