/breezy/unstable

To get this branch, use:
bzr branch https://code.breezy-vcs.org/breezy/unstable

« back to all changes in this revision

Viewing changes to breezy/tests/per_repository_reference/test_get_rev_id_for_revno.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-24 01:39:33 UTC
  • mfrom: (3815.3776.6)
  • Revision ID: jelmer@jelmer.uk-20170524013933-ir4y4tqtrsiz2ka2
New upstream snapshot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
"""Tests for get_rev_id_for_revno on a repository with external references."""
18
18
 
19
 
from bzrlib import errors
20
 
from bzrlib.tests.per_repository_reference import (
 
19
from breezy import errors
 
20
from breezy.tests.per_repository_reference import (
21
21
    TestCaseWithExternalReferenceRepository,
22
22
    )
23
23
 
35
35
            stacked_on=tree.branch.base)
36
36
        repo = branch.repository
37
37
        # Sanity check: now repo has 'revid3', and base has 'revid' + 'revid2'
38
 
        self.assertEqual(set([revid3]),
 
38
        self.assertEqual({revid3},
39
39
                set(repo.bzrdir.open_repository().all_revision_ids()))
40
 
        self.assertEqual(set([revid2, revid]),
 
40
        self.assertEqual({revid2, revid},
41
41
                set(base.bzrdir.open_repository().all_revision_ids()))
42
42
        # get_rev_id_for_revno will find revno 1 == 'revid', even though
43
43
        # that revision can only be found in the fallback.