Author: qmathe
Date: Wed Oct 15 20:22:01 2008
New Revision: 3696

URL: http://svn.gna.org/viewcvs/etoile?rev=3696&view=rev
Log:
Various small improvements and new utility methods in COObjectContext.

Improved context reverting to discard future objects that haven't yet been 
created at the wanted context version. Modified to scan the context history 
back 
to the initial version, this allows to revert the objects that aren't loaded 
but 
have to because they belong to the context. Until now, only loaded/registered 
objects were all properly reverted. Also modifed -objectForUUID:version: to call
 -commitMergeOfInstance:forObject:, this fixes the fact that the revert of 
objects not loaded wasn't recorded in their object bundle.

Corrected the loading of objects in -recreateObjectGraph of TestGraphRollback. 
Added tests to check the state of the object cache.

Modified:
    trunk/Etoile/Frameworks/CoreObject/COObjectContext+GraphRollback.m
    trunk/Etoile/Frameworks/CoreObject/COObjectContext.m
    trunk/Etoile/Frameworks/CoreObject/COObjectServer.m
    trunk/Etoile/Frameworks/CoreObject/ChangeLog
    trunk/Etoile/Frameworks/CoreObject/Headers/COObjectContext.h
    trunk/Etoile/Frameworks/CoreObject/TestGraphRollback.m


_______________________________________________
Etoile-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/etoile-cvs

Reply via email to