use of org.tmatesoft.svn.core.wc.SVNPropertyData in project intellij-community by JetBrains.
the class SvnRollbackTest method getProperty.
private String getProperty(File file, String name) throws SVNException {
final SVNWCClient client = myVcs.getSvnKitManager().createWCClient();
final SVNPropertyData data = client.doGetProperty(file, name, SVNRevision.UNDEFINED, SVNRevision.WORKING);
return data == null ? null : new String(data.getValue().getBytes());
}
use of org.tmatesoft.svn.core.wc.SVNPropertyData in project intellij-community by JetBrains.
the class SvnMergeInfoTest method assertMergeInfo.
private void assertMergeInfo(@NotNull File file, @NotNull String... values) throws SVNException {
// TODO: Replace with ClientFactory model
final SvnVcs vcs = SvnVcs.getInstance(myProject);
final SVNWCClient wcClient = vcs.getSvnKitManager().createWCClient();
final SVNPropertyData data = wcClient.doGetProperty(file, "svn:mergeinfo", SVNRevision.UNDEFINED, SVNRevision.WORKING);
assert data != null && data.getValue() != null;
boolean result = false;
for (String value : values) {
result |= value.equals(data.getValue().getString());
}
assert result;
}
Aggregations