summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2011-04-28 14:26:11 +0200
committerJelmer Vernooij <jelmer@samba.org>2011-04-28 14:26:11 +0200
commit65baca4207268205e512f4ffde2413dd18b11fb2 (patch)
tree577d2ebe920536f5f3c459390ddf4c673ab4f9b3
parent63705994322a57eca5c9df5eb4a7e9ed5415ff4d (diff)
downloadbzr-fastimport-65baca4207268205e512f4ffde2413dd18b11fb2.tar.gz
Fix 'bzr fast-import' bzrdir argument and add a blackbox test.
-rw-r--r--cmds.py2
-rw-r--r--tests/test_commands.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/cmds.py b/cmds.py
index e77c220..0902194 100644
--- a/cmds.py
+++ b/cmds.py
@@ -310,7 +310,7 @@ class cmd_fast_import(Command):
'export-marks': export_marks,
}
return _run(source, generic_processor.GenericProcessor,
- control=control, params=params, verbose=verbose,
+ bzrdir=control, params=params, verbose=verbose,
user_map=user_map)
def _generate_info(self, source):
diff --git a/tests/test_commands.py b/tests/test_commands.py
index f003f03..c817a8a 100644
--- a/tests/test_commands.py
+++ b/tests/test_commands.py
@@ -134,4 +134,4 @@ class TestFastImport(ExternalBase):
tree = self.make_branch_and_tree("br")
self.build_tree_contents([('file.fi', simple_fast_import_stream)])
data = self.run_bzr("fast-import file.fi br")[0]
- self.assertEquals(3, tree.branch.revno())
+ self.assertEquals(1, tree.branch.revno())