[augeas-devel] Match trees on labels and values

Matthew Palmer matt at anchor.net.au
Tue Sep 1 01:23:19 UTC 2009


On Mon, Aug 31, 2009 at 03:09:38PM -0700, David Lutterkort wrote:
> One of the deficiencies of the way we do tree matching is that it wasn't
> possible to write a lens that strips quotes and adds them to new entries
> when needed.
> 
> This series of patches fixes that; for an example, see 5/6. The meat of
> this changeset is in 4/6, where we cleverly encode the labels and values of
> one level in the tree into a string and match it against an equally clever
> regexp, built from the label and value regexps of the lens.

I think I speak for... well, me, anyway... when I say that you rock very,
very hard, David.  Thanks for taking the effort to make this sort of edge
case work.

- Matt




More information about the augeas-devel mailing list