You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jspwiki.apache.org by ja...@apache.org on 2009/11/28 00:43:25 UTC
svn commit: r885053 -
/incubator/jspwiki/trunk/src/java/org/apache/wiki/content/ContentManager.java
Author: jalkanen
Date: Fri Nov 27 23:43:24 2009
New Revision: 885053
URL: http://svn.apache.org/viewvc?rev=885053&view=rev
Log:
Improved comments.
Modified:
incubator/jspwiki/trunk/src/java/org/apache/wiki/content/ContentManager.java
Modified: incubator/jspwiki/trunk/src/java/org/apache/wiki/content/ContentManager.java
URL: http://svn.apache.org/viewvc/incubator/jspwiki/trunk/src/java/org/apache/wiki/content/ContentManager.java?rev=885053&r1=885052&r2=885053&view=diff
==============================================================================
--- incubator/jspwiki/trunk/src/java/org/apache/wiki/content/ContentManager.java (original)
+++ incubator/jspwiki/trunk/src/java/org/apache/wiki/content/ContentManager.java Fri Nov 27 23:43:24 2009
@@ -416,7 +416,10 @@
Node nd = (Node)copierSession.getItem( path );
Node versions;
-
+
+ //
+ // Ensure that the versions subnode exists.
+ //
if( !nd.hasNode( WIKI_VERSIONS ) )
{
versions = nd.addNode( WIKI_VERSIONS );
@@ -426,6 +429,11 @@
versions = nd.getNode( WIKI_VERSIONS );
}
+ //
+ // Figure out the path to store the contents of the current version,
+ // create the Node, and copy the properties from the current version
+ // to it.
+ //
String versionName = Integer.toString( currentVersion );
if( versions.hasNode( versionName ) )