##// END OF EJS Templates
caches: stop warming the cache after changegroup application...
Pierre-Yves David -
r32268:24f55686 default
parent child Browse files
Show More
@@ -20,7 +20,6 b' from .node import ('
20 20 )
21 21
22 22 from . import (
23 branchmap,
24 23 dagutil,
25 24 discovery,
26 25 error,
@@ -404,12 +403,6 b' class cg1unpacker(object):'
404 403 phases.retractboundary(repo, tr, targetphase, added)
405 404
406 405 if changesets > 0:
407 if srctype != 'strip':
408 # During strip, branchcache is invalid but
409 # coming call to `destroyed` will repair it.
410 # In other case we can safely update cache on
411 # disk.
412 branchmap.updatecache(repo.filtered('served'))
413 406
414 407 def runhooks():
415 408 # These hooks run when the lock releases, not when the
@@ -147,7 +147,6 b' Extension disabled for lack of acl.sourc'
147 147 listing keys for "phases"
148 148 checking for updated bookmarks
149 149 listing keys for "bookmarks"
150 invalid branchheads cache (served): tip differs
151 150 listing keys for "bookmarks"
152 151 3 changesets found
153 152 list of changesets:
@@ -213,7 +212,6 b' No [acl.allow]/[acl.deny]'
213 212 listing keys for "phases"
214 213 checking for updated bookmarks
215 214 listing keys for "bookmarks"
216 invalid branchheads cache (served): tip differs
217 215 listing keys for "bookmarks"
218 216 3 changesets found
219 217 list of changesets:
@@ -289,7 +287,6 b' Empty [acl.allow]'
289 287 listing keys for "phases"
290 288 checking for updated bookmarks
291 289 listing keys for "bookmarks"
292 invalid branchheads cache (served): tip differs
293 290 listing keys for "bookmarks"
294 291 3 changesets found
295 292 list of changesets:
@@ -354,7 +351,6 b' fred is allowed inside foo/'
354 351 listing keys for "phases"
355 352 checking for updated bookmarks
356 353 listing keys for "bookmarks"
357 invalid branchheads cache (served): tip differs
358 354 listing keys for "bookmarks"
359 355 3 changesets found
360 356 list of changesets:
@@ -424,7 +420,6 b' Empty [acl.deny]'
424 420 listing keys for "phases"
425 421 checking for updated bookmarks
426 422 listing keys for "bookmarks"
427 invalid branchheads cache (served): tip differs
428 423 listing keys for "bookmarks"
429 424 3 changesets found
430 425 list of changesets:
@@ -491,7 +486,6 b' fred is allowed inside foo/, but not foo'
491 486 listing keys for "phases"
492 487 checking for updated bookmarks
493 488 listing keys for "bookmarks"
494 invalid branchheads cache (served): tip differs
495 489 listing keys for "bookmarks"
496 490 3 changesets found
497 491 list of changesets:
@@ -563,7 +557,6 b' fred is allowed inside foo/, but not foo'
563 557 listing keys for "phases"
564 558 checking for updated bookmarks
565 559 listing keys for "bookmarks"
566 invalid branchheads cache (served): tip differs
567 560 listing keys for "bookmarks"
568 561 3 changesets found
569 562 list of changesets:
@@ -632,7 +625,6 b' fred is allowed inside foo/, but not foo'
632 625 listing keys for "phases"
633 626 checking for updated bookmarks
634 627 listing keys for "bookmarks"
635 invalid branchheads cache (served): tip differs
636 628 listing keys for "bookmarks"
637 629 3 changesets found
638 630 list of changesets:
@@ -703,7 +695,6 b' barney is allowed everywhere'
703 695 listing keys for "phases"
704 696 checking for updated bookmarks
705 697 listing keys for "bookmarks"
706 invalid branchheads cache (served): tip differs
707 698 listing keys for "bookmarks"
708 699 3 changesets found
709 700 list of changesets:
@@ -786,7 +777,6 b' wilma can change files with a .txt exten'
786 777 listing keys for "phases"
787 778 checking for updated bookmarks
788 779 listing keys for "bookmarks"
789 invalid branchheads cache (served): tip differs
790 780 listing keys for "bookmarks"
791 781 3 changesets found
792 782 list of changesets:
@@ -864,7 +854,6 b' file specified by acl.config does not ex'
864 854 listing keys for "phases"
865 855 checking for updated bookmarks
866 856 listing keys for "bookmarks"
867 invalid branchheads cache (served): tip differs
868 857 listing keys for "bookmarks"
869 858 3 changesets found
870 859 list of changesets:
@@ -937,7 +926,6 b' betty is allowed inside foo/ by a acl.co'
937 926 listing keys for "phases"
938 927 checking for updated bookmarks
939 928 listing keys for "bookmarks"
940 invalid branchheads cache (served): tip differs
941 929 listing keys for "bookmarks"
942 930 3 changesets found
943 931 list of changesets:
@@ -1021,7 +1009,6 b' acl.config can set only [acl.allow]/[acl'
1021 1009 listing keys for "phases"
1022 1010 checking for updated bookmarks
1023 1011 listing keys for "bookmarks"
1024 invalid branchheads cache (served): tip differs
1025 1012 listing keys for "bookmarks"
1026 1013 3 changesets found
1027 1014 list of changesets:
@@ -1107,7 +1094,6 b' fred is always allowed'
1107 1094 listing keys for "phases"
1108 1095 checking for updated bookmarks
1109 1096 listing keys for "bookmarks"
1110 invalid branchheads cache (served): tip differs
1111 1097 listing keys for "bookmarks"
1112 1098 3 changesets found
1113 1099 list of changesets:
@@ -1189,7 +1175,6 b' no one is allowed inside foo/Bar/'
1189 1175 listing keys for "phases"
1190 1176 checking for updated bookmarks
1191 1177 listing keys for "bookmarks"
1192 invalid branchheads cache (served): tip differs
1193 1178 listing keys for "bookmarks"
1194 1179 3 changesets found
1195 1180 list of changesets:
@@ -1265,7 +1250,6 b' OS-level groups'
1265 1250 listing keys for "phases"
1266 1251 checking for updated bookmarks
1267 1252 listing keys for "bookmarks"
1268 invalid branchheads cache (served): tip differs
1269 1253 listing keys for "bookmarks"
1270 1254 3 changesets found
1271 1255 list of changesets:
@@ -1348,7 +1332,6 b' OS-level groups'
1348 1332 listing keys for "phases"
1349 1333 checking for updated bookmarks
1350 1334 listing keys for "bookmarks"
1351 invalid branchheads cache (served): tip differs
1352 1335 listing keys for "bookmarks"
1353 1336 3 changesets found
1354 1337 list of changesets:
@@ -210,11 +210,15 b' r4 has hardlinks in the working dir (not'
210 210 $ nlinksdir r4
211 211 2 r4/.hg/00changelog.i
212 212 2 r4/.hg/branch
213 2 r4/.hg/cache/branch2-served
214 213 2 r4/.hg/cache/checkisexec (execbit !)
215 214 3 r4/.hg/cache/checklink (?)
216 215 ? r4/.hg/cache/checklink-target (glob) (symlink !)
217 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 222 2 r4/.hg/cache/rbc-names-v1
219 223 2 r4/.hg/cache/rbc-revs-v1
220 224 2 r4/.hg/dirstate
@@ -250,10 +254,14 b' Update back to revision 11 in r4 should '
250 254 $ nlinksdir r4
251 255 2 r4/.hg/00changelog.i
252 256 1 r4/.hg/branch
253 2 r4/.hg/cache/branch2-served
254 257 2 r4/.hg/cache/checkisexec (execbit !)
255 258 2 r4/.hg/cache/checklink-target (symlink !)
256 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 265 2 r4/.hg/cache/rbc-names-v1
258 266 2 r4/.hg/cache/rbc-revs-v1
259 267 1 r4/.hg/dirstate
@@ -115,8 +115,6 b' group can still write everything'
115 115 00660 ../push/.hg/00changelog.i
116 116 00770 ../push/.hg/cache/
117 117 00660 ../push/.hg/cache/branch2-base
118 00660 ../push/.hg/cache/rbc-names-v1
119 00660 ../push/.hg/cache/rbc-revs-v1
120 118 00660 ../push/.hg/dirstate
121 119 00660 ../push/.hg/requires
122 120 00770 ../push/.hg/store/
@@ -181,6 +181,7 b' head shadowed by the remote secret head.'
181 181 check that branch cache with "served" filter are properly computed and stored
182 182
183 183 $ ls ../push-dest/.hg/cache/branch2*
184 ../push-dest/.hg/cache/branch2-base
184 185 ../push-dest/.hg/cache/branch2-served
185 186 $ cat ../push-dest/.hg/cache/branch2-served
186 187 6d6770faffce199f1fddd1cf87f6f026138cf061 6 465891ffab3c47a3c23792f7dc84156e19a90722
@@ -191,6 +192,7 b' check that branch cache with "served" fi'
191 192 5:2713879da13d6eea1ff22b442a5a87cb31a7ce6a secret
192 193 3:b3325c91a4d916bcc4cdc83ea3fe4ece46a42f6e draft
193 194 $ ls ../push-dest/.hg/cache/branch2*
195 ../push-dest/.hg/cache/branch2-base
194 196 ../push-dest/.hg/cache/branch2-served
195 197 ../push-dest/.hg/cache/branch2-visible
196 198 $ cat ../push-dest/.hg/cache/branch2-served
@@ -306,9 +306,7 b' Check that the right ancestors is used w'
306 306 bundle2-input-bundle: 0 parts total
307 307 updating the branch cache
308 308 invalid branchheads cache (served): tip differs
309 history modification detected - truncating revision branch cache to revision 9
310 309 rebase completed
311 truncating cache/rbc-revs-v1 to 72
312 310
313 311 Test minimization of merge conflicts
314 312 $ hg up -q null
@@ -671,13 +671,14 b' Cloning should pull down hgtags fnodes m'
671 671 Missing tags2* files means the cache wasn't written through the normal mechanism.
672 672
673 673 $ ls tagsclient/.hg/cache
674 branch2-served
675 674 checkisexec (execbit !)
676 675 checklink (symlink !)
677 676 checklink-target (symlink !)
677 branch2-base
678 checkisexec
679 checklink
680 checklink-target
678 681 hgtagsfnodes1
679 rbc-names-v1
680 rbc-revs-v1
681 682
682 683 Cache should contain the head only, even though other nodes have tags data
683 684
@@ -698,13 +699,14 b' Running hg tags should produce tags2* fi'
698 699 0.1 0:96ee1d7354c4
699 700
700 701 $ ls tagsclient/.hg/cache
701 branch2-served
702 702 checkisexec (execbit !)
703 703 checklink (symlink !)
704 704 checklink-target (symlink !)
705 branch2-base
706 checkisexec
707 checklink
708 checklink-target
705 709 hgtagsfnodes1
706 rbc-names-v1
707 rbc-revs-v1
708 710 tags2-visible
709 711
710 712 $ f --size --hexdump tagsclient/.hg/cache/hgtagsfnodes1
General Comments 0
You need to be logged in to leave comments. Login now