summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2010-09-04 23:59:19 +0200
committerJelmer Vernooij <jelmer@samba.org>2010-09-04 23:59:19 +0200
commite5431ed8be6250cdbde567f552ba4e924240cd1b (patch)
treee8360fa38369058ad02c561f1af48a0378d57402
parent6ab18137eb44fb43be6fb13e8bfafa619b441491 (diff)
downloadpython-fastimport-e5431ed8be6250cdbde567f552ba4e924240cd1b.tar.gz
Remove bzr-specific bits from processor.
-rw-r--r--fastimport/processor.py19
1 files changed, 1 insertions, 18 deletions
diff --git a/fastimport/processor.py b/fastimport/processor.py
index 7811a20..d3c4866 100644
--- a/fastimport/processor.py
+++ b/fastimport/processor.py
@@ -24,7 +24,6 @@ import sys
import time
from bzrlib import debug
-from bzrlib.errors import NotBranchError
from bzrlib.trace import (
mutter,
note,
@@ -42,7 +41,7 @@ class ImportProcessor(object):
known_params = []
- def __init__(self, bzrdir, params=None, verbose=False, outf=None):
+ def __init__(self, params=None, verbose=False, outf=None):
if outf is None:
self.outf = sys.stdout
else:
@@ -53,22 +52,6 @@ class ImportProcessor(object):
else:
self.params = params
self.validate_parameters()
- self.bzrdir = bzrdir
- if bzrdir is None:
- # Some 'importers' don't need a repository to write to
- self.working_tree = None
- self.branch = None
- self.repo = None
- else:
- try:
- # Might be inside a branch
- (self.working_tree, self.branch) = bzrdir._get_tree_branch()
- self.repo = self.branch.repository
- except NotBranchError:
- # Must be inside a repository
- self.working_tree = None
- self.branch = None
- self.repo = bzrdir.open_repository()
# Handlers can set this to request exiting cleanly without
# iterating through the remaining commands