~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/plugins/news_merge/news_merge.py

  • Committer: Tarmac
  • Author(s): Vincent Ladeuil
  • Date: 2017-01-30 14:42:05 UTC
  • mfrom: (6620.1.1 trunk)
  • Revision ID: tarmac-20170130144205-r8fh2xpmiuxyozpv
Merge  2.7 into trunk including fix for bug #1657238 [r=vila]

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
"""Merge logic for news_merge plugin."""
18
18
 
 
19
from __future__ import absolute_import
 
20
 
19
21
 
20
22
from bzrlib.plugins.news_merge.parser import simple_parse_lines
21
23
from bzrlib import merge, merge3
28
30
 
29
31
    def merge_text(self, params):
30
32
        """Perform a simple 3-way merge of a bzr NEWS file.
31
 
        
 
33
 
32
34
        Each section of a bzr NEWS file is essentially an ordered set of bullet
33
35
        points, so we can simply take a set of bullet points, determine which
34
36
        bullets to add and which to remove, sort, and reserialize.