Part of bzrlib.add View In Hierarchy
Known subclasses: bzrlib.add.AddFromBaseAction, bzrlib.add.AddWithSkipLargeAction, bzrlib.tests.test_smart_add.AddCustomIDAction
Method | __init__ | Initialize an action which prints added files to an output stream. |
Method | __call__ | Add path to inventory. |
Method | skip_file | Test whether the given file should be skipped or not. |
Parameters | to_file | The stream to write into. This is expected to take Unicode paths. If not supplied, it will default to sys.stdout. |
should_print | If False, printing will be suppressed. |
The default action does nothing.
Parameters | inv | The inventory we are working with. |
path | The FastPath being added | |
kind | The kind of the object being added. |
Test whether the given file should be skipped or not. The default action never skips. Note this is only called during recursive adds :param tree: The tree we are working in :param path: The path being added :param kind: The kind of object being added. :param stat: Stat result for this file, if available already :return bool. True if the file should be skipped (not added)