# HG changeset patch # User Pierre-Yves David # Date 1394654615 25200 # Node ID 4ae115cf3efd10f8d8b89ba9dd132cc04f192155 # Parent d2fa1061df1648bdb98897741378f5f09482bb43 sinmple4server: advertise new cap only when advertising obsolescence This is more consistent. diff -r d2fa1061df16 -r 4ae115cf3efd hgext/simple4server.py --- a/hgext/simple4server.py Wed Mar 12 13:01:32 2014 -0700 +++ b/hgext/simple4server.py Wed Mar 12 13:03:35 2014 -0700 @@ -222,7 +222,8 @@ def capabilities(orig, repo, proto): """wrapper to advertise new capability""" caps = orig(repo, proto) - if obsolete._enabled: + advertise = repo.ui.configbool('__temporary__', 'advertiseobsolete', True) + if obsolete._enabled and advertise: caps += ' _evoext_pushobsmarkers_0' caps += ' _evoext_pullobsmarkers_0' caps += ' _evoext_obshash_0'