You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2006/11/26 09:23:48 UTC

svn commit: r479308 - /lenya/trunk/src/modules/sourcerepository/java/src/org/apache/lenya/cms/repository/SourceNode.java

Author: andreas
Date: Sun Nov 26 00:23:47 2006
New Revision: 479308

URL: http://svn.apache.org/viewvc?view=rev&rev=479308
Log:
Considering existence when checking in SourceNode

Modified:
    lenya/trunk/src/modules/sourcerepository/java/src/org/apache/lenya/cms/repository/SourceNode.java

Modified: lenya/trunk/src/modules/sourcerepository/java/src/org/apache/lenya/cms/repository/SourceNode.java
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules/sourcerepository/java/src/org/apache/lenya/cms/repository/SourceNode.java?view=diff&rev=479308&r1=479307&r2=479308
==============================================================================
--- lenya/trunk/src/modules/sourcerepository/java/src/org/apache/lenya/cms/repository/SourceNode.java (original)
+++ lenya/trunk/src/modules/sourcerepository/java/src/org/apache/lenya/cms/repository/SourceNode.java Sun Nov 26 00:23:47 2006
@@ -168,7 +168,7 @@
         try {
             String userName = getUserId();
             boolean newVersion = getSession().isDirty(this);
-            getRevisionController().reservedCheckIn(this, userName, true, newVersion);
+            getRevisionController().reservedCheckIn(this, userName, exists(), newVersion);
         } catch (Exception e) {
             throw new RepositoryException(e);
         }
@@ -228,6 +228,7 @@
                 throw new RuntimeException("Cannot delete source [" + this.sourceURI
                         + "]: not checked out!");
             } else {
+                this.data = null;
                 SourceUtil.delete(getRealSourceURI(), this.manager);
             }
         } catch (Exception e) {



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org