test: use more elaborated content in ``test-conflict.t``
authorPierre-Yves David <pierre-yves.david@fb.com>
Mon, 09 Jun 2014 03:49:07 -0700
changeset 21920 1d04d3fe616d
parent 21919 c350cff58444
child 21921 ecc1387138ba
test: use more elaborated content in ``test-conflict.t`` We are going to introduce a setting to control the "minimisation" feature of ``internal:merge``. So we need more interesting conflicting content. We change the content in an independent changeset to make sure the coming code change leave the output unchanged.
tests/test-conflict.t
--- a/tests/test-conflict.t	Fri Jul 18 17:52:18 2014 -0500
+++ b/tests/test-conflict.t	Mon Jun 09 03:49:07 2014 -0700
@@ -1,12 +1,36 @@
   $ hg init
-  $ echo "nothing" > a
+  $ cat << EOF > a
+  > Small Mathematical Series.
+  > One
+  > Two
+  > Three
+  > Four
+  > Five
+  > Hop we are done.
+  > EOF
   $ hg add a
   $ hg commit -m ancestor
-  $ echo "something" > a
+  $ cat << EOF > a
+  > Small Mathematical Series.
+  > 1
+  > 2
+  > 3
+  > 4
+  > 5
+  > Hop we are done.
+  > EOF
   $ hg commit -m branch1
   $ hg co 0
   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
-  $ echo "something else" > a
+  $ cat << EOF > a
+  > Small Mathematical Series.
+  > 1
+  > 2
+  > 3
+  > 6
+  > 8
+  > Hop we are done.
+  > EOF
   $ hg commit -m branch2
   created new head
 
@@ -19,14 +43,21 @@
   [1]
 
   $ hg id
-  32e80765d7fe+75234512624c+ tip
+  618808747361+c0c68e4fe667+ tip
 
   $ cat a
-  <<<<<<< local: 32e80765d7fe - test: branch2
-  something else
+  Small Mathematical Series.
+  1
+  2
+  3
+  <<<<<<< local: 618808747361 - test: branch2
+  6
+  8
   =======
-  something
-  >>>>>>> other: 75234512624c  - test: branch1
+  4
+  5
+  >>>>>>> other: c0c68e4fe667  - test: branch1
+  Hop we are done.
 
   $ hg status
   M a
@@ -46,11 +77,18 @@
   [1]
 
   $ cat a
+  Small Mathematical Series.
+  1
+  2
+  3
   <<<<<<< local: test 2
-  something else
+  6
+  8
   =======
-  something
+  4
+  5
   >>>>>>> other: test 1
+  Hop we are done.
 
 Verify line splitting of custom conflict marker which causes multiple lines
 
@@ -66,11 +104,18 @@
   [1]
 
   $ cat a
+  Small Mathematical Series.
+  1
+  2
+  3
   <<<<<<< local: test 2
-  something else
+  6
+  8
   =======
-  something
+  4
+  5
   >>>>>>> other: test 1
+  Hop we are done.
 
 Verify line trimming of custom conflict marker using multi-byte characters
 
@@ -99,11 +144,18 @@
   [1]
 
   $ cat a
+  Small Mathematical Series.
+  1
+  2
+  3
   <<<<<<< local: 123456789012345678901234567890123456789012345678901234567890\xe3\x81\x82... (esc)
-  something else
+  6
+  8
   =======
-  something
+  4
+  5
   >>>>>>> other: branch1
+  Hop we are done.
 
 Verify basic conflict markers
 
@@ -119,8 +171,15 @@
   [1]
 
   $ cat a
+  Small Mathematical Series.
+  1
+  2
+  3
   <<<<<<< local
-  something else
+  6
+  8
   =======
-  something
+  4
+  5
   >>>>>>> other
+  Hop we are done.