~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/plugins/changelog_merge/tests/test_changelog_merge.py

  • Committer: Patch Queue Manager
  • Date: 2012-03-28 16:13:49 UTC
  • mfrom: (6499.2.3 948339-config-caching)
  • Revision ID: pqm@pqm.ubuntu.com-20120328161349-2gsc0g11fcu43hlc
(vila) Properly share mutable config sections and save the branch config
 only during the final unlock (Vincent Ladeuil)

Show diffs side-by-side

added added

removed removed

Lines of Context:
186
186
            base_text, True)
187
187
        builder.change_contents('clog-id', other=other_text, this=this_text)
188
188
        merger = builder.make_merger(merge.Merge3Merger, ['clog-id'])
189
 
        merger.this_branch.get_config_stack().set(
 
189
        # The following can't use config stacks until the plugin itself does
 
190
        # ('this_branch' is already write locked at this point and as such
 
191
        # won't write the new value to disk where get_user_option can get it).
 
192
        merger.this_branch.get_config().set_user_option(
190
193
            'changelog_merge_files', 'ChangeLog')
191
194
        merge_hook_params = merge.MergeFileHookParams(merger, 'clog-id', None,
192
195
            'file', 'file', 'conflict')