Fossil SCM

Added test for fossil revert with a file marked for RENAME but not actually renamed on disk to test/revert.test.

rberteig 2016-02-11 18:06 trunk
Commit 8b727021af01020a46a5c5fc63bc5b78fb8ac303
1 file changed +15
--- test/revert.test
+++ test/revert.test
@@ -176,5 +176,20 @@
176176
177177
revert-test 2-1 {} {
178178
REVERT f1
179179
DELETE f1n
180180
} -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}
181196
--- 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

Keyboard Shortcuts

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