~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/workingtree.py

  • Committer: Aaron Bentley
  • Date: 2006-12-11 23:32:28 UTC
  • mto: (2255.6.1 dirstate)
  • mto: This revision was merged to the branch mainline in revision 2322.
  • Revision ID: aaron.bentley@utoronto.ca-20061211233228-wh8chcfx949px2c2
Stop generating unique roots for WorkingTree3

Show diffs side-by-side

added added

removed removed

Lines of Context:
2247
2247
        branch = a_bzrdir.open_branch()
2248
2248
        if revision_id is None:
2249
2249
            revision_id = branch.last_revision()
2250
 
        inv = Inventory(root_id=generate_ids.gen_root_id())
 
2250
        inv = self._initial_inventory()
2251
2251
        wt = self._tree_class(a_bzrdir.root_transport.local_abspath('.'),
2252
2252
                         branch,
2253
2253
                         inv,
2273
2273
            wt.unlock()
2274
2274
        return wt
2275
2275
 
 
2276
    def _initial_inventory(self):
 
2277
        return Inventory()
 
2278
 
2276
2279
    def __init__(self):
2277
2280
        super(WorkingTreeFormat3, self).__init__()
2278
2281
        self._matchingbzrdir = bzrdir.BzrDirMetaFormat1()
2320
2323
        """See WorkingTreeFormat.get_format_description()."""
2321
2324
        return "Working tree format 4"
2322
2325
 
 
2326
    def _initial_inventory(self):
 
2327
        return Inventory(root_id=generate_ids.gen_root_id())
2323
2328
 
2324
2329
# formats which have no format string are not discoverable
2325
2330
# and not independently creatable, so are not registered.