Fossil

Check-in [8b727021]
Login

Check-in [8b727021]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Added test for fossil revert with a file marked for RENAME but not actually renamed on disk to test/revert.test.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 8b727021af01020a46a5c5fc63bc5b78fb8ac303
User & Date: rberteig 2016-02-11 18:06:40.808
Context
2016-02-11
20:32
Added the ability to pass the knownBug constraint through test_status_list to test. Added capability for known bug marking of segments of stash-test, and use it to mark problems with stashing renamed files. Also added checking in stash-test for the exit status, and support for -expectError. ... (check-in: 1a346142 user: rberteig tags: trunk)
18:06
Added test for fossil revert with a file marked for RENAME but not actually renamed on disk to test/revert.test. ... (check-in: 8b727021 user: rberteig tags: trunk)
14:41
Fix column sorting on ticket reports. ... (check-in: 0e555dee user: drh tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to test/revert.test.
174
175
176
177
178
179
180















write_file f1 "f1b"
fossil add f1

revert-test 2-1 {} {
  REVERT   f1
  DELETE   f1n
} -exists {f1} -notexists {f1n}






















>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
write_file f1 "f1b"
fossil add f1

revert-test 2-1 {} {
  REVERT   f1
  DELETE   f1n
} -exists {f1} -notexists {f1n}


# Test reverting a rename in the repo but not completed in the file
# system
repo_init
write_file f1 "f1"
fossil add f1
fossil commit -m "add f1"
fossil mv --soft f1 f1new
test 3-mv-1 {[file exists f1]}
test 3-mv-2 {![file exists f1new]}
revert-test 3-1 {} {
  REVERT f1
  DELETE f1new
} -exists {f1} -notexists {f1n}