tests/test-http.t
changeset 34393 fffd3369aa83
parent 34322 10e162bb9bf5
child 34483 a6d95a8b7243
equal deleted inserted replaced
34392:aea6344e989b 34393:fffd3369aa83
    29   $ cd ..
    29   $ cd ..
    30   $ cat hg1.pid hg2.pid >> $DAEMON_PIDS
    30   $ cat hg1.pid hg2.pid >> $DAEMON_PIDS
    31 
    31 
    32 clone via stream
    32 clone via stream
    33 
    33 
    34   $ hg clone --uncompressed http://localhost:$HGPORT/ copy 2>&1
    34   $ hg clone --stream http://localhost:$HGPORT/ copy 2>&1
    35   streaming all changes
    35   streaming all changes
    36   6 files to transfer, 606 bytes of data
    36   6 files to transfer, 606 bytes of data
    37   transferred * bytes in * seconds (*/sec) (glob)
    37   transferred * bytes in * seconds (*/sec) (glob)
    38   searching for changes
    38   searching for changes
    39   no changes found
    39   no changes found
    46   checking files
    46   checking files
    47   4 files, 1 changesets, 4 total revisions
    47   4 files, 1 changesets, 4 total revisions
    48 
    48 
    49 try to clone via stream, should use pull instead
    49 try to clone via stream, should use pull instead
    50 
    50 
    51   $ hg clone --uncompressed http://localhost:$HGPORT1/ copy2
    51   $ hg clone --stream http://localhost:$HGPORT1/ copy2
    52   warning: stream clone requested but server has them disabled
    52   warning: stream clone requested but server has them disabled
    53   requesting all changes
    53   requesting all changes
    54   adding changesets
    54   adding changesets
    55   adding manifests
    55   adding manifests
    56   adding file changes
    56   adding file changes
    64   > from mercurial import localrepo
    64   > from mercurial import localrepo
    65   > def extsetup(ui):
    65   > def extsetup(ui):
    66   >     localrepo.localrepository.supportedformats.remove('generaldelta')
    66   >     localrepo.localrepository.supportedformats.remove('generaldelta')
    67   > EOF
    67   > EOF
    68 
    68 
    69   $ hg clone --config extensions.rsf=$TESTTMP/removesupportedformat.py --uncompressed http://localhost:$HGPORT/ copy3
    69   $ hg clone --config extensions.rsf=$TESTTMP/removesupportedformat.py --stream http://localhost:$HGPORT/ copy3
    70   warning: stream clone requested but client is missing requirements: generaldelta
    70   warning: stream clone requested but client is missing requirements: generaldelta
    71   (see https://www.mercurial-scm.org/wiki/MissingRequirement for more information)
    71   (see https://www.mercurial-scm.org/wiki/MissingRequirement for more information)
    72   requesting all changes
    72   requesting all changes
    73   adding changesets
    73   adding changesets
    74   adding manifests
    74   adding manifests
   365   (remove --pull if specified or upgrade Mercurial)
   365   (remove --pull if specified or upgrade Mercurial)
   366   [255]
   366   [255]
   367 
   367 
   368 ... but keep stream clones working
   368 ... but keep stream clones working
   369 
   369 
   370   $ hg clone --uncompressed --noupdate http://localhost:$HGPORT1/ test-stream-clone
   370   $ hg clone --stream --noupdate http://localhost:$HGPORT1/ test-stream-clone
   371   streaming all changes
   371   streaming all changes
   372   * files to transfer, * of data (glob)
   372   * files to transfer, * of data (glob)
   373   transferred * in * seconds (*/sec) (glob)
   373   transferred * in * seconds (*/sec) (glob)
   374   searching for changes
   374   searching for changes
   375   no changes found
   375   no changes found