/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/workingtree_implementations/test_commit.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-11-13 17:48:49 UTC
  • mfrom: (2946.3.5 tree_root_id)
  • Revision ID: pqm@pqm.ubuntu.com-20071113174849-2zsajpakcs8uy1bo
(John Arbash Meinel) Consolidate all calls to get the root id of a tree to use Tree.get_root_id()

Show diffs side-by-side

added added

removed removed

Lines of Context:
105
105
 
106
106
        tree_a.lock_read()
107
107
        try:
108
 
            root_id = tree_a.inventory.root.file_id
 
108
            root_id = tree_a.get_root_id()
109
109
            paths = [(path, ie.file_id)
110
110
                     for path, ie in tree_a.iter_entries_by_dir()]
111
111
        finally:
126
126
 
127
127
        tree_a.lock_read()
128
128
        try:
129
 
            root_id = tree_a.inventory.root.file_id
 
129
            root_id = tree_a.get_root_id()
130
130
            paths = [(path, ie.file_id)
131
131
                     for path, ie in tree_a.iter_entries_by_dir()]
132
132
        finally:
145
145
 
146
146
        tree_a.lock_read()
147
147
        try:
148
 
            root_id = tree_a.inventory.root.file_id
 
148
            root_id = tree_a.get_root_id()
149
149
        finally:
150
150
            tree_a.unlock()
151
151