mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Added getCommonAncestor to AVMService + test. Added to console test app.
Changed createSnapshot flavors to return version ids just created instead of void. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3270 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -125,9 +125,10 @@ class RepositoryImpl implements Repository, Serializable
|
||||
|
||||
/**
|
||||
* Snapshot this repository. This creates a new version record.
|
||||
* @return The version id of the new snapshot.
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public void createSnapshot()
|
||||
public int createSnapshot()
|
||||
{
|
||||
// If the root isn't new, we can't take a snapshot since nothing has changed.
|
||||
if (!fRoot.getIsNew())
|
||||
@@ -151,6 +152,7 @@ class RepositoryImpl implements Repository, Serializable
|
||||
fSuper.getSession().save(versionRoot);
|
||||
// Increment the version id.
|
||||
fNextVersionID++;
|
||||
return fNextVersionID - 1;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user