Fossil SCM

Remove unnecessary first commit (that isn't actually a commit because I didn't call "fossil add" first...) in test 8.

joel 2016-05-11 22:23 UTC merge-renames
Commit 1385c8d456a4b2620d5a89faa6b5b8f0957e4670
1 file changed +8 -12
--- test/merge_renames.test
+++ test/merge_renames.test
@@ -251,35 +251,31 @@
251251
# Merging two branches that both add the same file #
252252
######################################################
253253
254254
test_setup
255255
256
-write_file f1 "f1"
257
-fossil commit -m "add f1"
256
+write_file f1 "f1.1"
257
+fossil add f1
258
+fossil commit -b b1 -m "add f1"
258259
259260
fossil update trunk
260
-write_file f2 "f2.1"
261
-fossil add f2
262
-fossil commit -b b1 -m "add f2"
263
-
264
-fossil update trunk
265
-write_file f2 "f2.2"
266
-fossil add f2
267
-fossil commit -b b2 -m "add f2"
261
+write_file f1 "f1.2"
262
+fossil add f1
263
+fossil commit -b b2 -m "add f1"
268264
269265
fossil update trunk
270266
fossil merge b1
271267
fossil merge b2
272268
test_status_list merge_renames-8-1 $RESULT {
273
- WARNING: no common ancestor for f2
269
+ WARNING: no common ancestor for f1
274270
}
275271
276272
fossil revert
277273
fossil merge --integrate b1
278274
fossil merge b2
279275
test_status_list merge_renames-8-2 $RESULT {
280
- WARNING: no common ancestor for f2
276
+ WARNING: no common ancestor for f1
281277
}
282278
283279
#############################################
284280
# Test 9 #
285281
# Merging a delete/rename/add combination #
286282
--- test/merge_renames.test
+++ test/merge_renames.test
@@ -251,35 +251,31 @@
251 # Merging two branches that both add the same file #
252 ######################################################
253
254 test_setup
255
256 write_file f1 "f1"
257 fossil commit -m "add f1"
 
258
259 fossil update trunk
260 write_file f2 "f2.1"
261 fossil add f2
262 fossil commit -b b1 -m "add f2"
263
264 fossil update trunk
265 write_file f2 "f2.2"
266 fossil add f2
267 fossil commit -b b2 -m "add f2"
268
269 fossil update trunk
270 fossil merge b1
271 fossil merge b2
272 test_status_list merge_renames-8-1 $RESULT {
273 WARNING: no common ancestor for f2
274 }
275
276 fossil revert
277 fossil merge --integrate b1
278 fossil merge b2
279 test_status_list merge_renames-8-2 $RESULT {
280 WARNING: no common ancestor for f2
281 }
282
283 #############################################
284 # Test 9 #
285 # Merging a delete/rename/add combination #
286
--- test/merge_renames.test
+++ test/merge_renames.test
@@ -251,35 +251,31 @@
251 # Merging two branches that both add the same file #
252 ######################################################
253
254 test_setup
255
256 write_file f1 "f1.1"
257 fossil add f1
258 fossil commit -b b1 -m "add f1"
259
260 fossil update trunk
261 write_file f1 "f1.2"
262 fossil add f1
263 fossil commit -b b2 -m "add f1"
 
 
 
 
 
264
265 fossil update trunk
266 fossil merge b1
267 fossil merge b2
268 test_status_list merge_renames-8-1 $RESULT {
269 WARNING: no common ancestor for f1
270 }
271
272 fossil revert
273 fossil merge --integrate b1
274 fossil merge b2
275 test_status_list merge_renames-8-2 $RESULT {
276 WARNING: no common ancestor for f1
277 }
278
279 #############################################
280 # Test 9 #
281 # Merging a delete/rename/add combination #
282

Keyboard Shortcuts

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