* Add new ``append-revisions-only'' option with similar behaviour
as in standard bzr formats. (#206242)
+ * No longer calculate inventory sha1's for svn revisions. Should provide
+ some minor speed improvements.
+
INTERNALS
* Branching from a Subversion repository will now fetch right-hand side
self.inventory.revision_id = self.revid
# Escaping the commit message is really the task of the serialiser
rev.message = _escape_commit_message(rev.message)
- rev.inventory_sha1 = osutils.sha_string(
- self.target.serialise_inventory(self.inventory))
+ rev.inventory_sha1 = None
self.target.add_revision(self.revid, rev, self.inventory)
if signature is not None:
self.target.add_signature_text(self.revid, signature)
svn_fileprops = lazy_dict(lambda: self.branchprop_list.get_changed_properties(path, revnum))
parent_ids = self.revision_parents(revision_id, svn_fileprops=svn_fileprops, svn_revprops=svn_revprops)
- # Commit SVN revision properties to a Revision object
- class LazySvnRevision(Revision):
- inventory_sha1 = property(lambda rev: self.get_inventory_sha1(rev.revision_id))
-
- rev = LazySvnRevision(revision_id=revision_id, parent_ids=parent_ids)
+ rev = Revision(revision_id=revision_id, parent_ids=parent_ids,
+ inventory_sha1=None)
mapping.import_revision(svn_revprops, svn_fileprops, rev)