@@ -0,0 +1,2025 @@
+/*%0A * Copyright 2000-2012 JetBrains s.r.o.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A * http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage org.jetbrains.idea.svn;%0A%0Aimport org.tmatesoft.svn.core.SVNException;%0Aimport org.tmatesoft.svn.core.internal.wc.DefaultSVNOptions;%0Aimport org.tmatesoft.svn.core.wc.*;%0A%0Aimport java.io.File;%0A%0A/**%0A * Created with IntelliJ IDEA.%0A * User: Irina.Chernushina%0A * Date: 8/7/12%0A * Time: 11:47 AM%0A */%0Apublic class Idea87218Test %7B%0A  private final static String ourWcPath = %22C:%5C%5CTestProjects%5C%5CsortedProjects%5C%5CSubversion%5C%5CSasha%5C%5Cmove2unv%22;%0A%0A  public static void main(String%5B%5D args) %7B%0A    try %7B%0A      SVNStatusClient client = new SVNStatusClient((ISVNRepositoryPool)null, new DefaultSVNOptions());%0A      File src = new File(ourWcPath, %22file1.txt%22);%0A      SVNStatus status = client.doStatus(src, false);%0A      assert status != null && SVNStatusType.STATUS_NORMAL.equals(status.getNodeStatus());%0A%0A      File dir = new File(ourWcPath, %22unversioned%22);%0A      SVNStatus dirStatus = client.doStatus(dir, false);%0A      assert dirStatus != null && SVNStatusType.STATUS_UNVERSIONED.equals(dirStatus.getNodeStatus());%0A%0A      File dst = new File(dir, %22file1.txt%22);%0A%0A      final SVNCopyClient copyClient = new SVNCopyClient((ISVNRepositoryPool)null, new DefaultSVNOptions());%0A      final SVNCopySource svnCopySource = new SVNCopySource(SVNRevision.UNDEFINED, SVNRevision.WORKING, src);%0A      copyClient.doCopy(new SVNCopySource%5B%5D%7BsvnCopySource%7D, dst, true, false, true);%0A    %7D%0A    catch (SVNException e) %7B%0A      e.printStackTrace();%0A    %7D%0A  %7D%0A%7D%0A

test to be send to Alex Kitaev for IDEA-87218