b.ignores : module documentation

Part of bzrlib

Lists of ignore files, etc.
Function parse_ignore_file Read in all of the lines in the file and turn it into an ignore list
Function get_user_ignores Get the list of user ignored files, possibly creating it.
Function add_unique_user_ignores Add entries to the user's ignore list if not present.
Function add_runtime_ignores Add some ignore patterns that only exists in memory.
Function get_runtime_ignores Get the current set of runtime ignores.
Function tree_ignores_add_patterns Retrieve a list of ignores from the ignore file in a tree.
Function _set_user_ignores Fill out the user ignore file with the given patterns
def parse_ignore_file(f):
Read in all of the lines in the file and turn it into an ignore list
def get_user_ignores():
Get the list of user ignored files, possibly creating it.
def _set_user_ignores(patterns):
Fill out the user ignore file with the given patterns

This may raise an error if it doesn't have permission to write to the user ignore file. This is mostly used for testing, since it would be bad form to rewrite a user's ignore list. bzrlib only writes this file if it does not exist.

def add_unique_user_ignores(new_ignores):
Add entries to the user's ignore list if not present.
Parametersnew_ignoresA list of ignore patterns
ReturnsThe list of ignores that were added
def add_runtime_ignores(ignores):
Add some ignore patterns that only exists in memory.

This is used by some plugins that want bzr to ignore files, but don't want to change a users ignore list. (Such as a conversion script that needs to ignore temporary files, but does not want to modify the project's ignore list.)

ParametersignoresA list or generator of ignore patterns.
ReturnsNone
def get_runtime_ignores():
Get the current set of runtime ignores.
def tree_ignores_add_patterns(tree, name_pattern_list):
Retrieve a list of ignores from the ignore file in a tree.
ParameterstreeTree to retrieve the ignore list from.
Returns
API Documentation for Bazaar, generated by pydoctor at 2010-03-12 00:10:05.