@@ -20,11 +20,15 @@ Full jujutsu conflict without command and output interleaving:
2020 > EOF
2121
2222 $ dune runtest test. t
23+ File " test.t" , lines 1 -6, characters 0 -89:
24+ 1 | <<<<<<< Conflict 1 of 2
25+ 2 | A Small
26+ 3 | %%%%%% %
27+ 4 | Conflict
28+ 5 | >>>>>>> Conflict 1 of 2 ends
29+ 6 | $ echo tada
2330 Error: Conflict marker found. Please remove it or set (conflict_markers
2431 allow)
25- -> required by _build/ default /. cram. test. t/ cram. sh
26- -> required by _build/ default /. cram. test. t/ cram. out
27- -> required by alias test
2832 [1 ]
2933
3034Full jujutsu conflict with command and output interleaving:
@@ -39,11 +43,15 @@ Full jujutsu conflict with command and output interleaving:
3943 > EOF
4044
4145 $ dune runtest test. t
46+ File " test.t" , lines 1 -6, characters 0 -88:
47+ 1 | <<<<<<< Conflict 2 of 2
48+ 2 | $ foo
49+ 3 | %%%%%% %
50+ 4 | > bar
51+ 5 | >>>>>>> Conflict 2 of 2 ends
52+ 6 | $ echo tada
4253 Error: Conflict marker found. Please remove it or set (conflict_markers
4354 allow)
44- -> required by _build/ default /. cram. test. t/ cram. sh
45- -> required by _build/ default /. cram. test. t/ cram. out
46- -> required by alias test
4755 [1 ]
4856
4957Jujutsu default style conflict (diff + snapshot):
@@ -61,11 +69,18 @@ Jujutsu default style conflict (diff + snapshot):
6169 > EOF
6270
6371 $ dune runtest test. t
72+ File " test.t" , lines 1 -9, characters 0 -160:
73+ 1 | <<<<<<< Conflict 1 of 1
74+ 2 | %%%%%% % Changes from base to side # 1
75+ 3 | -apple
76+ 4 | + grapefruit
77+ 5 | ++++++ + Contents of side # 2
78+ 6 | APPLE
79+ 7 | GRAPE
80+ 8 | >>>>>>> Conflict 1 of 1 ends
81+ 9 | $ echo tada
6482 Error: Conflict marker found. Please remove it or set (conflict_markers
6583 allow)
66- -> required by _build/ default /. cram. test. t/ cram. sh
67- -> required by _build/ default /. cram. test. t/ cram. out
68- -> required by alias test
6984 [1 ]
7085
7186Jujutsu snapshot style conflict:
@@ -83,11 +98,18 @@ Jujutsu snapshot style conflict:
8398 > EOF
8499
85100 $ dune runtest test. t
101+ File " test.t" , lines 1 -9, characters 0 -175:
102+ 1 | <<<<<<< Conflict 1 of 1
103+ 2 | ++++++ + Contents of side # 1
104+ 3 | Left side
105+ 4 | ------ - Contents of base
106+ 5 | Original
107+ 6 | ++++++ + Contents of side # 2
108+ 7 | Right side
109+ 8 | >>>>>>> Conflict 1 of 1 ends
110+ 9 | $ echo tada
86111 Error: Conflict marker found. Please remove it or set (conflict_markers
87112 allow)
88- -> required by _build/ default /. cram. test. t/ cram. sh
89- -> required by _build/ default /. cram. test. t/ cram. out
90- -> required by alias test
91113 [1 ]
92114
93115Partial jujutsu conflicts are ignored:
@@ -117,3 +139,48 @@ Partial jujutsu conflicts are ignored:
117139 Error: Files _build/ default / test. t and _build/ default / test. t. corrected
118140 differ.
119141 [1 ]
142+ <<<<<<< Conflict 1 of 1
143+ ++++++ + Contents of side # 1
144+ %%%%%% % Changes from base to side # 2
145+
146+ Real jujutsu conflict with command output containing conflict markers:
147+
148+ $ cat > test. t << EOF
149+ > <<<<<<< Conflict 1 of 4
150+ > %%%%%% % Changes from base to side # 1
151+ > - Error: Conflict found. Please remove it or set (conflict allow)
152+ > + Error: Conflict marker found. Please remove it or set (conflict_markers
153+ > + allow)
154+ > -> required by _build/ default /. cram. test. t/ cram. sh
155+ > -> required by _build/ default /. cram. test. t/ cram. out
156+ > -> required by alias test
157+ > ++++++ + Contents of side # 2
158+ > File " _build/default/test.t" , lines 1 -6, characters 0 -52:
159+ > 1 | <<<<<<<
160+ > 2 | A Small
161+ > 3 | %%%%%% %
162+ > 4 | Conflict
163+ > 5 | >>>>>>>
164+ > 6 | $ echo tada
165+ > Error: Conflict found. Please remove it or set (conflict allow)
166+ > >>>>>>> Conflict 1 of 4 ends
167+ > [1 ]
168+ > EOF
169+
170+ $ dune runtest test. t
171+ + File " test.t" , lines 1 -18, characters 0 -622:
172+ + 1 | <<<<<<< Conflict 1 of 4
173+ + 2 | %%%%%% % Changes from base to side # 1
174+ + 3 | - Error: Conflict found. Please remove it or set (conflict allow)
175+ + ... .
176+ + 16 | 6 | $ echo tada
177+ + 17 | Error: Conflict found. Please remove it or set (conflict allow)
178+ + 18 | >>>>>>> Conflict 1 of 4 ends
179+ Error: Conflict marker found. Please remove it or set (conflict_markers
180+ allow)
181+ - -> required by _build/ default /. cram. test. t/ cram. sh
182+ - -> required by _build/ default /. cram. test. t/ cram. out
183+ - -> required by alias test
184+ [1 ]
185+
186+ >>>>>>> Conflict 1 of 1 ends
0 commit comments