~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/workingtree.py

Ensure Format4 working trees start with a dirstate.

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
import warnings
56
56
 
57
57
import bzrlib
58
 
from bzrlib import bzrdir, errors, ignores, osutils, urlutils
 
58
from bzrlib import bzrdir, dirstate, errors, ignores, osutils, urlutils
59
59
from bzrlib.atomicfile import AtomicFile
60
60
import bzrlib.branch
61
61
from bzrlib.conflicts import Conflict, ConflictList, CONFLICT_SUFFIXES
2123
2123
        branch = a_bzrdir.open_branch()
2124
2124
        if revision_id is None:
2125
2125
            revision_id = branch.last_revision()
2126
 
        inv = Inventory() 
 
2126
        inv = Inventory()
 
2127
        local_path = transport.local_abspath('dirstate')
 
2128
        dirstate.DirState.initialize(local_path)
2127
2129
        wt = WorkingTree4(a_bzrdir.root_transport.local_abspath('.'),
2128
2130
                         branch,
2129
2131
                         inv,