tests/test-simple4server.t
branchstable
changeset 1146 3de3d85069fd
parent 1130 be31c34bb341
child 1185 cc3e68120185
equal deleted inserted replaced
1115:cc19b6400dae 1146:3de3d85069fd
    27 
    27 
    28   $ hg clone http://localhost:$HGPORT/ client
    28   $ hg clone http://localhost:$HGPORT/ client
    29   no changes found
    29   no changes found
    30   updating to branch default
    30   updating to branch default
    31   0 files updated, 0 files merged, 0 files removed, 0 files unresolved
    31   0 files updated, 0 files merged, 0 files removed, 0 files unresolved
       
    32   $ cat ./errors.log
    32   $ echo "[extensions]" >> ./client/.hg/hgrc
    33   $ echo "[extensions]" >> ./client/.hg/hgrc
    33   $ echo "evolve=$(echo $(dirname $TESTDIR))/hgext/evolve.py" >> ./client/.hg/hgrc
    34   $ echo "evolve=$(echo $(dirname $TESTDIR))/hgext/evolve.py" >> ./client/.hg/hgrc
    34   $ cp -r client other
    35   $ cp -r client other
    35 
    36 
    36 Smoke testing
    37 Smoke testing
    48   remote: added 2 changesets with 2 changes to 2 files
    49   remote: added 2 changesets with 2 changes to 2 files
    49   $ hg pull
    50   $ hg pull
    50   pulling from http://localhost:$HGPORT/
    51   pulling from http://localhost:$HGPORT/
    51   searching for changes
    52   searching for changes
    52   no changes found
    53   no changes found
       
    54   $ cat ../errors.log
    53   $ hg pull -R ../other
    55   $ hg pull -R ../other
    54   pulling from http://localhost:$HGPORT/
    56   pulling from http://localhost:$HGPORT/
    55   requesting all changes
    57   requesting all changes
    56   adding changesets
    58   adding changesets
    57   adding manifests
    59   adding manifests
    58   adding file changes
    60   adding file changes
    59   added 2 changesets with 2 changes to 2 files
    61   added 2 changesets with 2 changes to 2 files
    60   pull obsolescence markers
    62   pull obsolescence markers
    61   (run 'hg update' to get a working copy)
    63   (run 'hg update' to get a working copy)
       
    64   $ cat ../errors.log
    62   $ hg push -R ../other
    65   $ hg push -R ../other
    63   pushing to http://localhost:$HGPORT/
    66   pushing to http://localhost:$HGPORT/
    64   searching for changes
    67   searching for changes
    65   no changes found
    68   no changes found
    66   [1]
    69   [1]
       
    70   $ cat ../errors.log
    67 
    71 
    68 Capacity testing
    72 Capacity testing
    69 ===================
    73 ===================
    70 
    74 
    71   $ curl --silent http://localhost:$HGPORT/?cmd=hello
    75   $ curl --silent http://localhost:$HGPORT/?cmd=hello
    72   capabilities: lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch stream unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 _evoext_pushobsmarkers_0 _evoext_pullobsmarkers_0 _evoext_obshash_0 _evoext_b2x_obsmarkers_0
    76   capabilities: lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch stream unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 _evoext_pushobsmarkers_0 _evoext_pullobsmarkers_0 _evoext_obshash_0 _evoext_getbundle_obscommon
    73   $ curl --silent http://localhost:$HGPORT/?cmd=capabilities
    77   $ curl --silent http://localhost:$HGPORT/?cmd=capabilities
    74   lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch stream unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 _evoext_pushobsmarkers_0 _evoext_pullobsmarkers_0 _evoext_obshash_0 _evoext_b2x_obsmarkers_0 (no-eol)
    78   lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch stream unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 _evoext_pushobsmarkers_0 _evoext_pullobsmarkers_0 _evoext_obshash_0 _evoext_getbundle_obscommon (no-eol)
    75 
    79 
    76   $ curl --silent "http://localhost:$HGPORT/?cmd=listkeys&namespace=namespaces" | sort
    80   $ curl --silent "http://localhost:$HGPORT/?cmd=listkeys&namespace=namespaces" | sort
    77   bookmarks	
    81   bookmarks	
    78   namespaces	
    82   namespaces	
    79   obsolete	
    83   obsolete	
    89   searching for changes
    93   searching for changes
    90   remote: adding changesets
    94   remote: adding changesets
    91   remote: adding manifests
    95   remote: adding manifests
    92   remote: adding file changes
    96   remote: adding file changes
    93   remote: added 1 changesets with 1 changes to 1 files (+1 heads)
    97   remote: added 1 changesets with 1 changes to 1 files (+1 heads)
    94   pushing 2 obsolescence markers (171 bytes)
    98   pushing 2 obsolescence markers (* bytes) (glob)
       
    99   $ cat ../errors.log
    95   $ hg push
   100   $ hg push
    96   pushing to http://localhost:$HGPORT/
   101   pushing to http://localhost:$HGPORT/
    97   searching for changes
   102   searching for changes
    98   no changes found
   103   no changes found
    99   [1]
   104   [1]
       
   105   $ cat ../errors.log
   100 
   106 
   101 Pull
   107 Pull
   102 =============
   108 =============
   103 
   109 
   104   $ hg -R ../other pull
   110   $ hg -R ../other pull
   109   adding file changes
   115   adding file changes
   110   added 1 changesets with 1 changes to [12] files \(\+1 heads\) (re)
   116   added 1 changesets with 1 changes to [12] files \(\+1 heads\) (re)
   111   pull obsolescence markers
   117   pull obsolescence markers
   112   2 obsolescence markers added
   118   2 obsolescence markers added
   113   (run 'hg heads' to see heads)
   119   (run 'hg heads' to see heads)
       
   120   $ cat ../errors.log
   114   $ hg -R ../other pull
   121   $ hg -R ../other pull
   115   pulling from http://localhost:$HGPORT/
   122   pulling from http://localhost:$HGPORT/
   116   searching for changes
   123   searching for changes
   117   no changes found
   124   no changes found
       
   125   $ cat ../errors.log
   118 
   126 
   119   $ cd ..
   127   $ cd ..
   120 
   128 
   121 Test disabling obsolete advertisement
   129 Test disabling obsolete advertisement
   122 ===========================================
   130 ===========================================
   126   bookmarks	
   134   bookmarks	
   127   namespaces	
   135   namespaces	
   128   obsolete	
   136   obsolete	
   129   phases	
   137   phases	
   130   $ curl --silent http://localhost:$HGPORT/?cmd=hello
   138   $ curl --silent http://localhost:$HGPORT/?cmd=hello
   131   capabilities: lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch stream unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 _evoext_pushobsmarkers_0 _evoext_pullobsmarkers_0 _evoext_obshash_0 _evoext_b2x_obsmarkers_0
   139   capabilities: lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch stream unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 _evoext_pushobsmarkers_0 _evoext_pullobsmarkers_0 _evoext_obshash_0 _evoext_getbundle_obscommon
   132   $ curl --silent http://localhost:$HGPORT/?cmd=capabilities
   140   $ curl --silent http://localhost:$HGPORT/?cmd=capabilities
   133   lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch stream unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 _evoext_pushobsmarkers_0 _evoext_pullobsmarkers_0 _evoext_obshash_0 _evoext_b2x_obsmarkers_0 (no-eol)
   141   lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch stream unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 _evoext_pushobsmarkers_0 _evoext_pullobsmarkers_0 _evoext_obshash_0 _evoext_getbundle_obscommon (no-eol)
   134 
   142 
   135   $ echo '[__temporary__]' >> server/.hg/hgrc
   143   $ echo '[__temporary__]' >> server/.hg/hgrc
   136   $ echo 'advertiseobsolete=False' >> server/.hg/hgrc
   144   $ echo 'advertiseobsolete=False' >> server/.hg/hgrc
   137   $ $TESTDIR/killdaemons.py
   145   $ $TESTDIR/killdaemons.py
   138   $ hg serve -R server -n test -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log
   146   $ hg serve -R server -n test -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log
   156   bookmarks	
   164   bookmarks	
   157   namespaces	
   165   namespaces	
   158   obsolete	
   166   obsolete	
   159   phases	
   167   phases	
   160   $ curl --silent http://localhost:$HGPORT/?cmd=hello
   168   $ curl --silent http://localhost:$HGPORT/?cmd=hello
   161   capabilities: lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch stream unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 _evoext_pushobsmarkers_0 _evoext_pullobsmarkers_0 _evoext_obshash_0 _evoext_b2x_obsmarkers_0
   169   capabilities: lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch stream unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 _evoext_pushobsmarkers_0 _evoext_pullobsmarkers_0 _evoext_obshash_0 _evoext_getbundle_obscommon
   162   $ curl --silent http://localhost:$HGPORT/?cmd=capabilities
   170   $ curl --silent http://localhost:$HGPORT/?cmd=capabilities
   163   lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch stream unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 _evoext_pushobsmarkers_0 _evoext_pullobsmarkers_0 _evoext_obshash_0 _evoext_b2x_obsmarkers_0 (no-eol)
   171   lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch stream unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 _evoext_pushobsmarkers_0 _evoext_pullobsmarkers_0 _evoext_obshash_0 _evoext_getbundle_obscommon (no-eol)