# HG changeset patch # User Matt Mackall # Date 1395172789 25200 # Node ID fe089007c4661c35249fee04cf786cf723cb1bd2 # Parent 6cb81dbb95163806f31522a17f01cff25daf9708 evolve: fix evolve with mercurial default MODERNCAPS have been renamed to moderncaps upstream. diff -r 6cb81dbb9516 -r fe089007c466 hgext/evolve.py --- a/hgext/evolve.py Wed Mar 12 13:07:37 2014 -0700 +++ b/hgext/evolve.py Tue Mar 18 12:59:49 2014 -0700 @@ -2464,7 +2464,10 @@ @eh.extsetup def _installwireprotocol(ui): - localrepo.MODERNCAPS.add('_evoext_pullobsmarkers_0') + try: + localrepo.moderncaps.add('_evoext_pullobsmarkers_0') + except AttributeError: + localrepo.MODERNCAPS.add('_evoext_pullobsmarkers_0') hgweb_mod.perms['evoext_pushobsmarkers_0'] = 'push' hgweb_mod.perms['evoext_pullobsmarkers_0'] = 'pull' hgweb_mod.perms['evoext_obshash'] = 'pull'