56 $ cd .. |
56 $ cd .. |
57 |
57 |
58 Actual tests |
58 Actual tests |
59 ============ |
59 ============ |
60 |
60 |
61 Simple invocation |
61 Initial cloning if needed |
62 ----------------- |
62 ------------------------- |
63 |
63 |
64 $ hg init repo |
64 $ hg admin::chainsaw-update --dest repo --rev default --source ./src |
65 $ cd repo |
65 no such directory: "repo" |
66 $ hg admin::chainsaw-update --rev default --source ../src |
66 creating repository at "repo" |
67 recovering after interrupted transaction, if any |
67 recovering after interrupted transaction, if any |
68 no interrupted transaction available |
68 no interrupted transaction available |
69 pulling from ../src |
69 pulling from ./src |
70 updating to revision 'default' |
70 updating to revision 'default' |
71 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
71 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
72 chainsaw-update to revision 'default' for repository at '$TESTTMP/repo' done |
72 chainsaw-update to revision 'default' for repository at '$TESTTMP/repo' done |
73 |
73 |
74 $ hg log -G |
74 $ cd repo |
75 @ changeset: 1:bfcb8e629987 |
75 $ hg log -G |
76 | tag: tip |
76 @ changeset: 3:bfcb8e629987 |
77 | user: test |
77 | tag: tip |
78 | date: Thu Jan 01 00:00:00 1970 +0000 |
78 | parent: 0:06f48e4098b8 |
79 | summary: B_0 |
79 | user: test |
|
80 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
81 | summary: B_0 |
|
82 | |
|
83 | o changeset: 2:7fd8de258aa4 |
|
84 | | branch: A |
|
85 | | user: test |
|
86 | | date: Thu Jan 01 00:00:00 1970 +0000 |
|
87 | | summary: A_1 |
|
88 | | |
|
89 | o changeset: 1:ae1692b8aadb |
|
90 |/ branch: A |
|
91 | user: test |
|
92 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
93 | summary: A_0 |
80 | |
94 | |
81 o changeset: 0:06f48e4098b8 |
95 o changeset: 0:06f48e4098b8 |
82 user: test |
96 user: test |
83 date: Thu Jan 01 00:00:00 1970 +0000 |
97 date: Thu Jan 01 00:00:00 1970 +0000 |
84 summary: R_0 |
98 summary: R_0 |
101 $ hg debuglock |
115 $ hg debuglock |
102 lock: (.*?), process 171814, host invalid.host.test/effffffc \((\d+)s\) (re) |
116 lock: (.*?), process 171814, host invalid.host.test/effffffc \((\d+)s\) (re) |
103 wlock: (.*?), process 171814, host invalid.host.test/effffffc \((\d+)s\) (re) |
117 wlock: (.*?), process 171814, host invalid.host.test/effffffc \((\d+)s\) (re) |
104 [2] |
118 [2] |
105 |
119 |
106 $ hg admin::chainsaw-update --no-purge-ignored --rev default --source ../src |
120 $ hg admin::chainsaw-update --no-purge-ignored --dest . --rev default --source ../src |
|
121 loaded repository at "." |
107 had to break store lock |
122 had to break store lock |
108 had to break working copy lock |
123 had to break working copy lock |
109 recovering after interrupted transaction, if any |
124 recovering after interrupted transaction, if any |
110 no interrupted transaction available |
125 no interrupted transaction available |
111 pulling from ../src |
126 pulling from ../src |
125 M foo |
140 M foo |
126 ? bar |
141 ? bar |
127 C root |
142 C root |
128 |
143 |
129 $ echo 2 > ../src/foo |
144 $ echo 2 > ../src/foo |
130 $ hg -R ../src commit -m2 |
145 $ hg -R ../src commit -mB_1 |
131 $ hg admin::chainsaw-update --rev default --source ../src -q |
146 $ hg admin::chainsaw-update --dest . --rev default --source ../src -q |
132 no interrupted transaction available |
147 no interrupted transaction available |
|
148 $ hg log -G |
|
149 @ changeset: 4:973ab81c95fb |
|
150 | tag: tip |
|
151 | user: test |
|
152 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
153 | summary: B_1 |
|
154 | |
|
155 o changeset: 3:bfcb8e629987 |
|
156 | parent: 0:06f48e4098b8 |
|
157 | user: test |
|
158 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
159 | summary: B_0 |
|
160 | |
|
161 | o changeset: 2:7fd8de258aa4 |
|
162 | | branch: A |
|
163 | | user: test |
|
164 | | date: Thu Jan 01 00:00:00 1970 +0000 |
|
165 | | summary: A_1 |
|
166 | | |
|
167 | o changeset: 1:ae1692b8aadb |
|
168 |/ branch: A |
|
169 | user: test |
|
170 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
171 | summary: A_0 |
|
172 | |
|
173 o changeset: 0:06f48e4098b8 |
|
174 user: test |
|
175 date: Thu Jan 01 00:00:00 1970 +0000 |
|
176 summary: R_0 |
|
177 |
133 $ hg status -A |
178 $ hg status -A |
134 C foo |
179 C foo |
135 C root |
180 C root |
136 $ cat foo |
181 $ cat foo |
137 2 |
182 2 |
146 I bar |
191 I bar |
147 C .hgignore |
192 C .hgignore |
148 C foo |
193 C foo |
149 C root |
194 C root |
150 |
195 |
151 $ hg admin::chainsaw-update --no-purge-ignored --rev default --source ../src -q |
196 $ hg admin::chainsaw-update --no-purge-ignored --dest . --rev default --source ../src -q |
152 no interrupted transaction available |
197 no interrupted transaction available |
153 $ hg status --all |
198 $ hg status --all |
154 I bar |
199 I bar |
155 C .hgignore |
200 C .hgignore |
156 C foo |
201 C foo |
157 C root |
202 C root |
158 $ cat bar |
203 $ cat bar |
159 ignored |
204 ignored |
160 |
205 |
161 $ hg admin::chainsaw-update --rev default --source ../src -q |
206 $ hg admin::chainsaw-update --dest . --rev default --source ../src -q |
162 no interrupted transaction available |
207 no interrupted transaction available |
163 $ hg status --all |
208 $ hg status --all |
164 C .hgignore |
209 C .hgignore |
165 C foo |
210 C foo |
166 C root |
211 C root |
167 $ test -f bar |
212 $ test -f bar |
168 [1] |
213 [1] |
169 |
214 |
|
215 test --minimal-initial-cloning variant |
|
216 -------------------------------------- |
|
217 |
|
218 With `--minimal-initial-cloning`, there is no "requesting all changes" |
|
219 message. Hence clone bundles would be bypassed (TODO test both cases |
|
220 # with an actual clone-bundle) |
|
221 |
|
222 $ cd .. |
|
223 $ hg admin::chainsaw-update --dest repo2 --rev default --source src --initial-clone-minimal |
|
224 no such directory: "repo2" |
|
225 creating repository at "repo2" |
|
226 recovering after interrupted transaction, if any |
|
227 no interrupted transaction available |
|
228 pulling from src |
|
229 updating to revision 'default' |
|
230 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
231 chainsaw-update to revision 'default' for repository at '$TESTTMP/repo2' done |
|
232 |
|
233 $ cd repo2 |
|
234 $ hg log -G |
|
235 @ changeset: 2:973ab81c95fb |
|
236 | tag: tip |
|
237 | user: test |
|
238 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
239 | summary: B_1 |
|
240 | |
|
241 o changeset: 1:bfcb8e629987 |
|
242 | user: test |
|
243 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
244 | summary: B_0 |
|
245 | |
|
246 o changeset: 0:06f48e4098b8 |
|
247 user: test |
|
248 date: Thu Jan 01 00:00:00 1970 +0000 |
|
249 summary: R_0 |
|
250 |
|
251 $ hg status -A |
|
252 C foo |
|
253 C root |
|
254 $ cat foo |
|
255 2 |