[Updated] D11801: filemerge: rename _formatconflictmarker() since it formats a label
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Fri Nov 26 15:05:28 UTC 2021
Closed by commit rHG1eeec02cd919: filemerge: rename _formatconflictmarker() since it formats a label (authored by martinvonz).
This revision was automatically updated to reflect the committed changes.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D11801?vs=31123&id=31153
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D11801/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D11801
AFFECTED FILES
mercurial/filemerge.py
CHANGE DETAILS
diff --git a/mercurial/filemerge.py b/mercurial/filemerge.py
--- a/mercurial/filemerge.py
+++ b/mercurial/filemerge.py
@@ -846,7 +846,7 @@
return True, r, False
-def _formatconflictmarker(ctx, template, label, pad):
+def _formatlabel(ctx, template, label, pad):
"""Applies the given template to the ctx, prefixed by the label.
Pad is the minimum width of the label prefix, so that multiple markers
@@ -893,11 +893,11 @@
pad = max(len(l) for l in labels)
newlabels = [
- _formatconflictmarker(cd, tmpl, labels[0], pad),
- _formatconflictmarker(co, tmpl, labels[1], pad),
+ _formatlabel(cd, tmpl, labels[0], pad),
+ _formatlabel(co, tmpl, labels[1], pad),
]
if len(labels) > 2:
- newlabels.append(_formatconflictmarker(ca, tmpl, labels[2], pad))
+ newlabels.append(_formatlabel(ca, tmpl, labels[2], pad))
return newlabels
To: martinvonz, #hg-reviewers, Alphare
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20211126/25831d88/attachment-0002.html>
More information about the Mercurial-patches
mailing list