evolve: fix evolve with mercurial default
authorMatt Mackall <mpm@selenic.com>
Tue, 18 Mar 2014 12:59:49 -0700
changeset 886 fe089007c466
parent 885 6cb81dbb9516
child 887 0ea9cecbbd28
evolve: fix evolve with mercurial default MODERNCAPS have been renamed to moderncaps upstream.
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'