Show More
@@ -1053,7 +1053,7 b' def clone(' | |||
|
1053 | 1053 | # as the only "bad" outcome would be some slowness. That potential |
|
1054 | 1054 | # slowness already affect reader. |
|
1055 | 1055 | with destrepo.lock(): |
|
1056 |
destrepo.updatecaches(full= |
|
|
1056 | destrepo.updatecaches(full=b"post-clone") | |
|
1057 | 1057 | finally: |
|
1058 | 1058 | release(srclock, destlock) |
|
1059 | 1059 | if cleandir is not None: |
@@ -2727,6 +2727,11 b' class localrepository(object):' | |||
|
2727 | 2727 | |
|
2728 | 2728 | If 'full' is set, make sure all caches the function knows about have |
|
2729 | 2729 | up-to-date data. Even the ones usually loaded more lazily. |
|
2730 | ||
|
2731 | The `full` argument can take a special "post-clone" value. In this case | |
|
2732 | the cache warming is made after a clone and of the slower cache might | |
|
2733 | be skipped, namely the `.fnodetags` one. This argument is 5.8 specific | |
|
2734 | as we plan for a cleaner way to deal with this for 5.9. | |
|
2730 | 2735 | """ |
|
2731 | 2736 | if tr is not None and tr.hookargs.get(b'source') == b'strip': |
|
2732 | 2737 | # During strip, many caches are invalid but |
@@ -2754,6 +2759,7 b' class localrepository(object):' | |||
|
2754 | 2759 | for ctx in self[b'.'].parents(): |
|
2755 | 2760 | ctx.manifest() # accessing the manifest is enough |
|
2756 | 2761 | |
|
2762 | if not full == b"post-clone": | |
|
2757 | 2763 | # accessing fnode cache warms the cache |
|
2758 | 2764 | tagsmod.fnoderevs(self.ui, unfi, unfi.changelog.revs()) |
|
2759 | 2765 | # accessing tags warm the cache |
@@ -201,7 +201,6 b' Basic clone' | |||
|
201 | 201 | branch2-served.hidden |
|
202 | 202 | branch2-visible |
|
203 | 203 | branch2-visible-hidden |
|
204 | hgtagsfnodes1 | |
|
205 | 204 | rbc-names-v1 |
|
206 | 205 | rbc-revs-v1 |
|
207 | 206 | tags2 |
@@ -62,7 +62,6 b' Ensure branchcache got copied over:' | |||
|
62 | 62 | branch2-served.hidden |
|
63 | 63 | branch2-visible |
|
64 | 64 | branch2-visible-hidden |
|
65 | hgtagsfnodes1 | |
|
66 | 65 | rbc-names-v1 |
|
67 | 66 | rbc-revs-v1 |
|
68 | 67 | tags2 |
@@ -142,7 +141,6 b' Ensure branchcache got copied over:' | |||
|
142 | 141 | branch2-served.hidden |
|
143 | 142 | branch2-visible |
|
144 | 143 | branch2-visible-hidden |
|
145 | hgtagsfnodes1 | |
|
146 | 144 | rbc-names-v1 |
|
147 | 145 | rbc-revs-v1 |
|
148 | 146 | tags2 |
@@ -244,7 +244,6 b' r4 has hardlinks in the working dir (not' | |||
|
244 | 244 | 2 r4/.hg/cache/branch2-served.hidden |
|
245 | 245 | 2 r4/.hg/cache/branch2-visible |
|
246 | 246 | 2 r4/.hg/cache/branch2-visible-hidden |
|
247 | 2 r4/.hg/cache/hgtagsfnodes1 | |
|
248 | 247 | 2 r4/.hg/cache/rbc-names-v1 |
|
249 | 248 | 2 r4/.hg/cache/rbc-revs-v1 |
|
250 | 249 | 2 r4/.hg/cache/tags2 |
@@ -302,7 +301,6 b' Update back to revision 12 in r4 should ' | |||
|
302 | 301 | 2 r4/.hg/cache/branch2-served.hidden |
|
303 | 302 | 2 r4/.hg/cache/branch2-visible |
|
304 | 303 | 2 r4/.hg/cache/branch2-visible-hidden |
|
305 | 2 r4/.hg/cache/hgtagsfnodes1 | |
|
306 | 304 | 2 r4/.hg/cache/rbc-names-v1 |
|
307 | 305 | 2 r4/.hg/cache/rbc-revs-v1 |
|
308 | 306 | 2 r4/.hg/cache/tags2 |
@@ -68,7 +68,6 b' Cloning a shared repo should pick up the' | |||
|
68 | 68 | branch2-served.hidden |
|
69 | 69 | branch2-visible |
|
70 | 70 | branch2-visible-hidden |
|
71 | hgtagsfnodes1 | |
|
72 | 71 | rbc-names-v1 |
|
73 | 72 | rbc-revs-v1 |
|
74 | 73 | tags2 |
@@ -86,7 +86,7 b' clone bookmarks via stream' | |||
|
86 | 86 | $ hg -R local-stream book mybook |
|
87 | 87 | $ hg clone -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" --stream ssh://user@dummy/local-stream stream2 |
|
88 | 88 | streaming all changes |
|
89 |
1 |
|
|
89 | 15 files to transfer, * of data (glob) | |
|
90 | 90 | transferred * in * seconds (*) (glob) |
|
91 | 91 | updating to branch default |
|
92 | 92 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
@@ -807,11 +807,11 b' Cache should contain the head only, even' | |||
|
807 | 807 | |
|
808 | 808 | $ f --size --hexdump tagsclient/.hg/cache/hgtagsfnodes1 |
|
809 | 809 | tagsclient/.hg/cache/hgtagsfnodes1: size=96 |
|
810 | 0000: 96 ee 1d 73 00 00 00 00 00 00 00 00 00 00 00 00 |...s............| | |
|
811 | 0010: 00 00 00 00 00 00 00 00 c4 da b0 c2 94 65 e1 c6 |.............e..| | |
|
812 | 0020: 0d f7 f0 dd 32 04 ea 57 78 c8 97 97 79 fc d5 95 |....2..Wx...y...| | |
|
813 | 0030: f6 3c c8 fe 94 65 e1 c6 0d f7 f0 dd 32 04 ea 57 |.<...e......2..W| | |
|
814 |
0040: |
|
|
810 | 0000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| | |
|
811 | 0010: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| | |
|
812 | 0020: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| | |
|
813 | 0030: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| | |
|
814 | 0040: ff ff ff ff ff ff ff ff 40 f0 35 8c 19 e0 a7 d3 |........@.5.....| | |
|
815 | 815 | 0050: 8a 5c 6a 82 4d cf fb a5 87 d0 2f a3 1e 4f 2f 8a |.\j.M...../..O/.| |
|
816 | 816 | |
|
817 | 817 | Running hg tags should produce tags2* file and not change cache |
@@ -837,11 +837,11 b' Running hg tags should produce tags2* fi' | |||
|
837 | 837 | |
|
838 | 838 | $ f --size --hexdump tagsclient/.hg/cache/hgtagsfnodes1 |
|
839 | 839 | tagsclient/.hg/cache/hgtagsfnodes1: size=96 |
|
840 | 0000: 96 ee 1d 73 00 00 00 00 00 00 00 00 00 00 00 00 |...s............| | |
|
841 | 0010: 00 00 00 00 00 00 00 00 c4 da b0 c2 94 65 e1 c6 |.............e..| | |
|
842 | 0020: 0d f7 f0 dd 32 04 ea 57 78 c8 97 97 79 fc d5 95 |....2..Wx...y...| | |
|
843 | 0030: f6 3c c8 fe 94 65 e1 c6 0d f7 f0 dd 32 04 ea 57 |.<...e......2..W| | |
|
844 |
0040: |
|
|
840 | 0000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| | |
|
841 | 0010: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| | |
|
842 | 0020: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| | |
|
843 | 0030: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| | |
|
844 | 0040: ff ff ff ff ff ff ff ff 40 f0 35 8c 19 e0 a7 d3 |........@.5.....| | |
|
845 | 845 | 0050: 8a 5c 6a 82 4d cf fb a5 87 d0 2f a3 1e 4f 2f 8a |.\j.M...../..O/.| |
|
846 | 846 | |
|
847 | 847 | Check that the bundle includes cache data |
@@ -792,7 +792,7 b' Stream clone with basicstore' | |||
|
792 | 792 | $ hg clone --config experimental.changegroup3=True --stream -U \ |
|
793 | 793 | > http://localhost:$HGPORT1 stream-clone-basicstore |
|
794 | 794 | streaming all changes |
|
795 |
2 |
|
|
795 | 28 files to transfer, * of data (glob) | |
|
796 | 796 | transferred * in * seconds (*) (glob) |
|
797 | 797 | $ hg -R stream-clone-basicstore verify |
|
798 | 798 | checking changesets |
@@ -806,7 +806,7 b' Stream clone with encodedstore' | |||
|
806 | 806 | $ hg clone --config experimental.changegroup3=True --stream -U \ |
|
807 | 807 | > http://localhost:$HGPORT2 stream-clone-encodedstore |
|
808 | 808 | streaming all changes |
|
809 |
2 |
|
|
809 | 28 files to transfer, * of data (glob) | |
|
810 | 810 | transferred * in * seconds (*) (glob) |
|
811 | 811 | $ hg -R stream-clone-encodedstore verify |
|
812 | 812 | checking changesets |
General Comments 0
You need to be logged in to leave comments.
Login now