D3897: tests: prevent conflict markers in test case from triggering warnings

hooper (Danny Hooper) phabricator at mercurial-scm.org
Mon Jul 9 22:37:24 UTC 2018


hooper created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  Broadly, having lines that begin with several '<' tends to trigger tools that
  try to warn you about unresolved conflicts. It will save some headaches to
  tweak this string literal to avoid that.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D3897

AFFECTED FILES
  tests/test-simplemerge.py

CHANGE DETAILS

diff --git a/tests/test-simplemerge.py b/tests/test-simplemerge.py
--- a/tests/test-simplemerge.py
+++ b/tests/test-simplemerge.py
@@ -109,13 +109,13 @@
        so we may see their result.
      The two are the same,
      But after they are produced,
-       they have different names.
-<<<<<<< LAO
-=======
+       they have different names.\
+\n<<<<<<< LAO\
+\n=======
 
        -- The Way of Lao-Tzu, tr. Wing-tsit Chan
-
->>>>>>> TAO
+\
+\n>>>>>>> TAO
 """)
 
 class TestMerge3(TestCase):



To: hooper, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list