evolve: fix evolve with mercurial default
MODERNCAPS have been renamed to moderncaps upstream.
--- 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'