summaryrefslogtreecommitdiff
path: root/fastimport/processors/filter_processor.py
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2010-09-12 02:46:46 +0200
committerJelmer Vernooij <jelmer@samba.org>2010-09-12 02:46:46 +0200
commita2b7d57515c835878004b26c76c523b2d6d21bb8 (patch)
tree7a7872885bd11272459d407f78d369e15486d942 /fastimport/processors/filter_processor.py
parentf9ba58d75e62aceb87391e2ac1fca126d5ac9b34 (diff)
downloadpython-fastimport-a2b7d57515c835878004b26c76c523b2d6d21bb8.tar.gz
remove dependency on bzrlib.
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):