##// END OF EJS Templates
streamclone: tests phase exchange during stream clone...
Boris Feld -
r35782:b6ffd419 default
parent child Browse files
Show More
@@ -262,3 +262,71 b' clone it'
262 #endif
262 #endif
263 $ hg -R with-bookmarks bookmarks
263 $ hg -R with-bookmarks bookmarks
264 some-bookmark 1:c17445101a72
264 some-bookmark 1:c17445101a72
265
266 Stream repository with phases
267 -----------------------------
268
269 Clone as publishing
270
271 $ hg -R server phase -r 'all()'
272 0: draft
273 1: draft
274
275 #if stream-legacy
276 $ hg clone --stream http://localhost:$HGPORT phase-publish
277 streaming all changes
278 1027 files to transfer, 96.3 KB of data
279 transferred 96.3 KB in * seconds (*) (glob)
280 searching for changes
281 no changes found
282 updating to branch default
283 1025 files updated, 0 files merged, 0 files removed, 0 files unresolved
284 #endif
285 #if stream-bundle2
286 $ hg clone --stream http://localhost:$HGPORT phase-publish
287 streaming all changes
288 1027 files to transfer, 96.3 KB of data
289 transferred 96.3 KB in * seconds (* */sec) (glob)
290 updating to branch default
291 1025 files updated, 0 files merged, 0 files removed, 0 files unresolved
292 #endif
293 $ hg -R phase-publish phase -r 'all()'
294 0: public
295 1: public
296
297 Clone as non publishing
298
299 $ cat << EOF >> server/.hg/hgrc
300 > [phases]
301 > publish = False
302 > EOF
303 $ killdaemons.py
304 $ hg -R server serve -p $HGPORT -d --pid-file=hg.pid
305 $ cat hg.pid >> $DAEMON_PIDS
306
307 #if stream-legacy
308 $ hg clone --stream http://localhost:$HGPORT phase-no-publish
309 streaming all changes
310 1027 files to transfer, 96.3 KB of data
311 transferred 96.3 KB in * seconds (*) (glob)
312 searching for changes
313 no changes found
314 updating to branch default
315 1025 files updated, 0 files merged, 0 files removed, 0 files unresolved
316 $ hg -R phase-no-publish phase -r 'all()'
317 0: public
318 1: public
319 #endif
320 #if stream-bundle2
321 $ hg clone --stream http://localhost:$HGPORT phase-no-publish
322 streaming all changes
323 1027 files to transfer, 96.3 KB of data
324 transferred 96.3 KB in * seconds (* */sec) (glob)
325 updating to branch default
326 1025 files updated, 0 files merged, 0 files removed, 0 files unresolved
327 $ hg -R phase-no-publish phase -r 'all()'
328 0: public
329 1: public
330 #endif
331
332 $ killdaemons.py
General Comments 0
You need to be logged in to leave comments. Login now