diff options
author | Richard Wilbur <richard.wilbur@gmail.com> | 2014-04-15 23:45:18 -0600 |
---|---|---|
committer | Richard Wilbur <richard.wilbur@gmail.com> | 2014-04-15 23:45:18 -0600 |
commit | 77b2c2fe733f9ada57878c60814d4224804d74f6 (patch) | |
tree | ec9346c8845ccf66a28ed54db26b4968ad57cc8d /tests/test_commands.py | |
parent | 0fef0ad22cb027f0a6c8de4e79008f493e681b4d (diff) | |
parent | 4ad3c96f40b1842bca3506bbe43318f92235e93d (diff) | |
download | bzr-fastimport-77b2c2fe733f9ada57878c60814d4224804d74f6.tar.gz |
Add a flag to fast-export to not export tags.(Alex Usov)
Diffstat (limited to 'tests/test_commands.py')
-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") |