Fossil SCM

Fix revert tests 5 and 6 so they aren't carbon copies. Minor comment cleanup

joel 2013-01-26 08:26 trunk
Commit 1a5ac30583069627b229775fbfa7ecb7b25208b2
1 file changed +5 -4
--- test/revert.test
+++ test/revert.test
@@ -7,13 +7,14 @@
77
puts res=$res
88
if {![regexp {use --repository} $res]} {
99
puts stderr "Cannot run this test within an open checkout"
1010
return
1111
}
12
-#
12
+
1313
# Fossil will write data on $HOME, running 'fossil new' here.
1414
# We need not to clutter the $HOME of the test caller.
15
+#
1516
set env(HOME) [pwd]
1617
1718
1819
# Normalize file status lists (like those returned by 'fossil changes')
1920
# so they can be compared using simple string comparison
@@ -113,11 +114,11 @@
113114
EDITED f2
114115
RENAMED f3n
115116
} -addremove {
116117
ADDED f0
117118
} -exists {f0 f2 f3n} -notexists f3
118
-#
119
+
119120
revert-test 3 f1 -changes {
120121
ADDED f0
121122
EDITED f2
122123
RENAMED f3n
123124
} -exists {f0 f1 f2 f3n} -notexists f3
@@ -128,18 +129,18 @@
128129
RENAMED f3n
129130
} -exists {f0 f2 f3n} -notexists {f1 f3}
130131
131132
# Both files involved in a rename are reverted regardless of which filename
132133
# is used as an argument to 'fossil revert'
133
-
134
+#
134135
revert-test 5 f3 -changes {
135136
ADDED f0
136137
DELETED f1
137138
EDITED f2
138139
} -exists {f0 f2 f3} -notexists {f1 f3n}
139140
140
-revert-test 6 f3 -changes {
141
+revert-test 6 f3n -changes {
141142
ADDED f0
142143
DELETED f1
143144
EDITED f2
144145
} -exists {f0 f2 f3} -notexists {f1 f3n}
145146
146147
--- test/revert.test
+++ test/revert.test
@@ -7,13 +7,14 @@
7 puts res=$res
8 if {![regexp {use --repository} $res]} {
9 puts stderr "Cannot run this test within an open checkout"
10 return
11 }
12 #
13 # Fossil will write data on $HOME, running 'fossil new' here.
14 # We need not to clutter the $HOME of the test caller.
 
15 set env(HOME) [pwd]
16
17
18 # Normalize file status lists (like those returned by 'fossil changes')
19 # so they can be compared using simple string comparison
@@ -113,11 +114,11 @@
113 EDITED f2
114 RENAMED f3n
115 } -addremove {
116 ADDED f0
117 } -exists {f0 f2 f3n} -notexists f3
118 #
119 revert-test 3 f1 -changes {
120 ADDED f0
121 EDITED f2
122 RENAMED f3n
123 } -exists {f0 f1 f2 f3n} -notexists f3
@@ -128,18 +129,18 @@
128 RENAMED f3n
129 } -exists {f0 f2 f3n} -notexists {f1 f3}
130
131 # Both files involved in a rename are reverted regardless of which filename
132 # is used as an argument to 'fossil revert'
133
134 revert-test 5 f3 -changes {
135 ADDED f0
136 DELETED f1
137 EDITED f2
138 } -exists {f0 f2 f3} -notexists {f1 f3n}
139
140 revert-test 6 f3 -changes {
141 ADDED f0
142 DELETED f1
143 EDITED f2
144 } -exists {f0 f2 f3} -notexists {f1 f3n}
145
146
--- test/revert.test
+++ test/revert.test
@@ -7,13 +7,14 @@
7 puts res=$res
8 if {![regexp {use --repository} $res]} {
9 puts stderr "Cannot run this test within an open checkout"
10 return
11 }
12
13 # Fossil will write data on $HOME, running 'fossil new' here.
14 # We need not to clutter the $HOME of the test caller.
15 #
16 set env(HOME) [pwd]
17
18
19 # Normalize file status lists (like those returned by 'fossil changes')
20 # so they can be compared using simple string comparison
@@ -113,11 +114,11 @@
114 EDITED f2
115 RENAMED f3n
116 } -addremove {
117 ADDED f0
118 } -exists {f0 f2 f3n} -notexists f3
119
120 revert-test 3 f1 -changes {
121 ADDED f0
122 EDITED f2
123 RENAMED f3n
124 } -exists {f0 f1 f2 f3n} -notexists f3
@@ -128,18 +129,18 @@
129 RENAMED f3n
130 } -exists {f0 f2 f3n} -notexists {f1 f3}
131
132 # Both files involved in a rename are reverted regardless of which filename
133 # is used as an argument to 'fossil revert'
134 #
135 revert-test 5 f3 -changes {
136 ADDED f0
137 DELETED f1
138 EDITED f2
139 } -exists {f0 f2 f3} -notexists {f1 f3n}
140
141 revert-test 6 f3n -changes {
142 ADDED f0
143 DELETED f1
144 EDITED f2
145 } -exists {f0 f2 f3} -notexists {f1 f3n}
146
147

Keyboard Shortcuts

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