diff options
author | Oleksandr Usov <oleksandr.usov@tibra.com> | 2012-08-21 13:49:34 +0100 |
---|---|---|
committer | Oleksandr Usov <oleksandr.usov@tibra.com> | 2012-08-21 13:49:34 +0100 |
commit | 4ad3c96f40b1842bca3506bbe43318f92235e93d (patch) | |
tree | 4c15e1c793872457e0e594a93a23c555bb39cc35 | |
parent | 675a26c4973e0f09a9384497a08b8dcb4475d351 (diff) | |
download | bzr-fastimport-4ad3c96f40b1842bca3506bbe43318f92235e93d.tar.gz |
Add unit test for --no-tags
-rw-r--r-- | tests/test_commands.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/test_commands.py b/tests/test_commands.py index 88fefd2..d5eee28 100644 --- a/tests/test_commands.py +++ b/tests/test_commands.py @@ -134,6 +134,16 @@ class TestFastExport(ExternalBase): # "bad Tag" should be exported as bad_Tag self.assertNotEqual(-1, data.find("reset refs/tags/bad_Tag")) + def test_no_tags(self): + tree = self.make_branch_and_tree("br") + tree.commit("pointless") + self.assertTrue(tree.branch.supports_tags()) + rev_id = tree.branch.dotted_revno_to_revision_id((1,)) + tree.branch.tags.set_tag("someTag", rev_id) + + data = self.run_bzr("fast-export --plain --no-tags br")[0] + self.assertEqual(-1, data.find("reset refs/tags/someTag")) + def test_baseline_option(self): tree = self.make_branch_and_tree("bl") |