Mercurial > hg
diff mercurial/simplemerge.py @ 48558:2dbee604a4f0
simplemerge: clarify names of functions that render conflict markers
Differential Revision: https://phab.mercurial-scm.org/D11975
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Tue, 11 Jan 2022 16:54:42 -0800 |
parents | c6649c53073f |
children | b5e1283c0475 |
line wrap: on
line diff
--- a/mercurial/simplemerge.py Fri Jan 07 22:16:22 2022 -0800 +++ b/mercurial/simplemerge.py Tue Jan 11 16:54:42 2022 -0800 @@ -341,7 +341,7 @@ return result -def merge_lines( +def render_markers( m3, name_a=None, name_b=None, @@ -390,7 +390,7 @@ return lines, conflicts -def _mergediff(m3, name_a, name_b, name_base): +def render_mergediff(m3, name_a, name_b, name_base): lines = [] conflicts = False for what, group_lines in m3.merge_groups(): @@ -500,7 +500,7 @@ [localctx.path(), otherctx.path(), None], opts.get('label', []) ) if mode == b'mergediff': - lines, conflicts = _mergediff(m3, name_a, name_b, name_base) + lines, conflicts = render_mergediff(m3, name_a, name_b, name_base) else: extrakwargs = { 'minimize': True, @@ -509,7 +509,7 @@ extrakwargs['base_marker'] = b'|||||||' extrakwargs['name_base'] = name_base extrakwargs['minimize'] = False - lines, conflicts = merge_lines( + lines, conflicts = render_markers( m3, name_a=name_a, name_b=name_b, **extrakwargs )