summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_revision.py7
-rw-r--r--tests/test_version_traversal.py8
2 files changed, 14 insertions, 1 deletions
diff --git a/tests/test_revision.py b/tests/test_revision.py
index ef1202a..c2c1410 100644
--- a/tests/test_revision.py
+++ b/tests/test_revision.py
@@ -1575,7 +1575,7 @@ class NormalizedDownRevTest(DownIterateTest):
Revision("b2", "b1", dependencies="a3"),
Revision("b3", "b2"),
Revision("b4", "b3", dependencies="a3"),
- Revision("b5", "b4"),
+ Revision("b5", "b4", dependencies="b4"),
]
)
@@ -1587,6 +1587,11 @@ class NormalizedDownRevTest(DownIterateTest):
# "a3" is not included because ancestor b2 is also dependent
eq_(b4._normalized_down_revisions, ("b3",))
+ def test_dupe_dependency(self):
+ b5 = self.map.get_revision("b5")
+ eq_(b5._all_down_revisions, ("b4",))
+ eq_(b5._normalized_down_revisions, ("b4",))
+
def test_branch_traversal(self):
self._assert_iteration(
"b4",
diff --git a/tests/test_version_traversal.py b/tests/test_version_traversal.py
index d3709d2..e9399df 100644
--- a/tests/test_version_traversal.py
+++ b/tests/test_version_traversal.py
@@ -1147,6 +1147,14 @@ class DependsOnOwnDownrevTest(MigrationTest):
set(["a2"]),
)
+ def test_traverse_down(self):
+ self._assert_downgrade(
+ self.a1.revision,
+ self.a2.revision,
+ [self.down_(self.a2)],
+ set(["a1"]),
+ )
+
class DependsOnBranchTestFour(MigrationTest):
@classmethod