Show More
@@ -132,6 +132,10 b' valid.' | |||
|
132 | 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 | 139 | $ dirstate_uuid_has_not_changed () { |
|
136 | 140 | > # Non-Rust always rewrites the whole dirstate |
|
137 | 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 | 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 | 171 | $ hg st |
|
167 |
|
|
|
172 | ! dir2/f | |
|
168 | 173 | $ dirstate_data_files | wc -l |
|
169 | 174 | *1 (re) |
|
170 | 175 | $ dirstate_uuid_has_not_changed |
|
171 | 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 | 183 | Unused bytes counter is non-0 when appending |
|
174 | 184 | $ touch file |
@@ -177,8 +187,8 b' Unused bytes counter is non-0 when appen' | |||
|
177 | 187 | |
|
178 | 188 | Trigger a rust/rhg run which updates the unused bytes value |
|
179 | 189 | $ hg st |
|
180 | M dir2/f | |
|
181 | 190 | A file |
|
191 | ! dir2/f | |
|
182 | 192 | $ dirstate_data_files | wc -l |
|
183 | 193 | *1 (re) |
|
184 | 194 | $ dirstate_uuid_has_not_changed |
General Comments 0
You need to be logged in to leave comments.
Login now