Fossil SCM
Replace 'exec mv/rm' with 'file rename/delete' in tests.
Commit
c3d36f164ca87e71f5e3a007ada77f2439aaeff4
Parent
261c132280b2064…
2 files changed
+6
-6
+2
-2
+6
-6
| --- test/merge_renames.test | ||
| +++ test/merge_renames.test | ||
| @@ -44,11 +44,11 @@ | ||
| 44 | 44 | write_file f1 "line6" |
| 45 | 45 | fossil commit -m "c4" |
| 46 | 46 | |
| 47 | 47 | fossil update pivot |
| 48 | 48 | fossil mv f1 f2 |
| 49 | -exec mv f1 f2 | |
| 49 | +file rename -force f1 f2 | |
| 50 | 50 | fossil commit -b rename -m "c5" |
| 51 | 51 | |
| 52 | 52 | fossil merge trunk |
| 53 | 53 | fossil commit -m "trunk merged" |
| 54 | 54 | |
| @@ -74,11 +74,11 @@ | ||
| 74 | 74 | } else { |
| 75 | 75 | test merge_renames-1 1 |
| 76 | 76 | } |
| 77 | 77 | |
| 78 | 78 | fossil close -f |
| 79 | -exec rm rep.fossil | |
| 79 | +file delete rep.fossil | |
| 80 | 80 | |
| 81 | 81 | ###################################### |
| 82 | 82 | # Test 2 # |
| 83 | 83 | # Reported: Ticket [74413366fe5067] # |
| 84 | 84 | ###################################### |
| @@ -94,11 +94,11 @@ | ||
| 94 | 94 | write_file f2 "line2" |
| 95 | 95 | fossil add f2 |
| 96 | 96 | fossil commit -m "newfile" |
| 97 | 97 | |
| 98 | 98 | fossil mv f2 f2new |
| 99 | -exec mv f2 f2new | |
| 99 | +file rename -force f2 f2new | |
| 100 | 100 | fossil commit -m "rename" |
| 101 | 101 | |
| 102 | 102 | fossil update pivot |
| 103 | 103 | write_file f1 "line3" |
| 104 | 104 | fossil commit -b branch -m "change" |
| @@ -126,11 +126,11 @@ | ||
| 126 | 126 | } else { |
| 127 | 127 | test merge_renames-2 1 |
| 128 | 128 | } |
| 129 | 129 | |
| 130 | 130 | fossil close -f |
| 131 | -exec rm rep.fossil | |
| 131 | +file delete rep.fossil | |
| 132 | 132 | |
| 133 | 133 | ###################################### |
| 134 | 134 | # Test 3 # |
| 135 | 135 | # Reported: Ticket [30b28cf351] # |
| 136 | 136 | ###################################### |
| @@ -146,11 +146,11 @@ | ||
| 146 | 146 | write_file f2 "line2" |
| 147 | 147 | fossil add f2 |
| 148 | 148 | fossil commit -m "newfile" |
| 149 | 149 | |
| 150 | 150 | fossil mv f2 f2new |
| 151 | -exec mv f2 f2new | |
| 151 | +file rename -force f2 f2new | |
| 152 | 152 | fossil commit -m "rename" |
| 153 | 153 | |
| 154 | 154 | fossil update pivot |
| 155 | 155 | write_file f1 "line3" |
| 156 | 156 | fossil commit -b branch -m "change" |
| @@ -178,11 +178,11 @@ | ||
| 178 | 178 | } else { |
| 179 | 179 | test merge_renames-2 1 |
| 180 | 180 | } |
| 181 | 181 | |
| 182 | 182 | fossil close -f |
| 183 | -exec rm rep.fossil | |
| 183 | +file delete rep.fossil | |
| 184 | 184 | |
| 185 | 185 | ###################################### |
| 186 | 186 | # Test 4 # |
| 187 | 187 | # Reported: Ticket [67176c3aa4] # |
| 188 | 188 | ###################################### |
| 189 | 189 |
| --- test/merge_renames.test | |
| +++ test/merge_renames.test | |
| @@ -44,11 +44,11 @@ | |
| 44 | write_file f1 "line6" |
| 45 | fossil commit -m "c4" |
| 46 | |
| 47 | fossil update pivot |
| 48 | fossil mv f1 f2 |
| 49 | exec mv f1 f2 |
| 50 | fossil commit -b rename -m "c5" |
| 51 | |
| 52 | fossil merge trunk |
| 53 | fossil commit -m "trunk merged" |
| 54 | |
| @@ -74,11 +74,11 @@ | |
| 74 | } else { |
| 75 | test merge_renames-1 1 |
| 76 | } |
| 77 | |
| 78 | fossil close -f |
| 79 | exec rm rep.fossil |
| 80 | |
| 81 | ###################################### |
| 82 | # Test 2 # |
| 83 | # Reported: Ticket [74413366fe5067] # |
| 84 | ###################################### |
| @@ -94,11 +94,11 @@ | |
| 94 | write_file f2 "line2" |
| 95 | fossil add f2 |
| 96 | fossil commit -m "newfile" |
| 97 | |
| 98 | fossil mv f2 f2new |
| 99 | exec mv f2 f2new |
| 100 | fossil commit -m "rename" |
| 101 | |
| 102 | fossil update pivot |
| 103 | write_file f1 "line3" |
| 104 | fossil commit -b branch -m "change" |
| @@ -126,11 +126,11 @@ | |
| 126 | } else { |
| 127 | test merge_renames-2 1 |
| 128 | } |
| 129 | |
| 130 | fossil close -f |
| 131 | exec rm rep.fossil |
| 132 | |
| 133 | ###################################### |
| 134 | # Test 3 # |
| 135 | # Reported: Ticket [30b28cf351] # |
| 136 | ###################################### |
| @@ -146,11 +146,11 @@ | |
| 146 | write_file f2 "line2" |
| 147 | fossil add f2 |
| 148 | fossil commit -m "newfile" |
| 149 | |
| 150 | fossil mv f2 f2new |
| 151 | exec mv f2 f2new |
| 152 | fossil commit -m "rename" |
| 153 | |
| 154 | fossil update pivot |
| 155 | write_file f1 "line3" |
| 156 | fossil commit -b branch -m "change" |
| @@ -178,11 +178,11 @@ | |
| 178 | } else { |
| 179 | test merge_renames-2 1 |
| 180 | } |
| 181 | |
| 182 | fossil close -f |
| 183 | exec rm rep.fossil |
| 184 | |
| 185 | ###################################### |
| 186 | # Test 4 # |
| 187 | # Reported: Ticket [67176c3aa4] # |
| 188 | ###################################### |
| 189 |
| --- test/merge_renames.test | |
| +++ test/merge_renames.test | |
| @@ -44,11 +44,11 @@ | |
| 44 | write_file f1 "line6" |
| 45 | fossil commit -m "c4" |
| 46 | |
| 47 | fossil update pivot |
| 48 | fossil mv f1 f2 |
| 49 | file rename -force f1 f2 |
| 50 | fossil commit -b rename -m "c5" |
| 51 | |
| 52 | fossil merge trunk |
| 53 | fossil commit -m "trunk merged" |
| 54 | |
| @@ -74,11 +74,11 @@ | |
| 74 | } else { |
| 75 | test merge_renames-1 1 |
| 76 | } |
| 77 | |
| 78 | fossil close -f |
| 79 | file delete rep.fossil |
| 80 | |
| 81 | ###################################### |
| 82 | # Test 2 # |
| 83 | # Reported: Ticket [74413366fe5067] # |
| 84 | ###################################### |
| @@ -94,11 +94,11 @@ | |
| 94 | write_file f2 "line2" |
| 95 | fossil add f2 |
| 96 | fossil commit -m "newfile" |
| 97 | |
| 98 | fossil mv f2 f2new |
| 99 | file rename -force f2 f2new |
| 100 | fossil commit -m "rename" |
| 101 | |
| 102 | fossil update pivot |
| 103 | write_file f1 "line3" |
| 104 | fossil commit -b branch -m "change" |
| @@ -126,11 +126,11 @@ | |
| 126 | } else { |
| 127 | test merge_renames-2 1 |
| 128 | } |
| 129 | |
| 130 | fossil close -f |
| 131 | file delete rep.fossil |
| 132 | |
| 133 | ###################################### |
| 134 | # Test 3 # |
| 135 | # Reported: Ticket [30b28cf351] # |
| 136 | ###################################### |
| @@ -146,11 +146,11 @@ | |
| 146 | write_file f2 "line2" |
| 147 | fossil add f2 |
| 148 | fossil commit -m "newfile" |
| 149 | |
| 150 | fossil mv f2 f2new |
| 151 | file rename -force f2 f2new |
| 152 | fossil commit -m "rename" |
| 153 | |
| 154 | fossil update pivot |
| 155 | write_file f1 "line3" |
| 156 | fossil commit -b branch -m "change" |
| @@ -178,11 +178,11 @@ | |
| 178 | } else { |
| 179 | test merge_renames-2 1 |
| 180 | } |
| 181 | |
| 182 | fossil close -f |
| 183 | file delete rep.fossil |
| 184 | |
| 185 | ###################################### |
| 186 | # Test 4 # |
| 187 | # Reported: Ticket [67176c3aa4] # |
| 188 | ###################################### |
| 189 |
+2
-2
| --- test/revert.test | ||
| +++ test/revert.test | ||
| @@ -91,16 +91,16 @@ | ||
| 91 | 91 | # |
| 92 | 92 | # Add f0 |
| 93 | 93 | write_file f0 "f0" |
| 94 | 94 | fossil add f0 |
| 95 | 95 | # Remove f1 |
| 96 | -exec rm f1 | |
| 96 | +file delete f1 | |
| 97 | 97 | fossil rm f1 |
| 98 | 98 | # Edit f2 |
| 99 | 99 | write_file f2 "f2.1" |
| 100 | 100 | # Rename f3 to f3n |
| 101 | -exec mv f3 f3n | |
| 101 | +file rename -force f3 f3n | |
| 102 | 102 | fossil mv f3 f3n |
| 103 | 103 | |
| 104 | 104 | # Test 'fossil revert' with no arguments |
| 105 | 105 | # |
| 106 | 106 | revert-test 1 -addremove { |
| 107 | 107 |
| --- test/revert.test | |
| +++ test/revert.test | |
| @@ -91,16 +91,16 @@ | |
| 91 | # |
| 92 | # Add f0 |
| 93 | write_file f0 "f0" |
| 94 | fossil add f0 |
| 95 | # Remove f1 |
| 96 | exec rm f1 |
| 97 | fossil rm f1 |
| 98 | # Edit f2 |
| 99 | write_file f2 "f2.1" |
| 100 | # Rename f3 to f3n |
| 101 | exec mv f3 f3n |
| 102 | fossil mv f3 f3n |
| 103 | |
| 104 | # Test 'fossil revert' with no arguments |
| 105 | # |
| 106 | revert-test 1 -addremove { |
| 107 |
| --- test/revert.test | |
| +++ test/revert.test | |
| @@ -91,16 +91,16 @@ | |
| 91 | # |
| 92 | # Add f0 |
| 93 | write_file f0 "f0" |
| 94 | fossil add f0 |
| 95 | # Remove f1 |
| 96 | file delete f1 |
| 97 | fossil rm f1 |
| 98 | # Edit f2 |
| 99 | write_file f2 "f2.1" |
| 100 | # Rename f3 to f3n |
| 101 | file rename -force f3 f3n |
| 102 | fossil mv f3 f3n |
| 103 | |
| 104 | # Test 'fossil revert' with no arguments |
| 105 | # |
| 106 | revert-test 1 -addremove { |
| 107 |