/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/repository.py

  • Committer: Jelmer Vernooij
  • Date: 2006-06-08 11:38:41 UTC
  • mto: This revision was merged to the branch mainline in revision 1753.
  • Revision ID: jelmer@samba.org-20060608113841-ca51ebd824e5ab78
Make the commit message the first argument of CommitBuilder.commit().

Show diffs side-by-side

added added

removed removed

Lines of Context:
1918
1918
 
1919
1919
        self._generate_revision_if_needed()
1920
1920
 
1921
 
    def commit(self):
 
1921
    def commit(self, message):
1922
1922
        """Make the actual commit.
1923
1923
 
1924
1924
        :return: The revision id of the recorded revision.
1926
1926
        rev = Revision(timestamp=self._timestamp,
1927
1927
                       timezone=self._timezone,
1928
1928
                       committer=self._committer,
1929
 
                       message=self.message,
 
1929
                       message=message,
1930
1930
                       inventory_sha1=self.inv_sha1,
1931
1931
                       revision_id=self._new_revision_id,
1932
1932
                       properties=self._revprops)
1936
1936
        return self._new_revision_id
1937
1937
 
1938
1938
    def finish_inventory(self):
1939
 
        """Tell the builder that the inventory is finished.
1940
 
        """
 
1939
        """Tell the builder that the inventory is finished."""
1941
1940
        self.new_inventory.revision = self._new_revision_id
1942
1941
        self.inv_sha1 = self.repository.add_inventory(
1943
1942
            self._new_revision_id,
2045
2044
        versionedfile.add_lines(self._new_revision_id, parents, new_lines)
2046
2045
        versionedfile.clear_cache()
2047
2046
 
2048
 
    def set_message(self, message):
2049
 
        """Set the log message for this commit.
2050
 
        
2051
 
        :param message: The commit message.
2052
 
        """
2053
 
        self.message = message
2054
 
 
2055
2047
 
2056
2048
# Copied from xml.sax.saxutils
2057
2049
def _unescape_xml(data):