~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: 2015-12-17 18:39:00 UTC
  • mfrom: (6606.1.2 fix-float)
  • Revision ID: pqm@pqm.ubuntu.com-20151217183900-0719du2uv1kwu3lc
(vila) Inline testtools private method to fix an issue in xenial (the
 private implementation has changed in an backward incompatible way).
 (Jelmer Vernooij)

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
        # 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).
189
192
        merger.this_branch.get_config().set_user_option(
190
193
            'changelog_merge_files', 'ChangeLog')
191
 
        merge_hook_params = merge.MergeHookParams(merger, 'clog-id', None,
 
194
        merge_hook_params = merge.MergeFileHookParams(merger, 'clog-id', None,
192
195
            'file', 'file', 'conflict')
193
196
        changelog_merger = changelog_merge.ChangeLogMerger(merger)
194
197
        return changelog_merger, merge_hook_params