~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/rename_map.py

  • Committer: Aaron Bentley
  • Date: 2009-03-15 00:37:24 UTC
  • mto: This revision was merged to the branch mainline in revision 4196.
  • Revision ID: aaron@aaronbentley.com-20090315003724-v9ffosbn7zval7l0
Split up guess_renames further.

Show diffs side-by-side

added added

removed removed

Lines of Context:
233
233
                task.finished()
234
234
        finally:
235
235
            basis.unlock()
 
236
        rn._update_tree(tree, required_parents, matches)
 
237
 
 
238
    @staticmethod
 
239
    def _update_tree(tree, required_parents, matches):
236
240
        tree.add(required_parents)
237
241
        reversed = dict((v, k) for k, v in matches.iteritems())
238
242
        child_to_parent = sorted(
241
245
        paths_forward = sorted(matches.keys())
242
246
        file_ids_forward = [matches[p] for p in paths_forward]
243
247
        tree.add(paths_forward, file_ids_forward)
244