comparison tests/test-hardlinks.t @ 32268:24f55686a63d

caches: stop warming the cache after changegroup application Now that we garantee that branchmap cache is updated at the end of the transaction we can drop this update. This removes a problematic case with nested transaction where the new cache could be written on disk before the transaction is finished (and even roll-backed) Such premature cache write was visible in the following test: * tests/test-acl.t * tests/test-rebase-conflicts.t In addition, running the cache update later means having more date about the state of the repository (in particular: phases). So we can generate caches with more information. This creates harmless changes to the following tests: * tests/test-hardlinks-whitelisted.t * tests/test-hardlinks.t * tests/test-phases.t * tests/test-tags.t * tests/test-inherit-mode.t
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Tue, 02 May 2017 18:57:52 +0200
parents d34316ae5c58
children 905a2eff08a6
comparison
equal deleted inserted replaced
32267:c2380b448265 32268:24f55686a63d
208 r4 has hardlinks in the working dir (not just inside .hg): 208 r4 has hardlinks in the working dir (not just inside .hg):
209 209
210 $ nlinksdir r4 210 $ nlinksdir r4
211 2 r4/.hg/00changelog.i 211 2 r4/.hg/00changelog.i
212 2 r4/.hg/branch 212 2 r4/.hg/branch
213 2 r4/.hg/cache/branch2-served
214 2 r4/.hg/cache/checkisexec (execbit !) 213 2 r4/.hg/cache/checkisexec (execbit !)
215 3 r4/.hg/cache/checklink (?) 214 3 r4/.hg/cache/checklink (?)
216 ? r4/.hg/cache/checklink-target (glob) (symlink !) 215 ? r4/.hg/cache/checklink-target (glob) (symlink !)
217 2 r4/.hg/cache/checknoexec (execbit !) 216 2 r4/.hg/cache/checknoexec (execbit !)
217 2 r4/.hg/cache/branch2-base
218 2 r4/.hg/cache/branch2-served
219 2 r4/.hg/cache/checkisexec
220 2 r4/.hg/cache/checklink-target
221 2 r4/.hg/cache/checknoexec
218 2 r4/.hg/cache/rbc-names-v1 222 2 r4/.hg/cache/rbc-names-v1
219 2 r4/.hg/cache/rbc-revs-v1 223 2 r4/.hg/cache/rbc-revs-v1
220 2 r4/.hg/dirstate 224 2 r4/.hg/dirstate
221 2 r4/.hg/hgrc 225 2 r4/.hg/hgrc
222 2 r4/.hg/last-message.txt 226 2 r4/.hg/last-message.txt
248 1 files updated, 0 files merged, 0 files removed, 0 files unresolved 252 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
249 253
250 $ nlinksdir r4 254 $ nlinksdir r4
251 2 r4/.hg/00changelog.i 255 2 r4/.hg/00changelog.i
252 1 r4/.hg/branch 256 1 r4/.hg/branch
253 2 r4/.hg/cache/branch2-served
254 2 r4/.hg/cache/checkisexec (execbit !) 257 2 r4/.hg/cache/checkisexec (execbit !)
255 2 r4/.hg/cache/checklink-target (symlink !) 258 2 r4/.hg/cache/checklink-target (symlink !)
256 2 r4/.hg/cache/checknoexec (execbit !) 259 2 r4/.hg/cache/checknoexec (execbit !)
260 2 r4/.hg/cache/branch2-base
261 2 r4/.hg/cache/branch2-served
262 2 r4/.hg/cache/checkisexec
263 2 r4/.hg/cache/checklink-target
264 2 r4/.hg/cache/checknoexec
257 2 r4/.hg/cache/rbc-names-v1 265 2 r4/.hg/cache/rbc-names-v1
258 2 r4/.hg/cache/rbc-revs-v1 266 2 r4/.hg/cache/rbc-revs-v1
259 1 r4/.hg/dirstate 267 1 r4/.hg/dirstate
260 2 r4/.hg/hgrc 268 2 r4/.hg/hgrc
261 2 r4/.hg/last-message.txt 269 2 r4/.hg/last-message.txt