Fossil SCM
Added test for fossil revert with a file marked for RENAME but not actually renamed on disk to test/revert.test.
Commit
8b727021af01020a46a5c5fc63bc5b78fb8ac303
Parent
0e555dee63dab15…
1 file changed
+15
+15
| --- test/revert.test | ||
| +++ test/revert.test | ||
| @@ -176,5 +176,20 @@ | ||
| 176 | 176 | |
| 177 | 177 | revert-test 2-1 {} { |
| 178 | 178 | REVERT f1 |
| 179 | 179 | DELETE f1n |
| 180 | 180 | } -exists {f1} -notexists {f1n} |
| 181 | + | |
| 182 | + | |
| 183 | +# Test reverting a rename in the repo but not completed in the file | |
| 184 | +# system | |
| 185 | +repo_init | |
| 186 | +write_file f1 "f1" | |
| 187 | +fossil add f1 | |
| 188 | +fossil commit -m "add f1" | |
| 189 | +fossil mv --soft f1 f1new | |
| 190 | +test 3-mv-1 {[file exists f1]} | |
| 191 | +test 3-mv-2 {![file exists f1new]} | |
| 192 | +revert-test 3-1 {} { | |
| 193 | + REVERT f1 | |
| 194 | + DELETE f1new | |
| 195 | +} -exists {f1} -notexists {f1n} | |
| 181 | 196 |
| --- test/revert.test | |
| +++ test/revert.test | |
| @@ -176,5 +176,20 @@ | |
| 176 | |
| 177 | revert-test 2-1 {} { |
| 178 | REVERT f1 |
| 179 | DELETE f1n |
| 180 | } -exists {f1} -notexists {f1n} |
| 181 |
| --- test/revert.test | |
| +++ test/revert.test | |
| @@ -176,5 +176,20 @@ | |
| 176 | |
| 177 | revert-test 2-1 {} { |
| 178 | REVERT f1 |
| 179 | DELETE f1n |
| 180 | } -exists {f1} -notexists {f1n} |
| 181 | |
| 182 | |
| 183 | # Test reverting a rename in the repo but not completed in the file |
| 184 | # system |
| 185 | repo_init |
| 186 | write_file f1 "f1" |
| 187 | fossil add f1 |
| 188 | fossil commit -m "add f1" |
| 189 | fossil mv --soft f1 f1new |
| 190 | test 3-mv-1 {[file exists f1]} |
| 191 | test 3-mv-2 {![file exists f1new]} |
| 192 | revert-test 3-1 {} { |
| 193 | REVERT f1 |
| 194 | DELETE f1new |
| 195 | } -exists {f1} -notexists {f1n} |
| 196 |