SVN: refresh nested copies upon "detect nested copies" is selected; default=true
authorirengrig <Irina.Chernushina@jetbrains.com>
Wed, 27 Jan 2010 13:58:56 +0000 (16:58 +0300)
committerirengrig <Irina.Chernushina@jetbrains.com>
Wed, 27 Jan 2010 13:58:56 +0000 (16:58 +0300)
plugins/svn4idea/src/org/jetbrains/idea/svn/SvnConfigurable.java
plugins/svn4idea/src/org/jetbrains/idea/svn/SvnConfiguration.java

index 2850926f6df9d0484869817b9a625c90a5c5c292..81d62d7b46250f1f8753a2ad21ef6ca09918d3ce 100644 (file)
@@ -178,6 +178,9 @@ public class SvnConfigurable implements Configurable {
     configuration.setConfigurationDirectory(myConfigurationDirectoryText.getText());
     configuration.setUseDefaultConfiguation(myUseDefaultCheckBox.isSelected());
     configuration.setIsUseDefaultProxy(myUseCommonProxy.isSelected());
+    if ((! configuration.DETECT_NESTED_COPIES) && (configuration.DETECT_NESTED_COPIES != myDetectNestedWorkingCopiesCheckBox.isSelected())) {
+      SvnVcs.getInstance(myProject).invokeRefreshSvnRoots(true);
+    }
     configuration.DETECT_NESTED_COPIES = myDetectNestedWorkingCopiesCheckBox.isSelected(); 
     configuration.UPDATE_LOCK_ON_DEMAND = myLockOnDemand.isSelected();
     configuration.setIgnoreSpacesInAnnotate(myIgnoreWhitespaceDifferenciesInCheckBox.isSelected());
index 272cd962f912980a9841991e07d1f30450cf6a47..6d4b81273d3f36c51c71e94c014b9ff2888cbe02 100644 (file)
@@ -83,7 +83,7 @@ public class SvnConfiguration implements ProjectComponent, JDOMExternalizable {
   public boolean MERGE_DIFF_USE_ANCESTRY = true;
   public boolean UPDATE_LOCK_ON_DEMAND = false;
   public boolean IGNORE_SPACES_IN_MERGE = false;
-  public boolean DETECT_NESTED_COPIES = false;
+  public boolean DETECT_NESTED_COPIES = true;
   public boolean IGNORE_SPACES_IN_ANNOTATE = true;
   public boolean SHOW_MERGE_SOURCES_IN_ANNOTATE = true;