Rev 1817: use revmeta interface rather than branchprop interface. in file:///data/jelmer/bzr-svn/trunk/

Jelmer Vernooij jelmer at samba.org
Fri Sep 5 23:08:44 BST 2008


At file:///data/jelmer/bzr-svn/trunk/

------------------------------------------------------------
revno: 1817
revision-id: jelmer at samba.org-20080905220842-lwdf1ynt8uqj8kvs
parent: jelmer at samba.org-20080905220825-5un2327sps5sl6bi
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: trunk
timestamp: Sat 2008-09-06 00:08:42 +0200
message:
  use revmeta interface rather than branchprop interface.
modified:
  commit.py                      commit.py-20060607190346-qvq128wgfubhhgm2-1
=== modified file 'commit.py'
--- a/commit.py	2008-09-05 21:14:20 +0000
+++ b/commit.py	2008-09-05 22:08:42 +0000
@@ -139,7 +139,7 @@
         :param timestamp: Optional timestamp recorded for commit.
         :param timezone: Optional timezone for timestamp.
         :param committer: Optional committer to set for commit.
-        :param revprops: Revision properties to set.
+        :param revprops: Bazaar revision properties to set.
         :param revision_id: Revision id for the new revision.
         :param old_inv: Optional revision on top of which 
             the commit is happening
@@ -190,7 +190,7 @@
         if self.base_revid == NULL_REVISION:
             self._base_branch_props = {}
         else:
-            self._base_branch_props = lazy_dict({}, self.repository.branchprop_list.get_properties, self.base_path, self.base_revnum)
+            self._base_branch_props = self.repository._revmeta_provider.get_revision(self.base_path, self.base_revnum).get_fileprops()
         self.supports_custom_revprops = self.repository.transport.has_capability("commit-revprops")
         if (self.supports_custom_revprops is None and 
             self.base_mapping.can_use_revprops and 




More information about the bazaar-commits mailing list