180
_runtime_ignores = set()
183
def add_runtime_ignores(ignores):
184
"""Add some ignore patterns that only exists in memory.
186
This is used by some plugins that want bzr to ignore files,
187
but don't want to change a users ignore list.
188
(Such as a conversion script, that needs to ignore some files,
189
but must preserve as much of the exact content boing converted.)
191
:param ignores: A list or generator of ignore patterns.
194
global _runtime_ignores
195
_runtime_ignores.update(set(ignores))
198
def get_runtime_ignores():
199
"""Get the current set of runtime ignores."""
200
return _runtime_ignores