Mercurial > hg-stable
comparison tests/test-clone.t @ 47453:377d8fc20e34
clone: reuse the stream clone logic for local clone
Streaming clone and local (non `--pull`) clone do mostly the same thing,
however they were using different logic to do so. This means the logic
frequently went out of sync and that new case had to be dealt with twice.
This is fragile and anoying. So we replace this with a re-use of the logic we
use for streaming clone.
I can see various test changes:
- a more precise progress output,
- armless fncache loading during clone,
- fncache is no longer hardlinked (since we write it by hand).
I am not reinstalling the `reposimplestore` specific output, as far as I
understand this variant have been broken for years.
Differential Revision: https://phab.mercurial-scm.org/D10855
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Tue, 08 Jun 2021 02:06:45 +0200 |
parents | 8be95673eb8a |
children | 2cd00052ae4d |
comparison
equal
deleted
inserted
replaced
47452:09ff5d532a25 | 47453:377d8fc20e34 |
---|---|
84 | 84 |
85 No update, with debug option: | 85 No update, with debug option: |
86 | 86 |
87 #if hardlink | 87 #if hardlink |
88 $ hg --debug clone -U . ../c --config progress.debug=true | 88 $ hg --debug clone -U . ../c --config progress.debug=true |
89 linking: 1 files | 89 linking: 1/15 files (6.67%) |
90 linking: 2 files | 90 linking: 2/15 files (13.33%) |
91 linking: 3 files | 91 linking: 3/15 files (20.00%) |
92 linking: 4 files | 92 linking: 4/15 files (26.67%) |
93 linking: 5 files | 93 linking: 5/15 files (33.33%) |
94 linking: 6 files | 94 linking: 6/15 files (40.00%) |
95 linking: 7 files | 95 linking: 7/15 files (46.67%) |
96 linking: 8 files | 96 linking: 8/15 files (53.33%) |
97 linked 8 files (reporevlogstore !) | 97 linking: 9/15 files (60.00%) |
98 linking: 9 files (reposimplestore !) | 98 linking: 10/15 files (66.67%) |
99 linking: 10 files (reposimplestore !) | 99 linking: 11/15 files (73.33%) |
100 linking: 11 files (reposimplestore !) | 100 linking: 12/15 files (80.00%) |
101 linking: 12 files (reposimplestore !) | 101 linking: 13/15 files (86.67%) |
102 linking: 13 files (reposimplestore !) | 102 linking: 14/15 files (93.33%) |
103 linking: 14 files (reposimplestore !) | 103 linking: 15/15 files (100.00%) |
104 linking: 15 files (reposimplestore !) | 104 linked 15 files |
105 linking: 16 files (reposimplestore !) | |
106 linking: 17 files (reposimplestore !) | |
107 linking: 18 files (reposimplestore !) | |
108 linked 18 files (reposimplestore !) | |
109 updating the branch cache | 105 updating the branch cache |
110 #else | 106 #else |
111 $ hg --debug clone -U . ../c --config progress.debug=true | 107 $ hg --debug clone -U . ../c --config progress.debug=true |
112 linking: 1 files | 108 linking: 1 files |
113 copying: 2 files | 109 copying: 2 files |
115 copying: 4 files | 111 copying: 4 files |
116 copying: 5 files | 112 copying: 5 files |
117 copying: 6 files | 113 copying: 6 files |
118 copying: 7 files | 114 copying: 7 files |
119 copying: 8 files | 115 copying: 8 files |
120 copied 8 files (reporevlogstore !) | |
121 copying: 9 files (reposimplestore !) | |
122 copying: 10 files (reposimplestore !) | |
123 copying: 11 files (reposimplestore !) | |
124 copying: 12 files (reposimplestore !) | |
125 copying: 13 files (reposimplestore !) | |
126 copying: 14 files (reposimplestore !) | |
127 copying: 15 files (reposimplestore !) | |
128 copying: 16 files (reposimplestore !) | |
129 copying: 17 files (reposimplestore !) | |
130 copying: 18 files (reposimplestore !) | |
131 copied 18 files (reposimplestore !) | |
132 #endif | 116 #endif |
133 $ cd ../c | 117 $ cd ../c |
134 | 118 |
135 Ensure branchcache got copied over: | 119 Ensure branchcache got copied over: |
136 | 120 |