~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/commit.py

  • Committer: Robert Collins
  • Date: 2007-09-12 06:33:40 UTC
  • mto: (2592.5.3 pack-repository)
  • mto: This revision was merged to the branch mainline in revision 2933.
  • Revision ID: robertc@robertcollins.net-20070912063340-rebmp08maq9lmiyl
Do not create many transient knit objects, saving 4% on commit.

Show diffs side-by-side

added added

removed removed

Lines of Context:
708
708
            # deleted files matching that filter.
709
709
            if is_inside_any(deleted_paths, path):
710
710
                continue
 
711
            # TODO: have the builder do the nested commit just-in-time IF and
 
712
            # only if needed.
 
713
            content_summary = self.work_tree.path_content_summary(path)
711
714
            if not specific_files or is_inside_any(specific_files, path):
712
 
                # TODO: fix double-stat here.
713
 
                if not self.work_tree.has_filename(path):
 
715
                if content_summary[0] == 'missing':
714
716
                    deleted_paths.add(path)
715
717
                    self.reporter.missing(path)
716
718
                    deleted_ids.append(file_id)
717
719
                    continue
718
 
            # TODO: have the builder do the nested commit just-in-time IF and
719
 
            # only if needed.
720
 
            content_summary = self.work_tree.path_content_summary(path)
721
720
            if content_summary[0] == 'tree-reference':
722
721
                # enforce repository nested tree policy.
723
722
                if (not self.work_tree.supports_tree_reference() or