[PATCH] merge: concatenate default conflict marker at parsing phase of .py

Yuya Nishihara yuya at tcha.org
Tue Aug 2 13:03:20 UTC 2016


# HG changeset patch
# User Yuya Nishihara <yuya at tcha.org>
# Date 1430790694 -32400
#      Tue May 05 10:51:34 2015 +0900
# Node ID 93655d2b1ba1268615fd80ff3acfa04cea6f8f14
# Parent  f6a3e181d30c8556d0188bd6d190229198fc8a01
merge: concatenate default conflict marker at parsing phase of .py

"+" operations are unnecessary.

diff --git a/mercurial/filemerge.py b/mercurial/filemerge.py
--- a/mercurial/filemerge.py
+++ b/mercurial/filemerge.py
@@ -508,11 +508,11 @@ def _formatconflictmarker(repo, ctx, tem
     # 8 for the prefix of conflict marker lines (e.g. '<<<<<<< ')
     return util.ellipsis(mark, 80 - 8)
 
-_defaultconflictmarker = ('{node|short} ' +
-    '{ifeq(tags, "tip", "", "{tags} ")}' +
-    '{if(bookmarks, "{bookmarks} ")}' +
-    '{ifeq(branch, "default", "", "{branch} ")}' +
-    '- {author|user}: {desc|firstline}')
+_defaultconflictmarker = ('{node|short} '
+                          '{ifeq(tags, "tip", "", "{tags} ")}'
+                          '{if(bookmarks, "{bookmarks} ")}'
+                          '{ifeq(branch, "default", "", "{branch} ")}'
+                          '- {author|user}: {desc|firstline}')
 
 _defaultconflictlabels = ['local', 'other']
 


More information about the Mercurial-devel mailing list