tests/test-simple4server.t
changeset 882 48804a8d7472
parent 881 380aa41a53a5
child 885 6cb81dbb9516
--- a/tests/test-simple4server.t	Mon Mar 10 19:47:24 2014 -0700
+++ b/tests/test-simple4server.t	Wed Mar 12 12:44:33 2014 -0700
@@ -140,3 +140,36 @@
   OBSEXC: no unknown remote markers
   OBSEXC: DONE
 
+  $ cd ..
+
+Test disabling obsolete advertisement
+===========================================
+(used by bitbucket to select which repo use evolve)
+
+  $ curl --silent "http://localhost:$HGPORT/?cmd=listkeys&namespace=namespaces"
+  bookmarks	
+  phases	
+  namespaces	
+  obsolete	 (no-eol)
+
+  $ echo '[__temporary__]' >> server/.hg/hgrc
+  $ echo 'advertiseobsolete=False' >> server/.hg/hgrc
+  $ $TESTDIR/killdaemons.py
+  $ hg serve -R server -n test -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log
+  $ cat hg.pid >> $DAEMON_PIDS
+
+  $ curl --silent "http://localhost:$HGPORT/?cmd=listkeys&namespace=namespaces"
+  bookmarks	
+  phases	
+  namespaces	 (no-eol)
+
+  $ echo 'advertiseobsolete=True' >> server/.hg/hgrc
+  $ $TESTDIR/killdaemons.py
+  $ hg serve -R server -n test -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log
+  $ cat hg.pid >> $DAEMON_PIDS
+
+  $ curl --silent "http://localhost:$HGPORT/?cmd=listkeys&namespace=namespaces"
+  bookmarks	
+  phases	
+  namespaces	
+  obsolete	 (no-eol)