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