comparison tests/test-simple4server-bundle2.t @ 2060:cbdb68189432

capabilities: properly sort capabilities after updating them Capabilities are usually sorted. This is especially useful to avoid silly error in test.
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Wed, 08 Mar 2017 15:35:16 -0800
parents 994d81caec68
children
comparison
equal deleted inserted replaced
2059:ebbce3be9142 2060:cbdb68189432
79 79
80 Capacity testing 80 Capacity testing
81 =================== 81 ===================
82 82
83 $ curl -s http://localhost:$HGPORT/?cmd=hello 83 $ curl -s http://localhost:$HGPORT/?cmd=hello
84 capabilities: * _evoext_pushobsmarkers_0 _evoext_pullobsmarkers_0 _evoext_obshash_0 _evoext_obshash_1 _evoext_getbundle_obscommon (glob) 84 capabilities: _evoext_getbundle_obscommon _evoext_obshash_0 _evoext_obshash_1 _evoext_pullobsmarkers_0 _evoext_pushobsmarkers_0 batch * (glob)
85 $ curl -s http://localhost:$HGPORT/?cmd=capabilities 85 $ curl -s http://localhost:$HGPORT/?cmd=capabilities
86 * _evoext_pushobsmarkers_0 _evoext_pullobsmarkers_0 _evoext_obshash_0 _evoext_obshash_1 _evoext_getbundle_obscommon (no-eol) (glob) 86 _evoext_getbundle_obscommon _evoext_obshash_0 _evoext_obshash_1 _evoext_pullobsmarkers_0 _evoext_pushobsmarkers_0 batch * (no-eol) (glob)
87 87
88 $ curl -s "http://localhost:$HGPORT/?cmd=listkeys&namespace=namespaces" | sort 88 $ curl -s "http://localhost:$HGPORT/?cmd=listkeys&namespace=namespaces" | sort
89 bookmarks 89 bookmarks
90 namespaces 90 namespaces
91 obsolete 91 obsolete
141 bookmarks 141 bookmarks
142 namespaces 142 namespaces
143 obsolete 143 obsolete
144 phases 144 phases
145 $ curl -s http://localhost:$HGPORT/?cmd=hello 145 $ curl -s http://localhost:$HGPORT/?cmd=hello
146 capabilities: * _evoext_pushobsmarkers_0 _evoext_pullobsmarkers_0 _evoext_obshash_0 _evoext_obshash_1 _evoext_getbundle_obscommon (glob) 146 capabilities: _evoext_getbundle_obscommon _evoext_obshash_0 _evoext_obshash_1 _evoext_pullobsmarkers_0 _evoext_pushobsmarkers_0 batch * (glob)
147 $ curl -s http://localhost:$HGPORT/?cmd=capabilities 147 $ curl -s http://localhost:$HGPORT/?cmd=capabilities
148 * _evoext_pushobsmarkers_0 _evoext_pullobsmarkers_0 _evoext_obshash_0 _evoext_obshash_1 _evoext_getbundle_obscommon (no-eol) (glob) 148 _evoext_getbundle_obscommon _evoext_obshash_0 _evoext_obshash_1 _evoext_pullobsmarkers_0 _evoext_pushobsmarkers_0 batch * (no-eol) (glob)
149 149
150 $ echo '[__temporary__]' >> server/.hg/hgrc 150 $ echo '[__temporary__]' >> server/.hg/hgrc
151 $ echo 'advertiseobsolete=False' >> server/.hg/hgrc 151 $ echo 'advertiseobsolete=False' >> server/.hg/hgrc
152 $ $RUNTESTDIR/killdaemons.py $DAEMON_PIDS 152 $ $RUNTESTDIR/killdaemons.py $DAEMON_PIDS
153 $ hg serve -R server -n test -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log 153 $ hg serve -R server -n test -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log
168 namespaces 168 namespaces
169 obsolete 169 obsolete
170 phases 170 phases
171 171
172 $ curl -s http://localhost:$HGPORT/?cmd=hello 172 $ curl -s http://localhost:$HGPORT/?cmd=hello
173 capabilities: * _evoext_pushobsmarkers_0 _evoext_pullobsmarkers_0 _evoext_obshash_0 _evoext_obshash_1 _evoext_getbundle_obscommon (glob) 173 capabilities: _evoext_getbundle_obscommon _evoext_obshash_0 _evoext_obshash_1 _evoext_pullobsmarkers_0 _evoext_pushobsmarkers_0 batch * (glob)
174 $ curl -s http://localhost:$HGPORT/?cmd=capabilities 174 $ curl -s http://localhost:$HGPORT/?cmd=capabilities
175 * _evoext_pushobsmarkers_0 _evoext_pullobsmarkers_0 _evoext_obshash_0 _evoext_obshash_1 _evoext_getbundle_obscommon (no-eol) (glob) 175 _evoext_getbundle_obscommon _evoext_obshash_0 _evoext_obshash_1 _evoext_pullobsmarkers_0 _evoext_pushobsmarkers_0 batch * (no-eol) (glob)