Fossil SCM

Fix merge3.test: changed merge conflict warnings.

florian 2023-11-05 12:30 test-fixes-2.24
Commit 3e61910072dc8fe979dab4613fae87142e140b75859ddd71752cca79b7a24bd4
1 file changed +12 -5
+12 -5
--- test/merge3.test
+++ test/merge3.test
@@ -24,15 +24,22 @@
2424
write_file t1 [join [string trim $basis] \n]\n
2525
write_file t2 [join [string trim $v1] \n]\n
2626
write_file t3 [join [string trim $v2] \n]\n
2727
fossil 3-way-merge t1 t2 t3 t4
2828
set x [read_file t4]
29
- regsub -all {<<<<<<< BEGIN MERGE CONFLICT: local copy shown first <+} $x \
30
- {MINE:} x
31
- regsub -all {\|\|\|\|\|\|\| COMMON ANCESTOR content follows \|+} $x {COM:} x
32
- regsub -all {======= MERGED IN content follows =+} $x {YOURS:} x
33
- regsub -all {>>>>>>> END MERGE CONFLICT >+} $x {END} x
29
+ regsub -all \
30
+ {<<<<<<< BEGIN MERGE CONFLICT: local copy shown first <+ \(line \d+\)} \
31
+ $x {MINE:} x
32
+ regsub -all \
33
+ {\|\|\|\|\|\|\| COMMON ANCESTOR content follows \|+ \(line \d+\)} \
34
+ $x {COM:} x
35
+ regsub -all \
36
+ {======= MERGED IN content follows =+ \(line \d+\)} \
37
+ $x {YOURS:} x
38
+ regsub -all \
39
+ {>>>>>>> END MERGE CONFLICT >+} \
40
+ $x {END} x
3441
set x [split [string trim $x] \n]
3542
set result [string trim $result]
3643
if {$x!=$result} {
3744
protOut " Expected \[$result\]"
3845
protOut " Got \[$x\]"
3946
--- test/merge3.test
+++ test/merge3.test
@@ -24,15 +24,22 @@
24 write_file t1 [join [string trim $basis] \n]\n
25 write_file t2 [join [string trim $v1] \n]\n
26 write_file t3 [join [string trim $v2] \n]\n
27 fossil 3-way-merge t1 t2 t3 t4
28 set x [read_file t4]
29 regsub -all {<<<<<<< BEGIN MERGE CONFLICT: local copy shown first <+} $x \
30 {MINE:} x
31 regsub -all {\|\|\|\|\|\|\| COMMON ANCESTOR content follows \|+} $x {COM:} x
32 regsub -all {======= MERGED IN content follows =+} $x {YOURS:} x
33 regsub -all {>>>>>>> END MERGE CONFLICT >+} $x {END} x
 
 
 
 
 
 
 
34 set x [split [string trim $x] \n]
35 set result [string trim $result]
36 if {$x!=$result} {
37 protOut " Expected \[$result\]"
38 protOut " Got \[$x\]"
39
--- test/merge3.test
+++ test/merge3.test
@@ -24,15 +24,22 @@
24 write_file t1 [join [string trim $basis] \n]\n
25 write_file t2 [join [string trim $v1] \n]\n
26 write_file t3 [join [string trim $v2] \n]\n
27 fossil 3-way-merge t1 t2 t3 t4
28 set x [read_file t4]
29 regsub -all \
30 {<<<<<<< BEGIN MERGE CONFLICT: local copy shown first <+ \(line \d+\)} \
31 $x {MINE:} x
32 regsub -all \
33 {\|\|\|\|\|\|\| COMMON ANCESTOR content follows \|+ \(line \d+\)} \
34 $x {COM:} x
35 regsub -all \
36 {======= MERGED IN content follows =+ \(line \d+\)} \
37 $x {YOURS:} x
38 regsub -all \
39 {>>>>>>> END MERGE CONFLICT >+} \
40 $x {END} x
41 set x [split [string trim $x] \n]
42 set result [string trim $result]
43 if {$x!=$result} {
44 protOut " Expected \[$result\]"
45 protOut " Got \[$x\]"
46

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button