Funny I was writing revertAndClear() but decided to delete that from my email. I did this because the clear(), clear(int) and revert() constructs are RISC and sufficient in combination.  Up to you tho.

Cheers,
Alex

On Tue, Feb 17, 2009 at 4:41 PM, Emmanuel Lecharny <elecharny@apache.org> wrote:
Alex Karasulu wrote:
On Tue, Feb 17, 2009 at 12:55 PM, Emmanuel Lecharny <elecharny@apache.org>wrote:

 
So now I'm facing an interesting problem.

I have a system which revert every modification done on each method,
including the LDIF injected within this method, but the current
ChangeLog system is cumulative. ie, each time I revert the previou
smodification, it does not remove the operation from the log, but it
create the reverse operations and store them in the changelog.
   


Implement clear() and clear( int rev ) methods that clears the log of all
events and those up to a certain revision respectively.  What do you think?
 

Good idea. Will do that tomorrow. Maybe a revertAndClear( tag ) method could help.

--
--
cordialement, regards,

Emmanuel Lécharny
www.iktek.com
directory.apache.org