tests/test-clone-uncompressed.t
changeset 40398 0ac794e0e285
parent 40035 393e44324037
child 40399 4ab6e7b4fe8a
equal deleted inserted replaced
40397:36b134c436b8 40398:0ac794e0e285
   512   0: draft
   512   0: draft
   513   1: draft
   513   1: draft
   514 #endif
   514 #endif
   515 
   515 
   516   $ killdaemons.py
   516   $ killdaemons.py
       
   517 
       
   518 #if stream-legacy
       
   519 
       
   520 With v1 of the stream protocol, changeset are always cloned as public. There's
       
   521 no obsolescence markers exchange in stream v1.
       
   522 
       
   523 #endif
       
   524 #if stream-bundle2
       
   525 
       
   526 Stream repository with obsolescence
       
   527 -----------------------------------
       
   528 
       
   529 Clone non-publishing with obsolescence
       
   530 
       
   531   $ cat >> $HGRCPATH << EOF
       
   532   > [experimental]
       
   533   > evolution=all
       
   534   > EOF
       
   535 
       
   536   $ cd server
       
   537   $ echo foo > foo
       
   538   $ hg -q commit -m 'about to be pruned'
       
   539   $ hg debugobsolete `hg log -r . -T '{node}'` -d '0 0' -u test --record-parents
       
   540   obsoleted 1 changesets
       
   541   $ hg up null -q
       
   542   $ hg log -T '{rev}: {phase}\n'
       
   543   1: draft
       
   544   0: draft
       
   545   $ hg serve -p $HGPORT -d --pid-file=hg.pid
       
   546   $ cat hg.pid > $DAEMON_PIDS
       
   547   $ cd ..
       
   548 
       
   549   $ hg clone -U --stream http://localhost:$HGPORT with-obsolescence
       
   550   streaming all changes
       
   551   1035 files to transfer, 97.1 KB of data
       
   552   transferred 97.1 KB in * seconds (* */sec) (glob)
       
   553   $ hg -R with-obsolescence log -T '{rev}: {phase}\n'
       
   554   1: draft
       
   555   0: draft
       
   556   $ hg debugobsolete -R with-obsolescence
       
   557   50382b884f66690b7045cac93a540cba4d4c906f 0 {c17445101a72edac06facd130d14808dfbd5c7c2} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
       
   558 
       
   559   $ killdaemons.py
       
   560 
       
   561 #endif