~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/dirstate.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-06-06 14:42:00 UTC
  • mfrom: (2511.1.4 bzr.fast-commit)
  • Revision ID: pqm@pqm.ubuntu.com-20070606144200-rmsd3gyelimh8kal
(Ian Clatworthy) Improve 'bzr commit' time by removing some lock and dirstate._validate() calls

Show diffs side-by-side

added added

removed removed

Lines of Context:
1792
1792
        :param ghosts: A list of the revision_ids that are ghosts at the time
1793
1793
            of setting.
1794
1794
        """ 
1795
 
        self._validate()
1796
1795
        # TODO: generate a list of parent indexes to preserve to save 
1797
1796
        # processing specific parent trees. In the common case one tree will
1798
1797
        # be preserved - the left most parent.
1923
1922
        self._header_state = DirState.IN_MEMORY_MODIFIED
1924
1923
        self._dirblock_state = DirState.IN_MEMORY_MODIFIED
1925
1924
        self._id_index = id_index
1926
 
        self._validate()
1927
1925
 
1928
1926
    def _sort_entries(self, entry_list):
1929
1927
        """Given a list of entries, sort them into the right order.