being given "heads" as the target so that it will in fact match when all heads
are given. fixes #267
if branch_label:
shares.append(branch_label)
if id_:
- shares.append(id_[0])
-
- #shares = branch_label or (id_[0] if id_ else None)
+ shares.extend(id_)
return [
tg for tg in targets
[c1, c2, d]
)
+ def test_filter_for_lineage_heads(self):
+ eq_(
+ self.map.filter_for_lineage(
+ [self.map.get_revision("f")],
+ "heads"
+ ),
+ [self.map.get_revision("f")]
+ )
+
def setUp(self):
self.map = RevisionMap(lambda: [
Revision('a', (), branch_labels='abranch'),
set([(self.b1.revision,), (self.b2.revision,)])
)
+ def test_stamp_to_heads_no_moves_needed(self):
+ revs = self.env._stamp_revs(
+ "heads", (self.b1.revision, self.b2.revision))
+ eq_(len(revs), 0)
+
class MergedPathTest(MigrationTest):