summaryrefslogtreecommitdiff
path: root/fastimport/processors/filter_processor.py
diff options
context:
space:
mode:
Diffstat (limited to 'fastimport/processors/filter_processor.py')
-rw-r--r--fastimport/processors/filter_processor.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/fastimport/processors/filter_processor.py b/fastimport/processors/filter_processor.py
index 3b35a0c..0228132 100644
--- a/fastimport/processors/filter_processor.py
+++ b/fastimport/processors/filter_processor.py
@@ -17,7 +17,6 @@
"""Import processor that filters the input (and doesn't import)."""
-from bzrlib import osutils
from fastimport import (
commands,
helpers,
@@ -191,11 +190,11 @@ class FilterProcessor(processor.ImportProcessor):
def _path_to_be_kept(self, path):
"""Does the given path pass the filtering criteria?"""
if self.excludes and (path in self.excludes
- or osutils.is_inside_any(self.excludes, path)):
+ or helpers.is_inside_any(self.excludes, path)):
return False
if self.includes:
return (path in self.includes
- or osutils.is_inside_any(self.includes, path))
+ or helpers.is_inside_any(self.includes, path))
return True
def _adjust_for_new_root(self, path):