Search in sources :

Example 6 with SVNPropertyData

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());
}
Also used : SVNPropertyData(org.tmatesoft.svn.core.wc.SVNPropertyData) SVNWCClient(org.tmatesoft.svn.core.wc.SVNWCClient)

Example 7 with SVNPropertyData

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;
}
Also used : SVNPropertyData(org.tmatesoft.svn.core.wc.SVNPropertyData) SVNWCClient(org.tmatesoft.svn.core.wc.SVNWCClient) SvnVcs(org.jetbrains.idea.svn.SvnVcs)

Aggregations

SVNPropertyData (org.tmatesoft.svn.core.wc.SVNPropertyData)7 SVNWCClient (org.tmatesoft.svn.core.wc.SVNWCClient)4 Change (com.intellij.openapi.vcs.changes.Change)3 Test (org.junit.Test)3 SVNInfo (org.tmatesoft.svn.core.wc.SVNInfo)3 SmartList (com.intellij.util.SmartList)2 AtomicReference (java.util.concurrent.atomic.AtomicReference)2 SvnVcs (org.jetbrains.idea.svn.SvnVcs)1