Rev 5142: (robertc) Fix regression in MutableTree.commit where it ignores passed in in file:///home/pqm/archives/thelove/bzr/%2Btrunk/
Canonical.com Patch Queue Manager
pqm at pqm.ubuntu.com
Sat Apr 10 11:54:41 BST 2010
At file:///home/pqm/archives/thelove/bzr/%2Btrunk/
------------------------------------------------------------
revno: 5142 [merge]
revision-id: pqm at pqm.ubuntu.com-20100410105439-cr8xiumgfetq517v
parent: pqm at pqm.ubuntu.com-20100408084859-lbi26gvsu2rtz370
parent: robertc at robertcollins.net-20100410092204-jrdwwf7vtfr0t41k
committer: Canonical.com Patch Queue Manager <pqm at pqm.ubuntu.com>
branch nick: +trunk
timestamp: Sat 2010-04-10 11:54:39 +0100
message:
(robertc) Fix regression in MutableTree.commit where it ignores passed in
configs. (Robert Collins)
modified:
NEWS NEWS-20050323055033-4e00b5db738777ff
bzrlib/commit.py commit.py-20050511101309-79ec1a0168e0e825
=== 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