comparison tests/test-simple4server.t @ 882:48804a8d7472

simple4server: option to advertise obsolescence support We had an option to control the advertising of the obsolescence markers support from the server. The goal of this option is to allow large scale repo hosting service to control the use of obsolescence markers exchange.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Wed, 12 Mar 2014 12:44:33 -0700
parents 380aa41a53a5
children 6cb81dbb9516
comparison
equal deleted inserted replaced
881:380aa41a53a5 882:48804a8d7472
138 OBSEXC: pull obsolescence markers 138 OBSEXC: pull obsolescence markers
139 OBSEXC: looking for common markers in [23] nodes (re) 139 OBSEXC: looking for common markers in [23] nodes (re)
140 OBSEXC: no unknown remote markers 140 OBSEXC: no unknown remote markers
141 OBSEXC: DONE 141 OBSEXC: DONE
142 142
143 $ cd ..
144
145 Test disabling obsolete advertisement
146 ===========================================
147 (used by bitbucket to select which repo use evolve)
148
149 $ curl --silent "http://localhost:$HGPORT/?cmd=listkeys&namespace=namespaces"
150 bookmarks
151 phases
152 namespaces
153 obsolete (no-eol)
154
155 $ echo '[__temporary__]' >> server/.hg/hgrc
156 $ echo 'advertiseobsolete=False' >> server/.hg/hgrc
157 $ $TESTDIR/killdaemons.py
158 $ hg serve -R server -n test -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log
159 $ cat hg.pid >> $DAEMON_PIDS
160
161 $ curl --silent "http://localhost:$HGPORT/?cmd=listkeys&namespace=namespaces"
162 bookmarks
163 phases
164 namespaces (no-eol)
165
166 $ echo 'advertiseobsolete=True' >> server/.hg/hgrc
167 $ $TESTDIR/killdaemons.py
168 $ hg serve -R server -n test -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log
169 $ cat hg.pid >> $DAEMON_PIDS
170
171 $ curl --silent "http://localhost:$HGPORT/?cmd=listkeys&namespace=namespaces"
172 bookmarks
173 phases
174 namespaces
175 obsolete (no-eol)