SVN__Configuration.st
changeset 1049 98d2212ba6c8
parent 954 51509a089cd7
child 1060 9e5422c98c45
--- a/SVN__Configuration.st	Fri Feb 17 15:30:42 2012 +0100
+++ b/SVN__Configuration.st	Thu Feb 23 16:11:53 2012 +0100
@@ -106,7 +106,7 @@
          #svnConfigurations2 as it was in my original version. 
          Rationale: #svnConfigurations2 does the literal array decoding,
          The real config is not stored under #svnConfigurations2. Therefore
-         using at:igAbsent: ALWAYS falls into ifabsent block.
+         using at:ifAbsent: ALWAYS falls into ifAbsent block.
          Using #svnConfigurations2 here is safe - the method belongs to
          libsvn as well as this class."
         Configurations := UserPreferences current svnConfigurations2.
@@ -118,14 +118,30 @@
     "Created: / 09-01-2010 / 15:46:07 / Jan Vrany <jan.vrany@fit.cvut.cz>"
     "Modified (format): / 05-10-2011 / 14:37:40 / cg"
     "Modified: / 17-01-2012 / 23:14:05 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+    "Modified (format): / 23-02-2012 / 15:11:22 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
 
 configurations: aCollection"of Configuration"
 
-    UserPreferences current at:#svnConfigurations2 put:aCollection
+    "JV@2012-02-23: Changed to not use UserPrefs current at:ifAbsent: but 
+     #svnConfigurations2: as it was in my original version. 
+     Rationale: #svnConfigurations2 does the literal array decoding,
+     The real config is not stored under #svnConfigurations2 key anyway.
+     Doing
+        UserPrefs current at:#svnConfigurations2 put: ...
+     Causes configuration structure __storeString__ to be saved,
+     which will lead into troubles later on as libsvn may not
+     be present. DONT DO THAT.
+     Using #svnConfigurations2: here is safe - the method belongs to
+     libsvn as well as this class.
+    "    
+
+    Configurations := aCollection.
+    UserPreferences current svnConfigurations2: aCollection.
 
     "Created: / 11-02-2010 / 16:17:18 / Jan Vrany <jan.vrany@fit.cvut.cz>"
     "Modified: / 05-10-2011 / 14:36:49 / cg"
+    "Modified (comment): / 23-02-2012 / 15:11:13 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
 
 current