Add a new SubtreeSymbolTransform.
commit9bf12835c1b5c153bf578c5ac8f64ee0c348c0dc
authormhagger <mhagger@be7e6eca-30d4-0310-a8e5-ac0d63af7087>
Sun, 21 Mar 2010 21:29:00 +0000 (21 21:29 +0000)
committermhagger <mhagger@be7e6eca-30d4-0310-a8e5-ac0d63af7087>
Sun, 21 Mar 2010 21:29:00 +0000 (21 21:29 +0000)
tree1b49bde8cfb5086dbe6af893128649bf2e1f8579
parent9b05ef30e0b2601f9baaa4192338646c2e893c34
Add a new SubtreeSymbolTransform.

Patch by: Jon Foster <jon.foster@cabot.co.uk>

This wraps another SymbolTransform and limits it to only apply within
a certain directory; e.g.,

    SubtreeSymbolTransform('myrepo/some_module',
            RegexpSymbolTransform('.*-br', r'\1-branch'))

will only do the regexp transform within the specified module.

This allows more powerful transforms than the existing
SubtreeSymbolMapper.

git-svn-id: http://cvs2svn.tigris.org/svn/cvs2svn/trunk@5079 be7e6eca-30d4-0310-a8e5-ac0d63af7087
cvs2svn_lib/symbol_transform.py