Fossil

Check-in [e33ed0c5]
Login

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

Overview
Comment:Remove superfluous initialization of $passed.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | revert
Files: files | file ages | folders
SHA1:e33ed0c55a7e9011728ead732850d88c8536ae1f
User & Date: joel 2016-04-02 04:28:57
Context
2016-04-02
04:28
Remove superfluous initialization of $passed. Leaf check-in: e33ed0c5 user: joel tags: revert
2016-04-01
04:04
The revert command no longer resets the undo state if nothing is actually reverted. Additional tests and bug fixes as well. check-in: 418dd7ac user: joel tags: revert
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to test/revert.test.

21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#

# Test 'fossil revert' against expected results from 'fossil changes' and
# 'fossil addremove -n', as well as by verifying the existence of files
# on the file system. 'fossil undo' is called after each test
#
proc revert-test {testid revertArgs expectedRevertOutput args} {
  set passed 1
  
  set args [dict merge {
    -changes {} -addremove {} -exists {} -notexists {}
  } $args]
  
  set result [fossil revert {*}$revertArgs]
  test_status_list revert-$testid $result $expectedRevertOutput
  







<
<







21
22
23
24
25
26
27


28
29
30
31
32
33
34
#

# Test 'fossil revert' against expected results from 'fossil changes' and
# 'fossil addremove -n', as well as by verifying the existence of files
# on the file system. 'fossil undo' is called after each test
#
proc revert-test {testid revertArgs expectedRevertOutput args} {


  set args [dict merge {
    -changes {} -addremove {} -exists {} -notexists {}
  } $args]
  
  set result [fossil revert {*}$revertArgs]
  test_status_list revert-$testid $result $expectedRevertOutput