[augeas-devel] Retrieving last modified node path (Was: First tests with aug mv)

David Lutterkort lutter at redhat.com
Fri Dec 16 23:47:33 UTC 2011


On Fri, 2011-12-16 at 14:01 +0100, Raphaël Pinson wrote:
> Resurrecting this old thread...
> 
> We now have more calls that have the same issue as rm, namely setm and
> clearm, which modify more than one node.
> 
> How could be adapt the idea to this? Maybe having several nodes under
> /augeas/tree/last_created and/or /augeas/tree/last_modified ?

I would follow the model set by save and create entries
underneath /augeas/events,
e.g. /augeas/events/removed, /augeas/events/inserted etc.

Right now, /augeas/events doesn't get cleared out in api_entry, but we
might consider doing that - or should we leave that to the user ? They
could then issue three 'rm' and just collect all the removed nodes.

David





More information about the augeas-devel mailing list