tests/test-pull-bundle.t
changeset 42143 29569f2db929
parent 39480 89630d0b3e23
child 42897 d7304434390f
equal deleted inserted replaced
42142:5382d8f8530b 42143:29569f2db929
   118   * sending pullbundle "0.hg" (glob)
   118   * sending pullbundle "0.hg" (glob)
   119   * sending pullbundle "2.hg" (glob)
   119   * sending pullbundle "2.hg" (glob)
   120   * sending pullbundle "1.hg" (glob)
   120   * sending pullbundle "1.hg" (glob)
   121   $ rm repo/.hg/blackbox.log
   121   $ rm repo/.hg/blackbox.log
   122 
   122 
       
   123 Test pullbundle functionality for incoming
       
   124 
       
   125   $ cd repo
       
   126   $ hg --config blackbox.track=debug --debug serve -p $HGPORT2 -d --pid-file=../repo.pid
       
   127   listening at http://*:$HGPORT2/ (bound to $LOCALIP:$HGPORT2) (glob) (?)
       
   128   $ cat ../repo.pid >> $DAEMON_PIDS
       
   129   $ cd ..
       
   130   $ hg clone http://localhost:$HGPORT2/ repo.pullbundle2a -r 0
       
   131   adding changesets
       
   132   adding manifests
       
   133   adding file changes
       
   134   added 1 changesets with 1 changes to 1 files
       
   135   new changesets bbd179dfa0a7 (1 drafts)
       
   136   updating to branch default
       
   137   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
       
   138   $ cd repo.pullbundle2a
       
   139   $ hg incoming -r ed1b79f46b9a
       
   140   comparing with http://localhost:$HGPORT2/
       
   141   searching for changes
       
   142   changeset:   1:ed1b79f46b9a
       
   143   tag:         tip
       
   144   user:        test
       
   145   date:        Thu Jan 01 00:00:00 1970 +0000
       
   146   summary:     change foo
       
   147   
       
   148   $ cd ..
       
   149   $ killdaemons.py
       
   150   $ grep 'sending pullbundle ' repo/.hg/blackbox.log
       
   151   * sending pullbundle "0.hg" (glob)
       
   152   * sending pullbundle "1.hg" (glob)
       
   153   $ rm repo/.hg/blackbox.log
       
   154 
   123 Test recovery from misconfigured server sending no new data
   155 Test recovery from misconfigured server sending no new data
   124 
   156 
   125   $ cd repo
   157   $ cd repo
   126   $ cat <<EOF > .hg/pullbundles.manifest
   158   $ cat <<EOF > .hg/pullbundles.manifest
   127   > 0.hg heads=ed1b79f46b9a29f5a6efa59cf12fcfca43bead5a bases=bbd179dfa0a71671c253b3ae0aa1513b60d199fa
   159   > 0.hg heads=ed1b79f46b9a29f5a6efa59cf12fcfca43bead5a bases=bbd179dfa0a71671c253b3ae0aa1513b60d199fa