~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_dirstate.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-09-04 14:22:34 UTC
  • mfrom: (3680.1.1 bzr.dev)
  • Revision ID: pqm@pqm.ubuntu.com-20080904142234-pldim6ie032cb6am
(Jelmer) Deprecate Repository.revision_tree(None).

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
    errors,
26
26
    inventory,
27
27
    osutils,
 
28
    revision as _mod_revision,
28
29
    )
29
30
from bzrlib.memorytree import MemoryTree
30
31
from bzrlib.tests import (
966
967
            state.set_parent_trees(
967
968
                ((revid1, tree1.branch.repository.revision_tree(revid1)),
968
969
                 (revid2, tree2.branch.repository.revision_tree(revid2)),
969
 
                 ('ghost-rev', tree2.branch.repository.revision_tree(None))),
 
970
                 ('ghost-rev', tree2.branch.repository.revision_tree(
 
971
                                   _mod_revision.NULL_REVISION))),
970
972
                ['ghost-rev'])
971
973
            self.assertEqual([revid1, revid2, 'ghost-rev'],
972
974
                             state.get_parent_ids())
1603
1605
 
1604
1606
        # *really* cheesy way to just get an empty tree
1605
1607
        repo = self.make_repository('repo')
1606
 
        empty_tree = repo.revision_tree(None)
 
1608
        empty_tree = repo.revision_tree(_mod_revision.NULL_REVISION)
1607
1609
        state.set_parent_trees([('null:', empty_tree)], [])
1608
1610
 
1609
1611
        dirblock_names = [d[0] for d in state._dirblocks]