Show More
@@ -132,6 +132,10 b' valid.' | |||||
132 | > hg debugstate --docket | grep uuid | sed 's/.*uuid: \(.*\)/\1/' |
|
132 | > hg debugstate --docket | grep uuid | sed 's/.*uuid: \(.*\)/\1/' | |
133 | > } |
|
133 | > } | |
134 |
|
134 | |||
|
135 | $ find_dirstate_data_size () { | |||
|
136 | > hg debugstate --docket | grep 'size of dirstate data' | sed 's/.*size of dirstate data: \(.*\)/\1/' | |||
|
137 | > } | |||
|
138 | ||||
135 | $ dirstate_uuid_has_not_changed () { |
|
139 | $ dirstate_uuid_has_not_changed () { | |
136 | > # Non-Rust always rewrites the whole dirstate |
|
140 | > # Non-Rust always rewrites the whole dirstate | |
137 | > if [ $# -eq 1 ] || ([ -n "$HGMODULEPOLICY" ] && [ -z "${HGMODULEPOLICY##*rust*}" ]) || [ -n "$RHG_INSTALLED_AS_HG" ]; then |
|
141 | > if [ $# -eq 1 ] || ([ -n "$HGMODULEPOLICY" ] && [ -z "${HGMODULEPOLICY##*rust*}" ]) || [ -n "$RHG_INSTALLED_AS_HG" ]; then | |
@@ -162,13 +166,19 b' Nothing changes here' | |||||
162 |
|
166 | |||
163 | Trigger an append with a small change |
|
167 | Trigger an append with a small change | |
164 |
|
168 | |||
165 | $ echo "modified" > dir2/f |
|
169 | $ current_data_size=$(find_dirstate_data_size) | |
|
170 | $ rm dir2/f | |||
166 | $ hg st |
|
171 | $ hg st | |
167 |
|
|
172 | ! dir2/f | |
168 | $ dirstate_data_files | wc -l |
|
173 | $ dirstate_data_files | wc -l | |
169 | *1 (re) |
|
174 | *1 (re) | |
170 | $ dirstate_uuid_has_not_changed |
|
175 | $ dirstate_uuid_has_not_changed | |
171 | not testing because using Python implementation (no-rust no-rhg !) |
|
176 | not testing because using Python implementation (no-rust no-rhg !) | |
|
177 | $ new_data_size=$(find_dirstate_data_size) | |||
|
178 | $ [ "$current_data_size" -eq "$new_data_size" ]; echo $? | |||
|
179 | 0 (no-rust no-rhg !) | |||
|
180 | 1 (rust !) | |||
|
181 | 1 (no-rust rhg !) | |||
172 |
|
182 | |||
173 | Unused bytes counter is non-0 when appending |
|
183 | Unused bytes counter is non-0 when appending | |
174 | $ touch file |
|
184 | $ touch file | |
@@ -177,8 +187,8 b' Unused bytes counter is non-0 when appen' | |||||
177 |
|
187 | |||
178 | Trigger a rust/rhg run which updates the unused bytes value |
|
188 | Trigger a rust/rhg run which updates the unused bytes value | |
179 | $ hg st |
|
189 | $ hg st | |
180 | M dir2/f |
|
|||
181 | A file |
|
190 | A file | |
|
191 | ! dir2/f | |||
182 | $ dirstate_data_files | wc -l |
|
192 | $ dirstate_data_files | wc -l | |
183 | *1 (re) |
|
193 | *1 (re) | |
184 | $ dirstate_uuid_has_not_changed |
|
194 | $ dirstate_uuid_has_not_changed |
General Comments 0
You need to be logged in to leave comments.
Login now