Rev 5142: ``bzrlib.mutabletree.MutableTree.commit`` will now support a passed in in http://bazaar.launchpad.net/~lifeless/bzr/commit

Robert Collins robertc at robertcollins.net
Sat Apr 10 10:22:20 BST 2010


At http://bazaar.launchpad.net/~lifeless/bzr/commit

------------------------------------------------------------
revno: 5142
revision-id: robertc at robertcollins.net-20100410092204-jrdwwf7vtfr0t41k
parent: pqm at pqm.ubuntu.com-20100408084859-lbi26gvsu2rtz370
committer: Robert Collins <robertc at robertcollins.net>
branch nick: commit
timestamp: Sat 2010-04-10 19:22:04 +1000
message:
  ``bzrlib.mutabletree.MutableTree.commit`` will now support a passed in
  config as in previous versions of bzrlib. (Robert Collins)
=== modified file 'NEWS'
--- a/NEWS	2010-04-08 08:48:59 +0000
+++ b/NEWS	2010-04-10 09:22:04 +0000
@@ -22,6 +22,9 @@
 Bug Fixes
 *********
 
+* ``bzrlib.mutabletree.MutableTree.commit`` will now support a passed in
+  config as in previous versions of bzrlib. (Robert Collins)
+
 * Make sure the ``ExecutablePath`` and ``InterpreterPath`` are set in
   Apport crash reports, to avoid "This problem report applies to a program
   which is not installed any more" error.

=== modified file 'bzrlib/commit.py'
--- a/bzrlib/commit.py	2010-04-06 06:40:54 +0000
+++ b/bzrlib/commit.py	2010-04-10 09:22:04 +0000
@@ -243,6 +243,8 @@
         """
         operation = OperationWithCleanups(self._commit)
         self.revprops = revprops or {}
+        # XXX: Can be set on __init__ or passed in - this is a bit ugly.
+        self.config = config or self.config
         return operation.run(
                message=message,
                timestamp=timestamp,
@@ -256,7 +258,6 @@
                working_tree=working_tree,
                local=local,
                reporter=reporter,
-               config=config,
                message_callback=message_callback,
                recursive=recursive,
                exclude=exclude,
@@ -264,7 +265,7 @@
 
     def _commit(self, operation, message, timestamp, timezone, committer,
             specific_files, rev_id, allow_pointless, strict, verbose,
-            working_tree, local, reporter, config, message_callback, recursive,
+            working_tree, local, reporter, message_callback, recursive,
             exclude, possible_master_transports):
         mutter('preparing to commit')
 




More information about the bazaar-commits mailing list